Skip to content

Instantly share code, notes, and snippets.

@MohammedKaludi
Created January 21, 2017 13:03
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 MohammedKaludi/5f0c6bc912b4c3b44019ccd9016e0568 to your computer and use it in GitHub Desktop.
Save MohammedKaludi/5f0c6bc912b4c3b44019ccd9016e0568 to your computer and use it in GitHub Desktop.
Completely remove default CSS from AMPforWP plugin
add_action('pre_amp_render_post','ampforwp_remove_default_stylesheet',20);
function ampforwp_remove_default_stylesheet(){
remove_action('amp_post_template_css', 'ampforwp_additional_style_input');
}
@sumon1068
Copy link

This snippet doesn't work anymore.

@MohammedKaludi
Copy link
Author

This snippet doesn't work anymore.

can you please let me know which design type you are using and if you could share it then i'll be able to help you.

@sumon1068
Copy link

can you please let me know which design type you are using and if you could share it then i'll be able to help you.

I am using swift theme.

@MohammedKaludi
Copy link
Author

MohammedKaludi commented Jun 9, 2021

And you want to remove all the css added by the plugin and add custom css that you have written right?

This is the usecase, correct?

@sumon1068
Copy link

Yes. That's it.

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