• Hi, I recently made a template change to my site but for the life of me cannot figure out what I did to take away navigation functions from the template. So I thought i’d get wp-pagenavi..that didn’t work..tried almost ever single plugin to give my site navigation but it just doesn’t show up on the template. Can someone help me out?

    The site is
    https://www.industryfokery.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • You referring to the menu bar?

    WP-PageNavi is for the bottom so instead of your visitors just clicking next and previous to get more articles, you have more pages (like on my site at https://wpaddict.net/ )

    What type of navigation are you trying to put up? A horizontal navigation?

    If horizontal – here is just an example in css of one. I do not see it in your layout other than your pages in a sidebar widget.

    #mainmenu ul{
    	margin: 0;
    	padding: 0;
    	list-style-type: none;
    	z-index:1000;
    }

    HTML

    <div id="mainmenu">
    <ul>
    <li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
    <?php wp_list_pages('title_li=&depth=1'); ?>
    </ul>
    </div>

    It is the list-style-type: none; that allows a horizontal navigation instead of vertical.

    Tip: all your style sheets need to be before the ending head tag, not within the body of your layout.

    Thread Starter sozemediagroup

    (@sozemediagroup)

    @selfmade, I already have a menu but i’m referring to wp-navi for the bottom of the homepage that takes people through pages of posts like wpaddict has but I’d also like a previous post and next post navigation within my posts.

    Not all familiar whether this goes into theme functions or stylesheet or main index so i’ve tried to do it with plugins but have not successfully done so. I think I may have removed a function while editing codes to change alignments of my audio player etc.
    Just take a look at the site you’ll see what I mean. There is no actual way of reaching articles that aren’t recent because i’m missing navigation abilities.

    wp-pagenavi requires you to put aline of code into your footer.php
    did you insert the code?

    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

    Thread Starter sozemediagroup

    (@sozemediagroup)

    Whew..thanks so much..total relief at least now I can get users from page to page..
    now I just need to get readers from post to post via singlepost.php any recommendations?

    does it have code like this?

    <div class="postinfo">
    
    			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    </div>

    (you can obviously ignore the div stuff, I just copy/paste from my single.php)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot implement navigation on my website’ is closed to new replies.