-
-
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
-
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!
-
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 ?
-
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!
-
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
-
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!
-
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.
-
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!
-
-
You must be logged in to reply to this topic.