WordPress.org

Ready to get started?Download WordPress

Forums

Changing the main navigation and changing home page name - HOW? (6 posts)

  1. peterdouglas
    Member
    Posted 7 years ago #

    A few related questions here, if anyone has an answer to even one of them, that would be great!

    How does one make an modifications to the navigation? I'd like to rename the page currently shown as "Home" to "Blog".

    The home page is usedcargold.com/index.php but subsequent pages are like this: usedcargold.com/index.php/about (can the index.php part be removed by finding and moving some files)?

    I'd also like to repeat the horizontal navigation bar at the bottom of each page.

    Finally, is it possible to have an absolute link to the home page so that it always comes up as usedcargold.com (and not usedcargold.com/index.php if someone clicks the "home" link in the navigation)

    Here's a link to what it currently looks like:

    http://usedcargold.com/

    Any suggestions would be most appreciated! :)

  2. tsguitar
    Member
    Posted 7 years ago #

    Go to Presentation >> Theme Editor and open up Header. The way to change the page titles (stuff in the title tags) and this should also have all of your navigation.

    As for removing index.php from your permalinks, go to Options >> Permalinks and remove index.php from the permalink structure. If you don't see it, just make your own custom structure, like /%year%/%monthnum%/%postname%/.

  3. peterdouglas
    Member
    Posted 7 years ago #

    Thanks for the tips. I got the name of "Home" changed to "Blog" and even added a title tag. Unfortunately, the other pages aren't listed there. It looks like the php is calling it from somewhere, but I don't know php well enough. After the link for the home page, it shows this:

    <?php bloginfo('name'); ?>

    My guess is that once I find those pages, or at least the links, I can also edit the title tags so that every page doesn't have the exact same ones as the home page.

    As for removing index.php from the permalink structure, it seems to already be gone (on the page Options>>Permalinks). Then I tried just about every other combination, with and without a .htaccess file. My pages are still showing up as http://usedcargold.com/index.php/tools No matter what I do, I can't get rid of index.php.

    Any ideas what I could be doing wrong?

  4. tsguitar
    Member
    Posted 7 years ago #

    So if it's the home page, you want title to read one thing; if it's the About Page, you want title to read another thing. No problem. Here's how I've set my title attribute:
    <title><?php
    if (is_archive())
    {
    echo "Archive: ";
    }
    elseif (is_search())
    {
    echo "Search Results";
    }
    ?>
    <?php wp_title('');
    if (!is_home())
    {
    echo ": ";
    }
    ?><?php bloginfo('name'); ?></title>

    Look here:
    http://codex.wordpress.org/Conditional_Tags

    As for your index.php problem, have you taken a look at your .htaccess file? I wonder if that is forcing index.php to be a part of the permalink structure.

    P.S. I posted an update to this problem over on your other thread.

  5. peterdouglas
    Member
    Posted 7 years ago #

    Hi, sorry for not replying yesterday - I wasn't able to get to my blog until now.

    Great idea with the code you gave me. I had to take out the title I put in the index.php page. I'm getting closer to getting the title tags working.

    They now show the name of the file in the title bar (for example, "About:" on the About page, "Book:" on the Book page, etc). Do you know how I can add more to the titles, like another 5 or 6 words? (Also, the home page, called "Blog" on my site now, doesn't show anything in the title bar now).

    I checked the link you gave me. The answer might be in there, but my limited knowledge of php hinders me from fully understanding the code. If it's there, would you, or anyone else reading this, be able to point me to the correct lines of code please?

    As for the .htaccess file, there wasn't one. Then I created one with the information given in the Permalinks page where there's a snippet of code. Uploaded it, but there was no change, so then I took it down again incase it affects something else.

    Thanks again! :)

  6. tsguitar
    Member
    Posted 7 years ago #

    What version of WP are you running? 2.0+ should take care of the permalinks without .htaccess.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags