https://manattdigitalmedia.cloudapp.net
The website has anchor links and is composed of two pages and a lot of posts. I have one primary menu. I registered another menu named “blog”. How would I go about writing a php in the function to use “main menu” for home and “blog” menu for everything else on the website? Currently if i go to the BLOG page, my menu’s don’t work.
Any help would be greatly appreciated.
]]>I know the primary menu is .menu-item but the codex doesn’t say what happens after that.
How do I create a drop down menu and what can I manipulate with the these functions.
Main Menu
-Child stuff here
-child stuff here 2
Have created a few and need to get it all organised.
Any help would be greatly appreciated.
]]>I’ve done a bit of a search, and i’ve had no luck because my problem is quite specific. So this is why i’m starting this thread.
I have a simple portfolio site https://www.thinkrobert.com, that has four pages –
Home, Portfolio, Blog and Contact
Home, Portfolio and Contact are pages that use page templates, Home is my static ‘front page’ and blog is my ‘posts’ page in WordPress. I have two post categories, one is ‘blog’ which displays posts in the ‘blog’ category on the blog page (using index.php) and another is portfolio which displays posts in the ‘portfolio’ category on the portfolio page.
My problem is that I am having trouble with the menu highlighting system in WordPress 3.0, after hacking around with it and using Firebug to work out some of the classes etc, i’ve got it working almost how I need. The problem is, is that when I view a single post in the ‘portfolio’ category, it highlights the blog menu link and not the portfolio menu link. I would imagine this is because the blog is technically the parent category of my portfolio posts, but this isn’t what I want to display. I know ‘technically’ this is probably correct, but it’s not right for usability. When someone is a viewing a single post in the portfolio category, portfolio should be highlighted.
The CSS i’m using is as follows –
‘#menu li.current_page_item a,
#menu li.current_page_ancestor a,
#menu li.current_post_ancestor a,
#menu li.current_page_parent a
{
color: #f4f3f3 !important;
}’
If you check out the site, you will see for yourself.
Im really tearing my hair out with this one and would appreciate someone helping me out or pointing me in the right direction
Many thanks,
Rob
]]>Been looking at this for a while now, and have hit a brick wall.
I have a static site layout created, and the navigation uses drop downs, and once each link is rolled over it has a jquery rollover effect that displays an image on each navigation element in a particular drop down. – using JS tooltip
Similar to this effect – https://cssglobe.com/lab/tooltip/03/
An example of the code form the static site is below:
<li><a href="applications-snow-plough.html" class="screenshot" rel="site_images/pop/snowplough-pop.jpg">Snow plough</a></li>
I am wondering how I would be able to make this effect apply to a wordpress version of the site I am working on, using the wp-custom nav.
I can apply the ‘class=”screenshot” to the menu list items, but it isn’t working, and I think it’s due to the menus containing so many other classes, as I can make the tooltip appear if it’s not applied to the navigation.
Also as this tooltip uses the ‘rel=’ it won’t let me input URLs for the images and strips out the formatting.
Any help or advice would be great.
]]>I used some of the function references to get rid of first UL and main outer div. Now when the PHP renders, how do I get rid of the inner Div so it’s just the LI being listed?
<div class="menu-main-menu-container"> then the li's </div>
Here’s what I currently got. Note I removed the ID name Access. It all works perfect except this default inner div.
[Code moderated as per the Forum Rules. Please use the pastebin]
AFTER THE PHP RENDERS I GET THIS:
<div id="dc_droplinemenu" class="droplinebar">
<ul>
<li class="dc_droplinemenu_corner_left"></li>
<div class="menu-main-menu-container"> then the LI's </div>
<li class="dc_droplinemenu_corner_right"></li>
</ul>
</div>
]]><li class="about"><a href="#"><span>About</span></a>
<ul>
<li><a href="#">sub1</a></li>
<li><a href="#">sub1</a></li>
<li><a href="#">sub1</a></li>
</ul>
I can add the before and after code and but <span> there, but its reflected on the second level as well.
Here’s what i currently have
<?php wp_nav_menu(
array('theme_location' => 'main-menu',
'container_id' => 'smoothmenu1',
'container_class' => 'ddsmoothmenu',
'link_before' => '<span>',
'link_after' => '</span>'
));
?>
Any ideas?
]]>