Is there a way to increase excerpt length displayed on Masonry and also hide publish date?
Please see the attached link for more details.
Maybe adding a code in the function.php?
Hey tonyhsieh999,
Add this to functions.php
add_filter( 'excerpt_length', function($length) {
return 20;
} );
Adjust 20 to the number you need.
Best regards,
Jordan Shannon
Thank you, Jordan.
I added it in functions.php but did not work. Still showing the same length.
Wondering if it’s because of Masonry design?
Hi tonyhsieh999,
Please try the solution posted here
Best regards,
Victoria
Thank you Victoria, that resolved the excerpt characters portion of the question.
Would you happen to know how to hide the publish date as well?
Thanks.
Hi tonyhsieh999,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria
Hi Victoria,
I have attached a screen shot below and a link to the site.
As you can see, the publication date is visible right now (example – March 10, 2018)
We wondering if there is a way to hide that.
Thanks,
Tony.
Hi Tony,
Thanks for the screenshot. Please try the following in Quick CSS under Enfold->General Styling:
.av-masonry span.av-masonry-date {
display:none;
}
Best regards,
Rikard
Hi Rikard.
That worked.
Thank you.
Tony.
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon