Adding "Read On" + Icon To The Post (6 posts)

  1. William Speruzzi
    Posted 10 years ago #

    If you take a look at my blog you can see a "read on" with a tiny box/arrow icon next to it.

    Does anyone know how I can get that to add to the point were WordPress cuts off my post text?

  2. moshu
    Posted 10 years ago #

    Well, we cannot take a look a your blog because you didn't give us a link :)
    On the other hand, see http://codex.wordpress.org/Customizing_the_Read_More

  3. William Speruzzi
    Posted 10 years ago #

    Here you go: [this savage art...]

    Thanks for the link.

  4. William Speruzzi
    Posted 10 years ago #

    So I opened the page.php and notice what resembled the code described in the "Customizing The Read More" link above. This is what I found:

    <?php the_content('<p class="serif">Read the rest of this page »'); ?>

    There is a <!--more--> tag in the most recent post that cuts the text off. It seems to do this anyway even if I don't quicktag it in the Post Subpanel. The issue is I'm not seeing "Read the rest of this page" where the break happens prompting the reader to click the link to continue. I'm baffled.

    I'm new to WordPress so any help would be appreciated.

  5. moshu
    Posted 10 years ago #

    page.php is used only to display the Pages (created in the Write > Write Page panel)
    which means, you edited the wrong file :)
    You should edit the index.php in your theme's folder.

  6. William Speruzzi
    Posted 10 years ago #

    Thanks for the help moshu, I'm getting closer.

    Okay, so it looks like I've successfully applied the [...] as a link to read more but I want it to jump to the permalink of the whole page, not where the <!--more--> tag has designated it. Trying to incorporate that into the_content line proved unsuccessful.

    Here is the code I have for that section so far:

    <?php the_content('<span class="read-on">[...]</span>'); ?>

    <div class="details">

    <?= _('Posted at') ?> <?php the_time('ga \o\n ' . $hemingway->date_format(true) . '/y') ?> | <?php comments_popup_link('no comments', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?><span class="read-on">">read on</span>

    Any ideas on that?

    Also trying to get rid of the "read on ->" in the post info area. I would like to keep the box/arrow icon and place it in the brackets.

Topic Closed

This topic has been closed to new replies.

About this Topic