Feature Boxes excerpt issue

  • Author
    Posts
  • #109055
    segnorob
    Power User

    I’m using Kahuna Plus, and on the landing page have Featured Boxes active. When the appearance setting is for a box that shows an excerpt of the post there is an issue when there is an embedded YouTube video at the beginning of the post. The excerpt in the box shows the URL (unlinked) of the YouTube video – however when going to the blog page, the excerpts there do not show that URL.

    The post is a YouTube video followed by text, and I would expect the excerpts on both the featured boxes and blog page to be consistent – and not show the URL.

    If it matters, the YouTube videos were embedded via the core WordPress option, not a plugin.

    #109063
    segnorob
    Power User

    After quite a lot of searching around, I tried something that seems to solve the above issue.

    I’m using a Child Theme, so I had to go into the functions in the Parent Theme: in the file includes/core.php on line 499 I added the following $text = excerpt_remove_blocks( $text );

    This was added above this line: $text = strip_shortcodes( $text );

    I’m not fully fluent in WordPress (or PHP), but is there a way of acheiving this by adding something to the Child Theme?

    #109402
    Zed
    Cryout Creations mastermind

    As I have said in the ticket response, thank you for pointing out that the excerpt no longer works as expected and for providing a possible solution.

    We’ll address the issue for the next theme update.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Feature Boxes excerpt issue’ is closed to new replies.