• Greetings!

    I’m trying to use a plugin that shows dictionary tool tips in my pages. All of the text on my pages is generated in my themes page builder, not the main wysiwyg. I believe the problem is that the plugin calls the filter “the_content” in order to run the tooltips (which is why if I temporarily add some copy to the wysiwyg, the tool tip works there) and the content of my page builder uses something else, not “the_content” filter. I have some theories on where/how to fix this, I just can’t seem to execute it.

    The plugin uses the following code:

    add_filter( 'the_content', array(
    				$this, 'add_explanatory_dictionary_words'
    		), 15 );

    I feel if I somehow change that filter name to what ever is being called in the page builder, it might work.

    This is the code for the page builder I think I might be able to utilize:

    if ( $options['stb_style'] == 'subpage' && !empty($options['stb_title'])) {
    
    			echo '<div class="'.$element_size['sizer'].' subpage">';
    
    				if($options['stb_style'] == 'subpage' && !empty($options['stb_title'])) {
    					echo '<h2 class="subpage_title">'.$options['stb_title'].'</h2>';
    				}
    
    				if ( !empty ( $options['stb_content'] ) )  {
    					if (preg_match('%(<[^>]*>.*?</)%i', $options['stb_content'], $regs)) {
    						echo do_shortcode ( $options['stb_content'] );
    
    					} else {
    						echo '<p>'.do_shortcode ( $options['stb_content'] ).'</p>';
    					}
    				}
    
    			echo '</div>';
    		}

    It seems logical that I somehow use ‘stb_content’ as the way to call the plugin, but I can’t for the life of me get it to work.

    Does anyone have any thoughts? My url is below. As you can see, the word “premium” that I wrote in the wysiwyg works, but in the page builder content, it does not.

    https://www.ibxwalkthetalk.com/h360/what-is-health-insurance/

    Thank you so much for your time!
    Cheers!

Viewing 1 replies (of 1 total)
  • I’m sorry but as you appear to be using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not have access to, nor do we support, commercial products here.

Viewing 1 replies (of 1 total)
  • The topic ‘site theme doesnt use "the_content" filter’ is closed to new replies.