now i’m looking for a way to add that value=”1″ to the
is it possible?
Thank’s!
<li>
of the current page only. Tried this:
if (this.is_home()){ $class_names = ' class="current"';}
else { $class_names = ' class="'. esc_attr( $class_names ) . '"'; }
$output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
but its returning true for every item. I’m guessing I have a scope issue, but as I’m not good at programming I’m not sure what the problem is. Can anyone enlighten me? Here’s the full function:
https://pastebin.com/8ZLH2bej
]]>wp_nav_menu( array( 'container_class' => 'menu-header', 'menu_id' => 'supermenu', 'menu_class' => 'supermenu', 'theme_location' => 'primary'));
removing the class lets the superfish work but renders the lavalamp motionless.
(it is called via the ID though, show the marker still shows up, just doesn’t move)
when no class is called above the html looks like <ul id=?"slmenu" class=?"menu sf-js-enabled" >?
maybe not enough information to go on but does anyone have an idea?
oh ya, i hace tried setting the class in wp_nav_menu to ” ‘menu_class’ => ‘supermenu menu sf-js-enabled’, ” then only the superfish works, lavalamp only works if the class is just “supermenu”.
]]><div id="navigation" class="menu clearfix">
<ul class="lavaLampWithImage">
<li class="page_item <?php if(is_home()): ?>current_page_item<?php endif ?>">
<a href="<?php echo get_option('home'); ?>/">Home</a>
</li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
<?php
if ( is_user_logged_in() ) { ?>
<li class="page_item <? if(is_page('52')): ?>current_page_item <? endif ?> ">
<a href="index.php?p=52">PM</a>
</li>
<? } else { }; ?>
My website is at:
https://bruteforces.clanservers.com/
I hope someone could help me a hand =)
]]>I have recently managed to get the lavalamp menu working on my site, although would like to do the following:
1. Have more space to the left of each menu item with the grey background still centred over each item. I added a padding-left attribute to the .lavaLampNoImage li css section but the background was then not centred on the menu item.
2. When a menu item is selected (e.g. BLOG) then the grey background remains on that menu item if on that page.
My site: simonslife.net
Any help gratefully received.
Thanks,
Si.
https://www.300acres.com/blog/
The blobby mctingamabob for the navbar shows you what page you are on in the blog with some PHP or something.
I have changed the index page{https://www.300acres.com} from the most recent posts to a static page and posts to a page called blog. [Settings?Reading] However, the blog page is highliting the (Home) link on the nav bar.
I think I have to change some PHP in the nav bar to fix this? Can anyone be kind enough to point me in the right direction?
Thankyoumuch!
~Ss
Now, that cannot happen.
Help me out, gurus.
]]>https://johnmiller.info/blog/2009/01/27/safitech-v161-wordpress-theme
]]>