Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #836263

    Hello,
    how can I change the excerpt of the “Featured Image Slider” ? (remove paragraph tags, add some custom HTML, …)

    I tried:

    function feature_image_slider_change_excerpt($text)
    {
    	return strip_tags($text);
    }
    add_filter('get_the_excerpt', 'feature_image_slider_change_excerpt');

    Thank you!

    Best regards,
    Stefan

    #836921

    Hey Stefan,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #837007

    Hi Victoria,

    here is the link:
    http://www.rednerpult-faircom.de
    Best regards,
    Stefan

    #838024

    Hi Stefan,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? I think you should insert the excerpt manually into the corresponding field and then just show it.
    What custom html do you need to add there?

    Best regards,
    Victoria

    • This reply was modified 7 years, 2 months ago by Victoria.
    #840799
    This reply has been marked as private.
    #842323

    Hi,

    Did you add the excerpt manually? If the excerpt was added manually, use the following filter.

    // https://developer.wordpress.org/reference/hooks/the_excerpt/

    If the excerpt is being extracted from the actual content, use this.

    // https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content

    Best regards,
    Ismael

    #844050

    Hello,
    thanks for your help.
    I was not able to solve the problem with extracted excerpts.
    So now, I use manually excerpts and I’m quite happy with the result.
    For the moment. ;-)

    Please close the topic!

    Best regards,
    Stefan

    #844219

    Hi Stefan,

    Glad to hear that and thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change the excerpt of Featured Image Slider’ is closed to new replies.