Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @hidalgm2 : Hi,

    What layout builder are you referring to?

    In my experience, some layout builder plugins don’t run WordPress filters against the text entered into text box widgets, which is the method this plugin (and many others) use able to process things. If the layout builder it well-developed, it would at least introduce a custom filter that could be used.

    Thread Starter hidalgm2

    (@hidalgm2)

    I believe I am using Elegant Builder

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Sorry, but that’s a commercial plugin so I have no access to its code to provide a recommendation on how to proceed. As they have dedicated support services that should be available to you as one of their customers, you can ask their advice.

    Information to include for them:

    The Text Hover plugin functions by filtering text. By default, it filters ‘the_content’, ‘get_the_excerpt’, and ‘widget_text’. If the builder’s text box widget (or whatever component you are using) has its own custom filter, Text Hover could be made to handle that as well, with code like so:

    /**
     * Enable text hover for custom filter.
     *
     * @param array $filters Filters to handle for text hover.
     * @return array
     */
    function more_text_hovers( $filters ) {
    	$filters[] = 'custom_filter_name'; // Here you could put in the name of any filter you want
    	return $filters;
    }
    add_filter( 'c2c_text_hover_filters', 'more_text_hovers' );
    Thread Starter hidalgm2

    (@hidalgm2)

    Could you recommend a different layout builder plugin?

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Unfortunately I don’t have any recommendations for you with regards to layout builder plugins as I’ve never used any of them. I know some others don’t run standard filters (or any at all) which would prevent their text boxes from being accessible to this plugin, as you’ve experienced with this one.

    Was the support personnel for the layout builder plugin you’re using not able to help out in any way?

    Thread Starter hidalgm2

    (@hidalgm2)

    They typically take a while to get back to me, but I’ve asked. Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text in layout builder’ is closed to new replies.