Admin menu success message
See the top answer on this Stackoverflow question. Basically you need to use: decodeURI((RegExp(name + ‘=’ + ‘(.+?)(&|$)’).exec(location.search)||[,null])[1]); Get URL parameter with jQuery
See the top answer on this Stackoverflow question. Basically you need to use: decodeURI((RegExp(name + ‘=’ + ‘(.+?)(&|$)’).exec(location.search)||[,null])[1]); Get URL parameter with jQuery
I believe it’s because you’re using a frame. The url is changing within the frame itself but it can’t reflect it to the base site. You’ll have to remove the frame from the site in order to have the url change for you. In fact, I really don’t see why you have a frame anyway … Read more
You can try using the .current-menu-item li a”first-child selector. Here is an example I’ve used in the past to highlight the current menu item only: #menu .current-menu-item { background:white; } #menu .current-menu-item li a:first-child { color:white!important; } #menu .current-menu-item a { color:black !important ; } You will need to change the #menu to your id … Read more
I had put the following code into sidebar.php to display a list eith sub-categories of “Store” categori and the posts of them. Hope I understand what you need and it will be helpfull. if not can ask more explicite <? // Get categories for parent category store // Get ID cat by slug $id_store = … Read more
I think you can use the text-indent for this level, but you must set the text-indent for all a -tags of the class sub-menu also set to 0, not -999px. Example: #menu-main-navigation .link-experience a { display: block; height: 63px; width: 167px; text-indent: -999px; } .sub-menu a { text-indent: 0px !important; }
I’d try to format my CSS rules accordingly. If you’re using body_class() you can always target single-posttype so as a quick example .single-posttype .current-menu-item { display: none; } Will hide the current menu item when you’re on a specific post type. If this makes sense hehe. Another way would be creating your own navigation menu … Read more
Your best bet would be to consult the author of plugin since it’s using a custom jQuery plugin script. how can I prevent showing my menu un styled? You can add a class of no-display to the elements of the menu that are un styled as the page loads then in css set .no-display {display:none;}Then … Read more
You will get better results and more control using the wp_nav_menu function as it allows you to control the menu items.
i also had this problem. the problem is that you are adding action to *admin_init* … try something like this: add_action( ‘admin_menu’, ‘remove_unused_menus’ ); function remove_unused_menus() { remove_menu_page(‘link-manager.php’); remove_menu_page(‘edit-comments.php’); } notice the use of *admin_menu* instead of *admin_init* some require admin_init…but i forget which/why.
Try adding the .current-page-ancestor selector to your style, note the use of hyphens instead of underscores.