• Hello!

    I have my blog posts linked to a page titled “Blog” and it will only show excerpts. In order to read the full post you must click “continue reading” I want my entire posts to show whenever someone clicks on my Blog page.

    My site is, http://thesunshinemark.com/

    I have my Reading Settings set to “show full text” and it still isn’t working.

    I tried to work with HostGator support and they told me,

    “I was able to see that the coding will need to be done in thesunshinemark.com/wp-content/themes/button/components in the content.php file but it’s not reacting to the codes that I have currently so they should be able to help you out further.”

    Thank you in advance for the help!

Viewing 1 replies (of 1 total)
  • I have my Reading Settings set to “show full text” and it still isn’t working.

    That setting only applies to RSS feeds, not the blog page on the front end (public side) of the site.

    “I was able to see that the coding will need to be done in thesunshinemark.com/wp-content/themes/button/components in the content.php file but it’s not reacting to the codes that I have currently so they should be able to help you out further.”

    HostGator shouldn’t be touching your theme files directly or advising you to do that.

    You’ll need to first set up a child theme, so your changes won’t be overwritten every time you update the theme – that’s the correct way to make this type of theme change.

    If you’re new to child themes, you can explore these guides:

    http://codex.wordpress.org/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
    http://vimeo.com/39023468

    Next, copy the file from /components/content.php in your parent theme. Create a new folder in your child theme called components and place the copy of content.php in there.

    You can see on lines 46-64 of that file that only posts with the Aside, Link, or Quote post format display the full post – all other post formats display the post excerpt instead.

    What we need to do in the child theme is remove that condition so that all posts, with any post format, display the full post.

    So remove line 46 completely:

    <?php //if ( 'aside' == $format || 'link' == $format || 'quote' == $format || 'video' == $format ) : ?>

    And change lines 54-64 from this:

    <?php else : ?>
      <div class="entry-summary">
        <?php the_excerpt(); ?>
      </div><!-- .entry-summary -->
    
    <?php if ( function_exists( 'button_post_flair' ) ) : ?>
      <div class="entry-flair">
        <?php button_post_flair(); ?>
      </div><!-- .entry-flair -->
    <?php endif; ?>
    <?php endif; ?>

    to this:

    <?php if ( function_exists( 'button_post_flair' ) ) : ?>
       <div class="entry-flair">
        <?php button_post_flair(); ?>
      </div><!-- .entry-flair -->
    <?php endif; ?>

    That should do it – let me know how it goes.

Viewing 1 replies (of 1 total)

The topic ‘Blog Posts only showing excerpt in Button theme’ is closed to new replies.