Plugin Directory

Changeset 925493


Ignore:
Timestamp:
06/03/2014 05:16:36 AM (12 years ago)
Author:
dharmapoudel
Message:

removed li from styles and moved it to footer

Location:
page-specific-menu-items
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • page-specific-menu-items/tags/1.4.4/page-specific-menu-items.php

    r911922 r925493  
    5454            }else { // Frontend
    5555           
    56                 add_action( 'wp_head', array($this, 'psmi_hide_menuitems'));
     56                add_action( 'wp_footer', array($this, 'psmi_hide_menuitems'));
    5757                add_filter( 'wp_nav_menu_objects', array($this, 'psmi_add_menu_class'), 10, 2);
    5858               
     
    304304       
    305305            echo '<style type="text/css" media="screen">';
    306             echo 'li.menu-item.hide_this_item{ display:none !important; }';
     306            echo '.menu-item.hide_this_item{ display:none !important; }';
    307307            echo '</style>';
    308308           
  • page-specific-menu-items/tags/1.4.4/readme.txt

    r912449 r925493  
    33Requires at least: 3.5
    44Tested up to: 3.9.1
    5 Stable tag: 1.4.3
     5Stable tag: 1.4.4
    66License: GPLv3
    77Contributors: dharmapoudel
     
    6969== Changelog ==
    7070
     71= 1.4.4 (2014-6-3) =
     72* Removed li from the plugin styles (some users are not using li for menu items)
     73* Moved plugin styles to footer
     74
    7175= 1.4.3 (2014-5-10) =
    7276* Added more weight to the class 'hide_this_item'
  • page-specific-menu-items/trunk/page-specific-menu-items.php

    r911922 r925493  
    5454            }else { // Frontend
    5555           
    56                 add_action( 'wp_head', array($this, 'psmi_hide_menuitems'));
     56                add_action( 'wp_footer', array($this, 'psmi_hide_menuitems'));
    5757                add_filter( 'wp_nav_menu_objects', array($this, 'psmi_add_menu_class'), 10, 2);
    5858               
     
    304304       
    305305            echo '<style type="text/css" media="screen">';
    306             echo 'li.menu-item.hide_this_item{ display:none !important; }';
     306            echo '.menu-item.hide_this_item{ display:none !important; }';
    307307            echo '</style>';
    308308           
  • page-specific-menu-items/trunk/readme.txt

    r912449 r925493  
    33Requires at least: 3.5
    44Tested up to: 3.9.1
    5 Stable tag: 1.4.3
     5Stable tag: 1.4.4
    66License: GPLv3
    77Contributors: dharmapoudel
     
    6969== Changelog ==
    7070
     71= 1.4.4 (2014-6-3) =
     72* Removed li from the plugin styles (some users are not using li for menu items)
     73* Moved plugin styles to footer
     74
    7175= 1.4.3 (2014-5-10) =
    7276* Added more weight to the class 'hide_this_item'
Note: See TracChangeset for help on using the changeset viewer.