Dequeue / deregister portfolio-shortcode.css
-
I’m trying to dequeue the default styling for the Jetpack Portfolio module, in order to have better control over how the portfolio grid behaves and add my own styling.
Here’s the code I tried, which doesn’t work:
function myprefix_remove_styles() { wp_dequeue_style( 'jetpack-portfolio-style' ); wp_deregister_style( 'jetpack-portfolio-style' ); } add_action( 'wp_enqueue_scripts', 'myprefix_remove_styles' );I also tried to hook to
wp_print_stylesand tried changing the priority, but still no luck. It’s pretty weird, as the same code works for other Jetpack modules.Has anyone been able to successfully remove this particular style (portfolio-shortcode.css)? I would appreciate some feedback. Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Dequeue / deregister portfolio-shortcode.css’ is closed to new replies.