Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1095825

    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?

    #1095859

    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

    #1096197

    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?

    #1096959

    Hi tonyhsieh999,

    Please try the solution posted here

    Best regards,
    Victoria

    #1096995

    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.

    #1097204

    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

    #1097460

    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.

    #1097589

    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

    #1098116

    Hi Rikard.
    That worked.

    Thank you.
    Tony.

    #1098211

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Masonry – Increase Excerpt Characters and Hide Publish Date’ is closed to new replies.