Skip to content

Instantly share code, notes, and snippets.

@cgrymala
Last active June 23, 2019 06:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgrymala/4d7265849859829bc3b1 to your computer and use it in GitHub Desktop.
Save cgrymala/4d7265849859829bc3b1 to your computer and use it in GitHub Desktop.
Shows an example of the functions used to remove Views wrapper HTML
<?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' ) );
@dsvanidze
Copy link

dsvanidze commented Aug 18, 2017

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]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment