WordPress.org

Ready to get started?Download WordPress

Forums

Finding right Template Files to change HTML (5 posts)

  1. huethejackson
    Member
    Posted 3 years ago #

    Hi,

    I'm new at this, so please bear with me. I'm having problems with duplicate homes. I'm working with the page for Creating Static Front Pages. It says:

    To change it (to fix the problem), edit the appropriate template file featuring the code of the navigation bar with the template tag wp_list_pages. Set the parameters to change the link title. In some cases, commenting (disabling) the the line in the theme's code that displays the 'Home' link will do the trick.

    I used Dashboard/Appearance/Editor to be able to open the html page for the stylesheet html template. But then, I copied this whole stylesheet template into my EditPad Lite and searched for "wp_list_pages". It didn't show up anywhere.

    Since above it seems to be saying that there are other template files with a theme, I'm wondering how to I find the template file referred to in the Static Front Page document: the one with the code for the navigation bar, which has this wp_list-pages on it (?)

    (In fact, I'm not sure what the term "template tag" is.

    Thanks in advance,

    David Gere

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You need to locate the .php file in your theme that is responsible for your navigation menu. Try looking in sidebar.php, header.php or footer.php. The exactl file varies from theme to theme.

  3. huethejackson
    Member
    Posted 3 years ago #

    Hi esmi,

    I'm still having problems. Forgive me if I'm being so stupid about this.

    But where do I find these three php files (header, footer and sidebar).
    Are they parts of the CSS Stylesheet HTML or are they separate files in separate folders (eg. URL's).

    I found some navigation page references in the stylesheet, several with the navigation list term nav-li. There was also one just saying nav....
    But I know stuff in a stylesheet is almost all formatting. It seems to me content would be in separate files.

    I tried to find these separate files to look for what they referred to on the Create Static Front page document. But I couldn't get anything to come up that works.

    The name of the theme I'm using is "starocean". I don't know if that will help.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Those files are separate template files in your current theme's folder. You can find your theme folder in wp-content/themes. Or you can access the individual files via Appearance->Editor.

    Your site's content is stored in your database.

  5. huethejackson
    Member
    Posted 3 years ago #

    I'm sorry. I'm almost there. I found the wp_list_pages in the header.php file.

    The relevant code in this file is as follows:

  6. /">Home
  7. <?php wp_list_pages('title_li=&depth=1'); ?>

    I"ve tried almost every combination of html changes to make, but I can't find one that works. I've spent an hour and a half trying to figure this out. What happens is no matter what, after I edit this html, I still end up with a home page http://www.fantasyfictionforfunandmoney.com that won't show in my list of pages. And it also won't show on Settings-Read where I want to create the static front and blog pages. And everytime I create a new page, I get duplicates again in the home page, and the second one says http://www.fantasyfictionforfunandmoney.com/home

    This can't be this hard. Help for hopefully the last time?

    Dave

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags