Created
January 16, 2017 22:16
-
-
Save shazdeh/61751246ca0e19bf364575f73e0a7d1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function tf_start_buffer() { | |
| ob_start(); | |
| } | |
| add_action( 'wp_head', 'tf_start_buffer', 1 ); | |
| function tf_end_buffer() { | |
| $output = ob_get_clean(); | |
| if( preg_match( '/class=\"themify_builder_row/', $output ) ) { | |
| $output = str_replace( | |
| '<meta name="builder-styles-css" content="" id="builder-styles-css">', | |
| '<link rel="stylesheet" id="builder-styles-css" href="'. THEMIFY_BUILDER_URI . '/css/themify-builder-style.css' .'" media="all" />', | |
| $output | |
| ); | |
| } | |
| echo $output; | |
| } | |
| add_action( 'wp_footer', 'tf_end_buffer', 10000 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment