Viewing 6 replies - 1 through 6 (of 6 total)
  • In content.php / content-featured.php you need to change this with a child theme:

    the_excerpt

    To:

    the_content

    And read more should work.

    Thread Starter vanalles

    (@vanalles)

    Which files should I put into the child theme folder apart from style.css. Do you mean both files content.php and content-featured.php? And then change them as you explained above?

    Yup! Just put the content.php and content-featured.php files in the child theme, change them as you wish, and it will load from it instead.

    Download the hueman sample child theme here.

    I did that and it solved the read more problem; but now i’ve another one.

    One of my posts is a gallery with images, and now, all the images appear on the main page.
    mywebsite

    Yea that is one of the reasons the theme uses the_excerpt instead of the_content for that area.

    You can instead change back to the_excerpt and then add this for a read more link, where you want it to show up in content.php:

    <a href="<?php the_permalink(); ?>">Read more</a>

    Alternatively, make sure to always insert images in the post after the more tag.

    Or you could force-hide images with css for the excerpt area:

    .entry.excerpt img { display: none; }

    Thread Starter vanalles

    (@vanalles)

    The Read more in Pages is still not working. Do I change also the words
    excerpt to content?

    <?php if (ot_get_option(‘excerpt-length’) != ‘0’): ?>
    <div class=”entry excerpt”>
    <?php the_content(); ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Read more’ is closed to new replies.