• Resolved chrolland

    (@chrolland)


    If you use the Pagbuilder Divi in Glossary, the tooltip remains empty.

    I have found a solution for this:

    Open this file:
    wp-content / plugins / glossary-by-codeat / frontend / Core / Generate_Excerpt.php

    Change line 47 from:

    $excerpt = \strip_shortcodes( $excerpt );

    to:

    $excerpt = \do_shortcode( $excerpt );

    @ Daniele:
    Do you know if do_shortcode can have negative effects?
    If not, could you consider it in the next update?

    I love your plugin, and I will buy the Lifetime version soon.

    Best regards

    Christoph

Viewing 2 replies - 1 through 2 (of 2 total)
  • We don’t support Divi or page builders (except Elementor that works out the box).

    The strip_shortcodes is required because there are pages where usually a shortcode is on top of the content that maybe is a video player or the table of contents and instead in the tooltip those stuff shouldn’t be appear.

    Basically is to avoid conflicts.

    Instead of patching the plugin I invite you to use the filters in this way:

    add_filter('glossary_excerpt', 'glossary_divi_excerpt', 99999, 2):
    
    function glossary_divi_excerpt( $excerpt, $post_id ) {
       return do_shortcode(get_the_content($post_id));
    }
    

    I didn’t tested it but will let you to get the content with shortcode executed and later the plugin will generate an excerpt from that.

    Closing after a month with no answers.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[NSFW] Empty Tooltip with Divi’ is closed to new replies.