Hi Everyone. Intrepid is a [i]great [/i]theme. I'm not happy with my navigational menus though and I'm not technical enough to fix them. I want my "pages" to not show up on the main nav--but I would like them to show up on some sub-nav somewhere. But most importantly, I want my highest level categories to show up as the main navigation, rather than having to click on "Topics" (or in my case "Main Navigation") to get the dropdown menu. I have many sub-categories. My site is at http://www.pceh.org/2010. Any ideas? Thanks for your help. --Marcus
Categories in main nav?
(3 posts) (2 voices)-
Posted 2 years ago #
-
Hi Marcus, I'm not a pro but I see several issues with your site. First of all you don't have any Permalinks. Go to Settings: Permalinks and put this in the custom settings block[code]/%category%/%postname%/[/code]. But, before you do that you should download the correct plugin so it does not mess up your existing links. Click on Plugins at top of page click on add new. Search the term: Advanced Permalinks. It's by John Godley. Install it and configure it.
2) To remove pages from the top Nav Bar, go to "My Theme", "Settings", "Top Navigation" and put the page numbers in there that you don't want on the main navbar.
3) In order to get your categories onto the main navbar you will probably need to make separate category "page templates" Something like I have below. Hopefully Admin from TopBlogFormula can verify. I believe another snippet of code would need to be added to just pull in posts from just that category. Something like this: [code]<?php if (is_category('6')) { ?>[/code] right below the get header. You would have to adjust the category id in the previous snippet.
I usually just keep trying things until it works. Also look under "Posts", "Categories", Name, Slug and Parent. With multiple categories and not much room on the navbar, you made need to make some of your categories into "Child categories" under the "Parent Category" Hope this helps somewhat. Good luck and God Bless You!
[code]
<?php
/*
Template Name: Community
*/
?><?php get_header(); ?>
<div class="page">
<h2 class="catheader catcenter">
<?php single_cat_title(); ?>
</h2><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="page-content">
<h3>" title="Click to read <?php the_title(); ?>"><?php the_title(); ?></h3>
<div class="meta">
<?php _e("Posted by"); ?> <span class="usr-meta"><?php the_author_posts_link(); ?></span> <?php _e("on"); ?> <?php the_time(get_option('date_format')); ?> <?php _e("at"); ?> <?php the_time('g:i a'); ?> <span class="editpost"><?php edit_post_link('Edit'); ?></span>
</div><?php getImage('1'); ?>
<?php the_excerpt(); ?>
</div><?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
</div><?php else : ?>
<h2 class="catheader"><?php _e("We're sorry - that page was not found (Error 404)")?></h2>
<p><?php _e('Make sure the URL is correct. Try searching for it.')?></p>
<?php include('searchform.php') ?>
<?php endif; ?></div>
<?php get_footer(); ?>[/code]
[b]I may be way off.[/b] Here's some code from one of my other sites it came from category.php You may just be able to add some code like this to category.php
[code]<?php if (is_category('6')) { ?>
<p><h2>Featured Properties - To see the individual page and photos for each property click on the title or "heading" of each page for full property info and featured property photos.</h2></p><?php } elseif (is_category('7')) { ?>
<p><h2>Arizona News - See these articles for current events in Arizona and Arizona news.</h2></p><?php } elseif (is_category('8')) { ?>
<p><h2>Phoenix News - See these articles for current events in Phoenix and Phoenix news.</h2></p><?php } elseif (is_category('9')) { ?>
<p><h2>Scottsdale News - See these articles for current events in Scottsdale and Scottsdale news.</h2></p><?php } else { ?>
<p>To view the full post please click on the Posts' Title</p>
<?php } ?>[/code]Posted 2 years ago # -
Thanks a lot, man. I'm going to try all of this out and I'll let you know how it goes.
Posted 2 years ago #
Reply
You must log in to post.