Forums

Changing "Older/Newer Posts" image in Twenty Ten Theme (6 posts)

  1. camilledemondesir
    Member
    Posted 10 months ago #

    I'd like to upload an image of custom arrows to my theme and insert them in the place of "Older Posts" and "Newer Posts" that are at the footer of my site. I think I have to make the change in the Loop of my Twenty Ten child theme, but not sure which part of the code to edit exactly. Help please!

    http://thewildfleur.com

  2. alchymyth
    The Sweeper
    Posted 10 months ago #

    but not sure which part of the code to edit exactly

    the code is right at the beginning (after the commented part) of loop.php, and right at the end;

    <?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?>
    <?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>

    http://codex.wordpress.org/Function_Reference/next_posts_link
    http://codex.wordpress.org/Function_Reference/previous_posts_link

    example:

    <?php previous_posts_link('<span class="meta-nav"><img src="http://FULL_PATH_TO_IMAGE/new_arrow.jpg" alt="" /></span>'); ?>

  3. camilledemondesir
    Member
    Posted 10 months ago #

    Thanks, it works for the arrows at the top of the page but not at the bottom. I still have the standard "Older Posts" and "Newer Posts" at the footer. Where else should I make edits?

  4. alchymyth
    The Sweeper
    Posted 10 months ago #

    the code is right at the beginning (after the commented part) of loop.php, and right at the end;

    have you edited the code section at the bottom of loop.php as well?

  5. camilledemondesir
    Member
    Posted 10 months ago #

    Oh ok! Sorry, I hadn't realized the code was at the end as well. Thanks so much for your help.

  6. camilledemondesir
    Member
    Posted 10 months ago #

    Actually, I have one more question if you wouldn't mind answering it!

    I'd like to upload an image of a line border to place in between each post blog (as a divider). Where in the Twenty Ten theme can I insert the url of the image?

Reply

You must log in to post.

About this Topic