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

Fixed item size in /blog/ page

excerpt blog
    • 7 years, 10 months ago wally
      Participant

      Expired

      Hello,

      in my blog post I am using the ‘excerpt’ field because otherwise, the auto-excerpt was catching the h2-h3 tags of the Table Of Content used at the beginning of each post.  You can see here that each item gets a different size:

      https://monosnap.com/file/JkFVtNl7Gk98ud6VRNFvCRwJK3Ra4O

      is there a way to truncate the excerpt length to a fixed value of chars, so the items will all have the same size in the /blog/ page?

      Thanks!

    • 7 years, 10 months ago Ruco
      Keymaster

      Hello,

      Please edit the file ‘specular/includes/view/blog/loop-grid.php’. You can access this file also at WP dashboard -> Appearance -> Editor.

      <div class="text">
                              <?php   if($post_format == 'video' || $post_format == 'audio')
                                          echo codeless_text_limit(get_the_content(), 20);
                                      else
                                          echo get_the_excerpt();    
                              ?>
                          </div>

      with this:

      <div class="text">
                              <?php   
                                     echo codeless_text_limit(get_the_excerpt(), 20);
                                      
                              ?>
                          </div>

      You can change the ’20’ with the value you want.

      Best regards!

    • 7 years, 10 months ago wally
      Participant

      Expired

      works!

      thanks.

Viewing 2 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