WordPress.org

Forums

Quark
[resolved] UL class different after replacing name in templates (3 posts)

  1. rjmfdesign
    Member
    Posted 8 months ago #

    After replacing the quark name in the templates ('quark', quark_ & quark)
    the nav menu started generating the menu ul and li classes differently.

    now

    <nav id="site-navigation" class="main-navigation" role="navigation">
    					<h3 class="menu-toggle assistive-text">Menu</h3>
    					<div class="assistive-text skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
    					<div class="nav-menu"><ul><li class="page_item page-item-6"><a href="http://localhost/fercon_draft/">Home</a></li><li class="page_item page-item-8 page_item_has_children"><a href="http://localhost/fercon_draft/about-us/">About Us</a><ul class='children'><li class="page_item page-item-326"><a href="http://localhost/fercon_draft/about-us/environmental-management/">Environmental Management</a></li><li class="page_item page-item-324"><a href="http://localhost/fercon_draft/about-us/health-and-safety/">Health and Safety</a></li><li class="page_item page-item-322"><a href="http://localhost/fercon_draft/about-us/quality-assurance/">Quality Assurance</a></li></ul></li><li class="page_item page-item-138 page_item_has_children current_page_item"><a href="http://localhost/fercon_draft/services-2/">Services</a><ul class='children'><li class="page_item page-item-24"><a href="http://localhost/fercon_draft/services-2/civil/">Civil</a></li></ul></li><li class="page_item page-item-22"><a href="http://localhost/fercon_draft/tenders/">Tenders</a></li><li class="page_item page-item-291"><a href="http://localhost/fercon_draft/projects/">Projects</a></li><li class="page_item page-item-20"><a href="http://localhost/fercon_draft/publications/">Publications</a></li><li class="page_item page-item-10"><a href="http://localhost/fercon_draft/services/">Contact Us</a></li></ul></div>
    				</nav>

    before

    <nav id="site-navigation" class="main-navigation" role="navigation">
    					<h3 class="menu-toggle assistive-text">Menu</h3>
    					<div class="assistive-text skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
    					<div class="menu-menu-container"><ul id="menu-menu" class="nav-menu"><li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-6 current_page_item menu-item-18"><a href="http://localhost/fercon_draft/">Home</a>
    <li id="menu-item-16" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-parent-item menu-item-16"><a href="http://localhost/fercon_draft/about-us/">About Us</a>
    <ul class="sub-menu">
    	<li id="menu-item-330" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-330"><a href="http://localhost/fercon_draft/about-us/quality-assurance/">Quality Assurance</a>
    	<li id="menu-item-329" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-329"><a href="http://localhost/fercon_draft/about-us/health-and-safety/">Health and Safety</a>
    	<li id="menu-item-328" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-328"><a href="http://localhost/fercon_draft/about-us/environmental-management/">Environmental Management</a>
    
    <li id="menu-item-139" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-parent-item menu-item-139"><a href="http://localhost/fercon_draft/services-2/">Services</a>
    <ul class="sub-menu">
    	<li id="menu-item-26" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-26"><a href="http://localhost/fercon_draft/services-2/civil/">Civil</a>
    
    <li id="menu-item-27" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-27"><a href="http://localhost/fercon_draft/tenders/">Tenders</a>
    <li id="menu-item-292" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-292"><a href="http://localhost/fercon_draft/projects/">Projects</a>
    <li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28"><a href="http://localhost/fercon_draft/publications/">Publications</a>
    <li id="menu-item-17" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-17"><a href="http://localhost/fercon_draft/services/">Contact Us</a>
    </div>				</nav>

    what might I have changed for this to happen?

  2. alchymyth
    Forum Moderator
    Posted 8 months ago #

    afer changing the names, WordPress considers this to be a new theme for which you will need to recreate or reassign the custom menu
    - what you see in 'new' is the default if no custom menu is set.

  3. rjmfdesign
    Member
    Posted 8 months ago #

    thank you :D can't believe i didn't check that.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.