WordPress.org

Ready to get started?Download WordPress

Forums

Cannot implement navigation on my website (7 posts)

  1. sozemediagroup
    Member
    Posted 4 years ago #

    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
    http://www.industryfokery.com

  2. selfmade64856
    Member
    Posted 4 years ago #

    You referring to the menu bar?

  3. Nile Flores
    Member
    Posted 4 years ago #

    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 http://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.

  4. sozemediagroup
    Member
    Posted 4 years ago #

    @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.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    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(); } ?>

  6. sozemediagroup
    Member
    Posted 4 years ago #

    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?

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.