Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

blog Excerpt Length

    • 5 years, 5 months ago mameomame
      Participant

      Hi.

      How to change blog excerpt length on front page.

      We won’t to show any excerpt.

      Now we use Folie child theme, setting Appearance >Customize > blog>Enable auto excerpt is off and excerpt length is zero.

      However all texts are shown on the front page.

      Thank you.

      M

    • 5 years, 5 months ago Ruco
      Keymaster

      Hello,

      Normally if you set the excerpt is off you will see the full content. In case you want to remove all the content below the title you have to follow the steps below:

      First you have to set the excerpt option ON and edit the file

      themes/folie/template-parts/blog/style-default.php

      <?php get_template_part( 'template-parts/blog/formats/content', get_post_format() ) ?>

      comment the line above or delete it

      	<?php //get_template_part( 'template-parts/blog/formats/content', get_post_format() ) ?>
      

      Save the file and the whole content will be disabled.

      Regards!

    • 5 years, 5 months ago mameomame
      Participant
      This reply has been marked as private.
    • 5 years, 5 months ago Ruco
      Keymaster

      Hello,

      Can you check out this PHP file instead: wp-content/themes/folie/template-parts/entry-content/

      // Display excerpt if auto excerpts are enabled in the admin
      if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) :
      
          if( get_the_excerpt() == '' ){
              $content    = get_the_content();
              $content    = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content);
              echo  wp_trim_words( $content, codeless_get_mod('blog_excerpt_length', 40), ' [...]' );
          }
          else
              the_excerpt();

      replace with:

      // Display excerpt if auto excerpts are enabled in the admin
      if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) :
      
          if( get_the_excerpt() == '' ){
              $content    = get_the_content();
              $content    = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content);
              $content = '';
          }
          else
               $content = '';

      Let us know.

      Regards!

    • 5 years, 5 months ago mameomame
      Participant

      Thank you very much!

    • 5 years, 5 months ago Ludjon
      Keymaster

      You’re welcome :)

      If you like our theme and support, leave us a rating on Themeforest, it’s very important for us :)

      https://themeforest.net/downloads

      Thank You so much

       

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password