• I’am new to coding so I can’t explain it very well, sorry.

    The situation I have now is:

    Title
    – Project categorie
    – Project categorie
    – Project categorie
    – Project categorie

    and I want:

    Title
    – Project categorie
    – Project categorie
    – Project categorie
    – Project categorie

    Title

    – Project categorie
    – Project categorie
    – Project categorie
    – Project categorie

    So in some way I have to split my project categorie tab.

    This is the current navigation code:

    
    <?php
    /**
     * Navigation BAR
     */
    ?>
    <?php if (has_custom_logo()) : ?>
        <a>" rel="home" title="<?php bloginfo('description'); ?>">
    		<?php
    		$custom_logo_id = get_theme_mod('custom_logo');
    		$logo           = wp_get_attachment_image($custom_logo_id, 'medium');
    		?>
    		<?php echo $logo; ?>
        </a>
    <?php endif; ?>
    
    <nav class="navigation dark-overlay" id="main-navigation">
    
        <div class="navigation-wrapper d-flex flex-column h-100">
            <div class="d-flex d-lg-none">
                <a>" class="btn text-white pl-0" rel="home" title="<?php bloginfo('description'); ?>"><i class="fal fa-home"></i></a>
    <!--            <button id="navigation-close" class="btn d-flex ml-auto close-navigation text-white">-->
    <!--                <span>Sluit <i class="fal fa-times"></i></span>-->
    <!--            </button>-->
            </div>
            <?php
            $args = array(
                'taxonomy'              => 'project_category',
                'depth'                 => 2,
                'show_count'            => false,
                'pad_counts'            => false,
                'hierarchical'          => true,
                'hide_empty'            => true,
                'title_li'              => '',
                'style'                 => 'list',
                'use_desc_for_title'    => false,
                'echo'                  => false
            );
    
            $projectCats = wp_list_categories($args);
            ?>
            <div class="title_1">Zakelijk</div>
    		<ul class=>
                <?php echo $projectCats; ?>
            </ul>
    
            <?php
            wp_nav_menu(
                array(
    	            'theme_location' => 'primary-nav',
    	            'depth' => 3,
    	            'container' => '',
    	            'container_id' => '',
    	            'container_class' => '',
                    'menu_class' => 'navbar-nav mt-5 mt-lg-auto',
        //			'fallback_cb' => 'bootstrap4_wp_navwalker::fallback',
                    'menu_id' => '',
    //    			'walker' => new bootstrap4_wp_navwalker()
                )
            );
            ?>
    
            <?php
                if (is_active_sidebar('nav-logo')) {
                    dynamic_sidebar('nav-logo');
                }
            ?>
    
            <div class="d-inline d-lg-none">
                <?php get_template_part('partials/social-links'); ?>
            </div>
        </div>
    </nav>
    • This topic was modified 3 years, 11 months ago by olavvg.
    • This topic was modified 3 years, 11 months ago by Steven Stern (sterndata).
    • This topic was modified 3 years, 11 months ago by bcworkz. Reason: excess redundant text removed
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s difficult to explain some concepts in words. Maybe you could make a screen shot of what you have and mark it up to demonstrate what you want to achieve? The forums do not directly host images. You can post images to any public photo sharing site and just provide the link here.

Viewing 1 replies (of 1 total)

The topic ‘Make seperate project categories’ is closed to new replies.