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 Masonry – how to show more text

blogtower minimal
    • 8 years, 2 months ago Ziabelle
      Participant

      Expired

      Hello,

      I’m using the theme Tower Minimal, and created a blog masonry type.

      It looks good, but I notice that only 1 or 2 lines of the text of the article show under the picture, on the blog page. In your demo, it was more, like 4 or 5 lines. How can I change this ? (1 or 2 lines is not enough to catch the attention of the readers…)

      thanks a lot for your help

       

    • 8 years, 2 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      To add more lines to the masonry blog posts, please go to file \includes\view\blog\loop-grid.php and find these lines:

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

      Edit to this:

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

      The number 20 is the number of words to display. Edit it to your wish.
      Let us know.

      Best regards!

    • 8 years, 2 months ago Ziabelle
      Participant

      Expired

      Hi,

      thanks for your answer, but… it doesn’t work (no change)

      See the screenshot attached

      (When I turn it to Normal Blog, it works, but not Masonry)

      Any other settings I should change ?

      [screenshot]

       

    • 8 years, 2 months ago Mirela
      Participant

      Hello,

      Are you sure you made the changes correctly? This is a tested solution and it does work. Please create a test account for us to be able to login into your wp dashboard. So i can check what is not correct in your side.
      Send us the credentials in a private reply or fill in your profile data.
      Read this article for more information.

      Best regards!

    • 8 years, 2 months ago Ziabelle
      Participant

      Expired

      Hi,

      thanks for your answer
      Well I think I did it correctly (made the change in the FTP directly)

      I filled in my profile data with all the information, so you can have a look.

      thanks

      Best regards

    • 8 years, 2 months ago Mirela
      Participant

      Hello,

      In the same file \includes\view\blog\loop-grid.php i edited out this line:
      echo codeless_text_limit(get_the_content(), 40);
      to this:
      echo codeless_text_limit(get_the_excerpt(), 60);
      Your posts have more excerpt that is why there was not being shown much text even if you increased the number of words to display.
      Please check your blog, it already is showing up more text.
      Let us know if you need further help.

      Best regards!

    • 8 years, 2 months ago Ziabelle
      Participant

      Expired

      Hi Mihaila,

      Thanks a lot, it looks great now !

      I have one more question concerning the blog : on the home page, I’m using the Latest from blog widget. But it showing strange (the blocks are all over the place, and not showing on fullwith page). Is there a reason to that ? And how can I fix it ?

      Best regards.

       

    • 8 years, 2 months ago Mirela
      Participant

      Hello,

      This is the style of masonry that you have chosen. The masonry layout is not regular. The images are in different sizes and layout is messy. If you want them to fill in the section space equally, then you have to select another blog style. Or add this code into your custom css box:

      .latest_blog .no_carousel .blog-item {
          width: 30% !important;
      }

      Let us know.

      Best regards!

    • 8 years, 2 months ago Ziabelle
      Participant

      Expired

      it’s much better !

      thank you :)

      best regards

      Isabelle

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