Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #889774

    Hi!

    How do add html to an excerpt thats shows in a Masonry Element?
    See the first Masonry here: http://www.airlinestaffrates.com
    I have added the text for the excerpt manually.

    I want to add a Read more link and tried to add this code to functions.php but it is not working.
    function new_excerpt_more( $more ) {
    return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
    }
    add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

    I have activated this plugin but it is not working – wordpress.org/plugins/advanced-excerpt/

    This has been a problem with Enfold for a long time and why isn’t anything working with enfold when it comes to customize excerpt and see the result in Masonry??

    Thanks
    Charlotte

    #889803

    Hey Charlotte,
    In the masonry element the excerpt and image are linked to the article, while you can’t allow html in the masonry element without braking it, you can add [Read More] to the end of your manual excerpt. It will give the cue to click and is already linked.

    Please feel free to request – or vote if already requested – such feature on Enfold feature request form.

    Best regards,
    Mike

    #889804

    Hi Mike,

    Thanks for your reply?
    So your are absolutely sure there is no workaround if I want to add to bold text and color on a word in the Masonry excerpt?

    Best regards
    Charlotte

    #889807

    Hi,
    Yes, I followed 2 old workaround for this that worked pre v4, by editing the av-helper-masonry.php, in both cases it broke the masonry. I then did further research the resulted in 2 other moderators stating that the masonry element had been changed and the workaround would not work & to vote on this feature.
    My test did show that [Read More] will be shown.
    I have seen js scripts that will search your page and apply color to your keywords
    Perhaps there is even a plugin for this.

    Best regards,
    Mike

    #889815

    Hi Mike,

    Thanks for your email.
    As I said the Read More code that I added is not working in the excerpt. I have just added the Read more text as you suggested and it is clickable only because the whole Masonry is linked.

    These two plugins are not working with Enfold. Does anyone know why? It must be a compatibility problem with the Masonry..

    wordpress.org/plugins/advanced-excerpt/
    wordpress.org/plugins/rich-text-excerpts/

    Best regards
    Charlotte

    #889820

    Hi,
    Yes they will not work with the masonry, but Advanced Excerpt
    will work with the blog posts in Enfold. I tested it while I was working on your issue.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.