Static Front Page solution
-
Here is what I did that seems to work, though I’m not sure my code modifications were up to standards.
I set my static front page to a page I already created.
I created a new page called blog and put nothing on it.
I set the posts page to be this new blog page.
The problem this left was that I had renamed the original home page blog in the code in the header file. I now had 2 blog items in my menu.
I opened the header file and just deleted the “blog” from the first part of the menu, the code is there but it is blank, it doesn’t show in the menu and the other blog page I had just created houses the blog and it displays as I would like.
I don’t know PHP well enough to know how much to delete without affecting other functions. Could someone look at the code below and let me know what to do to really clean it up?
<div id="nav"> <ul> <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><strong>ITUSEDTOSAYBLOGHERE</strong><?php echo $langblog;?></a></li> <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
- The topic ‘Static Front Page solution’ is closed to new replies.