Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Created December 12, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maheshwaghmare/5aff239d7c73b7621555752b00be2d91 to your computer and use it in GitHub Desktop.
Save maheshwaghmare/5aff239d7c73b7621555752b00be2d91 to your computer and use it in GitHub Desktop.
Astra Portfolio - Disable the portfolio grid.
<?php
if( ! function_exists( 'prefix_astra_portfolio_disable_grid_css' ) ) :
/**
* Disalbe the Portfolio Grid CSS
*
* @since x.x.x
* @return void
*/
function prefix_astra_portfolio_disable_grid_css() {
wp_deregister_style( 'astra-portfolio-grid' );
}
add_action( 'wp_enqueue_scripts', 'prefix_astra_portfolio_disable_grid_css', 90 );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment