WordPress.org

Ready to get started?Download WordPress

Forums

wordpress home button (11 posts)

  1. woodbomb
    Member
    Posted 7 years ago #

    i've already installed wp into /wordpress under my home directory (linux) and created categories and posts. I'm using the deliciously-blue template which display a about and home tab across the top. Since I'm invoking wp from a webpage, I'd like the home tab to take the user to the home website page. I've looked at the dos on how to go from a home-based install to a subdirectory-based install, but I haven't found anything yet that fits my situation. Changing the mysql file associated with home causes confusion.

  2. JustinRDev
    Member
    Posted 7 years ago #

    From what I've noticed, this is generally hard coded into the template header.php An example of mine is:

    'href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/menu_home.png" width="104" height="29" alt="HOME" />'

    If yours is setup the same way, adjust as needed.

  3. woodbomb
    Member
    Posted 7 years ago #

    Thanks for the suggestion. In the deliciously-blue template, everything seems to be controlled via database access: no hard-coding that I can see.

  4. Marcel Brinkkemper
    Member
    Posted 7 years ago #

    look a little bit better, it is in header.php
    <li class="page_item"><a href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>change <?php echo get_settings('home'); ?>/to the uri of your homepage

  5. woodbomb
    Member
    Posted 7 years ago #

    OK. What I want to specify is the index.php file located in /home/public_html (above wordpress). I've tried several variations. Here's the last.

    Replacing 'Change ... uri' with '/public_html/index.php' isn't doing the job.

    Suggestion? Obviously I know squat about php.

  6. Marcel Brinkkemper
    Member
    Posted 7 years ago #

    /public_html usually refers to a directory on your server. What is the URL you normally use to browse to your site? Use that in your code.

  7. woodbomb
    Member
    Posted 7 years ago #

    Ok. When I replace /public_html

    with http://www.mysite.info (yes, info, not com)

    The following appears on the wordpress blog just below the home tab:

    'www.mysite.info //'

  8. Marcel Brinkkemper
    Member
    Posted 7 years ago #

    not quite sure what you are doing.
    change the line in header.php to

    <li class="page_item"><a href="http://www.mysite.info" title="Home">Home</a></li>

  9. woodbomb
    Member
    Posted 7 years ago #

    This did it. Thanks to all.

  10. woodbomb
    Member
    Posted 7 years ago #

    Well, almost. I probably should have mentioned that the blog is being via SohoLaunch. As a result, after clicking 'home' on the blog page, the home page of the website appears twice. Arrgh. Suggestions?

  11. Marcel Brinkkemper
    Member
    Posted 7 years ago #

    Please check the SohoLaunch forums.
    http://forum.soholaunch.com/

Topic Closed

This topic has been closed to new replies.

About this Topic