Forums

Static Front Page Problem (19 posts)

  1. mistersam
    Member
    Posted 2 years ago #

    I'm trying to setup a static frontpage. I went to settings > reading > and set it up there as per the instruction below:

    http://codex.wordpress.org/Creating_a_Static_Front_Page

    It's working on many of my themes, but not on the one I want to use. I've looked in index.php but can't figure it out.
    What is missing from that theme that prevents it from working?

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Does the theme have a home.php file?

  3. mistersam
    Member
    Posted 2 years ago #

    No, only index.php. The theme is DerekJ

  4. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Your site url?

  5. mistersam
    Member
    Posted 2 years ago #

  6. mistersam
    Member
    Posted 2 years ago #

    This is the homepage that should appear as the front page
    http://gator409.hostgator.com/~e2f/home/

  7. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    You have an error in the template you're using for http://gator409.hostgator.com/~e2f/home/

    Look at the title in the browser window. It's displaying </php,

  8. mistersam
    Member
    Posted 2 years ago #

    Fixed, but the problem persists

  9. mistersam
    Member
    Posted 2 years ago #

    Any other suggestions?

  10. henkholland
    Member
    Posted 2 years ago #

    Check your header.php or your index.php for this:
    http://gator409.hostgator.com/~e2f Should be the first one in the div id cat-menu and change it accordingly to http://gator409.hostgator.com/~e2f/home

  11. mistersam
    Member
    Posted 2 years ago #

    This is the code under cat-menu:

    <div id="cat-menu" class="menu">
    <ul>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
    </ul>
    </div>
  12. henkholland
    Member
    Posted 2 years ago #

    No, I am losing you now. I see a double menu now. Better ask the theme author. The theme is not completely trouble free: http://topwpthemes.com/derekj/

  13. mistersam
    Member
    Posted 2 years ago #

    No worries about the menu. My main concern is "why does the front page work on other themes and not this one?"

    I'm assuming the piece of code I'm looking for is in header.php or index.php but I'm really at a loss.

    The theme's author won't respond.

  14. henkholland
    Member
    Posted 2 years ago #

    Look in header.php at the end of the file. Originally your theme supports a page navigation in the top black bar and category navigation in the lower blackbar, where you have your page navigation now.
    Original (last lines):

    </div><!-- /header-content -->
    
    		<div id="cat-menu" class="menu">
    			<ul>
    				<?php wp_list_categories('sort_column=name&title_li=&depth=1'); ?>
    			</ul>
    		</div>
    	</div><!-- /header -->
    
    	<div id="container">
    		<div id="content">

    Now please post your last lines here, the ones with menu2 in it.

  15. mistersam
    Member
    Posted 2 years ago #

    Thanks for helping me with this, I really appreciate it! Correct, I moved the top navigation to the bottom. Please keep in mind that this wasn't working with the orignal setup either (pages nav at the top).

    This is the code when I moved it to the bottom:

    <div id="cat-menu" class="menu">
    <ul>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
    </ul>
    </div>

    Since then, I've replaced it with

    <?php wp_css_dropdownmenu(0, '<div class="menu2"><ul>', '</ul></div>'); ?>

    Which is simply a plugin for a drop down menu instead of a top level menu.

    None of the three variations (orignal, pages on bottom nav, new dropdown menu) have worked.

  16. mistersam
    Member
    Posted 2 years ago #

    I've found the problem. It was bad coding in template-options.php and the php tag wasn't closed in functions.php

  17. henkholland
    Member
    Posted 2 years ago #

    Thumbs up.

  18. rombo
    Member
    Posted 2 years ago #

    can you share what you did exactly? i'm having the same problem right now but don't really get what should be changed in the respective files

  19. yiannism
    Member
    Posted 1 year ago #

    Can you please share the changes in functions.php and template-options.php
    that fix the static page issue with Derekj?

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.