Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #889175

    Hey,

    How can I add formating in Excerpt? Like bold text and color to a word

    Thanks
    Charlotte
    http://www.airlinestaffrates.com

    #889198

    Hey Charlotte,

    Please, can you send a screenshot of the area that you wanna add the bold and color text?

    Best regards,
    John Torvik

    #889254

    Hi John,

    You can view now on http://www.airlinestaffrates.com
    The Masonry under Latest Airline Staff Discounts

    1. I want to be able to add color to a word and bold text in the excerpt

    2. I want to a link to be added automatically to the blog post, like View more

    3. I have choose Large Gap but it does not really show and as you can see it is a white margin on the
    left hand side.

    4. Headline Latest Airline Staff Discounts
    I have 0 Padding bottom but there is still a lot of white space between the headline and the Masonry.
    How can I decrease that?

    Thanks!
    Charlotte

    #889257

    https://wordpress.org/plugins/rich-text-excerpts/
    I tried to use this plugin but it wasn’t working

    https://codex.wordpress.org/Excerpt#How_to_add_a_link_beneath_an_excerpt_to_the_full_post
    I have added this code to the functions.php but it does not add a link as you can see

    function new_excerpt_more( $more ) {
    return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
    }
    add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

    #890090

    Hi charlotteraboff,

    All the html is stripped from the excepts when they are rendered. And the function adds an empty string.

    Best regards,
    Victoria

    #977409

    Hello,
    do I understand it correctly, that Enfold is not compatible with the plugin “Rich Text Excerpts”?
    I.e. Enfold deletes all HTML-tags that one adds with the help of this plugin.

    What would you suggest instead, in order to format post excerpts?
    I need post excerpts inside of one Masonry element.

    I also tried to add HTML manually into the field “Excerpt” (without any plugins), like

    <strong>Excerpt Title</strong>
    Excerpt body text, please visit <a href="test.com/testpage">test.com/testpage</a>
    

    but these manual HTML-tags were deleted by Enfold too.

    #977435

    Hi med,

    Here is a thread for you to consider

    HTML markup in excerpt has been lost

    and one more

    If you need further assistance please let us know.
    Best regards,
    Victoria

    • This reply was modified 6 years, 1 month ago by Victoria.
    #977533

    Hi,

    I had seen these threads before asking my question, and the problem is that there is no solution in these threads for Excerpts inside a “Masonry”-element, except the hint of Ismael (#734529) to override Enfold core files, which means this change will last only till the next Enfold update.
    Do you have meanwhile some solution through the child theme?

    Best regards

    #977994

    Hi med,

    You can copy the file av-helper-masonry.php to the child theme and make your changes there. You need to preserve the folder structure.

    Best regards,
    Victoria

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