Add custom nav menu to child theme, anchors not working
-
Making a child theme for twentytwelve, so far I just added my own style.css which imports the style.css from twentytwelve, and adds styles for each of my menu items.
In my menu settings, I add the appropriate unique css class (like “menuhome”) for each menu item. The menu images are rendered (with hover effects) but the anchor isn’t working so get no pointer cursor, no target. The output source looks normal to me:
<div class="menu-main-container"> <ul id="menu-main" class="nav-menu"> <li id="menu-item-79" class="menuhome menu-item menu-item-type-post_type menu-item-object-page menu-item-79"><a href="https://127.0.0.1:4001/wordpress/home/">Home</a></li> <li id="menu-item-76" class="menuweb menu-item menu-item-type-taxonomy menu-item-object-category menu-item-76"><a href="https://127.0.0.1:4001/wordpress/category/websitedesign/">Website Design</a></li>
…
- The topic ‘Add custom nav menu to child theme, anchors not working’ is closed to new replies.