Support » Theme: Nucleare » Read more tag working incorrectly

  • Hi,

    I have recently begun using to create a food blog. I do not want the full posts to be displayed on the home page so I am using the ‘read more’ tag. However, this does not display in the correct spot. Even when I remove the code for the tag the button remains in the middle of my post and cuts it off halfway through a sentence. Is there a word limit set on the posts? If so, how do I remove it?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author CrestaProject


    Hi ravenous_rosie,
    the “read more” tag is automatically, after about 40 words cut the post and shows the button “read more” (in home page).

    On the home page shows the summary of the post.


    I come from WP.COM so am also used to have “more control” over the Read More tag.
    Is there an easy way to not have it by default, and instead use the one from the Editor toolbar?

    Hi ravenous_rosie,

    I don’t know if this will help, but I bypassed the default behavior of the summary/excerpt by doing the following tweaking.

    In content.php, I replaced this bit of code:

    <div class="entry-summary">
            <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->

    with this:

    <div class="entry-content">
            <?php the_content(); ?>
    </div><!-- .entry-content -->

    This allows for the “read more” link to display where you want the summary/excerpt to end.

    But then, I realized that the Read More button displays regardless of whether the articles are shown in full or not. So I decided to remove it altogether, and did it by removing this code (still in content.php):

    <div class="readMoreLink">
            <a href="<?php echo get_permalink(); ?>"><?php _e('Read More', 'nucleare') ?><i class="fa spaceLeft fa-angle-double-right"></i></a>

    Also, I find out that it’s possible to modify the limit of the excerpt length, but I’m unclear whether it’ll really help with what you want to do. But, if you want to tinker with it, this doc indicates to go in functions.php and add this piece of code:

    function custom_excerpt_length( $length ) {
    	return 20;
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Change 20 to whatever you want the limit of words to be.

    I’m still learning my way around, and I’ll admit that I’m unsure whether the way I modified my code is right or not, but it seems to work for now.

    I hope this will be of some help. 🙂

    Lol. I just realized I replied to a one-month old thread. ¯\_(ツ)_/¯

    Thread Starter ravenous_rosie


    Haha, yes, its all good, I have fixed the tag now but I honestly cannot remember what I did so unfortunately cannot share it with you!

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