WordPress.org

Forums

Hueman
Add "Read More" Function to Page (4 posts)

  1. anoza3112
    Member
    Posted 1 year ago #

    Hello,

    Thanks a lot for this theme, I really love it. I've created a GIF page on my blog and would like to insert a "Read More" toggle after every 10 images but can't figure out a way to do it. Any suggestions?

    http://therickeyhenderson.com/gifs/

    Thanks

    Alex

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 1 year ago #

    Hi! You need to edit page.php, and locate:

    <?php the_content(); ?>

    Right after it, add:

    <?php wp_link_pages(array('before'=>'<div class="post-pages">'.__('Pages:','hueman'),'after'=>'</div>')); ?>
  3. anoza3112
    Member
    Posted 12 months ago #

    Thanks a lot for you quick response. I tried doing that but the Read More bar still doesn't show up. These aren't posts, it's actually just one page that I keep updating with images and text. Does that matter? Thanks.

  4. jgodbey07
    Member
    Posted 11 months ago #

    I have the same problem, but I just want to use Read More... around text. Alex, I tried implementing your solution, but couldn't get it to work. After updating the Page.php file I go back to edit my home page and click on the Insert More Tag button where I want to add the function, but it doesn't show up when I update the page. Any other suggestions would be grateful!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags