Last active
June 23, 2019 06:02
-
-
Save cgrymala/4d7265849859829bc3b1 to your computer and use it in GitHub Desktop.
Shows an example of the functions used to remove Views wrapper HTML
This file contains 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
<?php | |
/** | |
* Override the extra HTML that Views uses to wrap its output | |
*/ | |
remove_shortcode( 'wpv-layout-start' ); | |
remove_shortcode( 'wpv-layout-end' ); | |
add_shortcode( 'wpv-layout-start', array( $this, '__blank' ) ); | |
add_shortcode( 'wpv-layout-end', array( $this, '__blank' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how does this work? I added this in function.php and wrapper-divs are disappeared, but I can see output as a Text "[wpv-layout-start] [wpv-layout-end]"