WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Link back to Homepage (8 posts)

  1. coreyl777
    Member
    Posted 6 years ago #

    How do you put links on the blog page to go back to your website? For example my site blog page does not have a links back to my other pages. How do I put them on my page so that users of my blog can go back to my home page?

  2. Hyper123
    Member
    Posted 6 years ago #

    <a href="<?php echo get_option('home'); ?>/">Home</a>
    will link someone to the homepage.

  3. coreyl777
    Member
    Posted 6 years ago #

    Thanks for the reply. Where do you put the code though? That's where I'm lost. Not sure where to input the code. Page is somewhat confusing.

  4. moshu
    Member
    Posted 6 years ago #

    Show us your blog and somebody will tell you. With more than a thousand themes all coded differently... it is difficult to guess.

  5. coreyl777
    Member
    Posted 6 years ago #

    No problem dude. My Blog Page is:

    http://www.clinkvoice.com/blog/

    I want to make links on my blog page to look like the links on my homepage (across the top and/or on the sides): http://www.clinkvoice.com

  6. TrishaM
    Member
    Posted 6 years ago #

    I notice that you're just using the default theme - if you decide to change themes you'll need to repeat this process for your new theme, but here goes.....

    In the theme's sidebar.php file you'll find this code snippet, which is what lists your pages...

    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    Depending on WHERE you want links back to your site's home page to appear (either before or after the blog pages get listed), then just hardcode in the page links. You may want to wrap them in ul and li tags in order to style them, or not. You can decide that as you go along.....

    So do something like this:

    <a href="http://www.mysitedomain.com/index.html">Home</a>
    <a href="http://www.mysitedomain.com/Contactus.html>Contact Us</a>
    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    etc....

  7. moshu
    Member
    Posted 6 years ago #

    Not to mention: the blog title is ALWAYS a link back to your blog's homepage. Just try it...

  8. coreyl777
    Member
    Posted 6 years ago #

    Got it going. Thanks for help. :)

Topic Closed

This topic has been closed to new replies.

About this Topic