Cutline Theme Support Forums » Cutline Theme Support Forums

Link to front page

(3 posts)
  • Started 4 years ago by mistyme
  • Latest reply from thirdeyetc
  • This topic is not resolved

  1. mistyme
    Member

    I removed the Front Page - Archives - About ... header and instead want to add a link in each posting that will bring you back to the front page. I'll use the cutline blog as an example.

    If you go to: http://cutline.tubetorial.com/ and click on the first posting "New Support Organizer: David Peralty" you are brought to the full article/post page. Now, I want to add a link that goes back to the frontpage at the top. Something like this...

    <-- How To Add A Background To Cutline | Front Page

    Does anyone know how to do this? Thanks in advance for any help you can provide.

    Posted 4 years ago #
  2. corrected

    Posted 4 years ago #
  3. Just open your single.php file (the code for posts) and at the top there should be like a nav div where the next post, previous post navigation displays. if you want it to appear with that stuff you'll have to add the link into the navigation.php page.

    <div class="navigation">
    	<span class="previous"><?php previous_post_link('&larr; %link') ?></span>
    	<span class="next"><?php next_post_link('%link &rarr;') ?></span>
    </div>
    <div class="clear whitespace"></div>

    That portion is the links up top to the next and previous blog entries. I suppose you could just stick your link in there somewhere and fool around with the formatting with CSS until you get it looking alright. I'd probably stick it on it's own line though.

    Otherwise you can just stick it before the loop in the single.php file (start of the loop: <?php if (have_posts()) : while (have_posts()) : the_post(); ?>). And just do a <a href="<?php bloginfo('url'); ?>">Front Page</a>.

    If you want to change how it looks you'll have some CSS on your hands.

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.