• I am using customizer textarea field to get data for popup modal and displaying the content using filter hook ‘the_content’ as

    echo apply_filters( 
                'the_content', 
                html_entity_decode( 
                   get_theme_mod('primary_popup_modal',            
                      Customizer\get_customizer_default( 'primary_popup_modal' )
                   ) 
                 ) 
             );

    The popup modal content is ok on all the pages except on the pages which uses Brizy – Page Builder which shows the same page content in popup. I cannot use the_content filter hook as shown above on the pages which uses the page builder. Is there any solution for this?

    • This topic was modified 6 years, 4 months ago by Bikash Waiba.
    • This topic was modified 6 years, 4 months ago by Bikash Waiba.
    • This topic was modified 6 years, 4 months ago by Bikash Waiba.
Viewing 1 replies (of 1 total)
  • Thread Starter Bikash Waiba

    (@bikash-waiba)

    What i wanted to do.

    $content = html_entity_decode( get_theme_mod('primary_popup_modal', 
           Customizer\get_customizer_default( 'primary_popup_modal' ) ) );
    echo apply_filters('the_content', $content );

    Workaround I did.

    $content = wptexturize( $content );
    $content = convert_chars( $content );
    $content = wpautop( $content );
    $content = shortcode_unautop( $content );
    echo do_shortcode( $content );

    Is there any filter added by Brizy which cause this issue??

    • This reply was modified 6 years, 4 months ago by Bikash Waiba.
    • This reply was modified 6 years, 4 months ago by Bikash Waiba.
    • This reply was modified 6 years, 4 months ago by Bikash Waiba.
Viewing 1 replies (of 1 total)
  • The topic ‘The content filter’ is closed to new replies.