• Resolved coreyl777

    (@coreyl777)


    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • <a href="<?php echo get_option('home'); ?>/">Home</a>
    will link someone to the homepage.

    Thread Starter coreyl777

    (@coreyl777)

    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.

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

    Thread Starter coreyl777

    (@coreyl777)

    No problem dude. My Blog Page is:

    https://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): https://www.clinkvoice.com

    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="https://www.mysitedomain.com/index.html">Home</a>
    <a href="https://www.mysitedomain.com/Contactus.html>Contact Us</a>
    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    etc….

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

    Thread Starter coreyl777

    (@coreyl777)

    Got it going. Thanks for help. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Link back to Homepage’ is closed to new replies.