Unfortunately you will still need css. As css is loaded for the entire site at once. It is not loading just the used elements. For the moment you will still need the entire theme css file. You built a page in a custom page builder, but what about headers footers, other parts of the site excluding the page itself. The layout will break most likely.
Thanks.
Hi Bogdan,
Thanks for the reply.
Just for clarification. I created a complete page including header, footer etc. So the complete page is built with an custom editor. There are no components of the newspaper theme used in this landingpage. That is why i want to remove the css etc.
Hope to hear from you soon.
Thanks
ronny
Ok,
In this case you will need a bit of coding skills to do it. This should help:
https://wordpress.stackexchange.com/questions/217881/remove-css-styles-from-specific-page
Thank you!
Ok,
In this case you will need a bit of coding skills to do it. This should help:
https://wordpress.stackexchange.com/questions/217881/remove-css-styles-from-specific-page
Thank you!
One last question bogdan.
Which are the style names i should use? I tried the following but those don’t work:
function remove_scripts() {
if ( is_page( ‘slug-name’ ) ) {
// Remove Styles
wp_dequeue_style( ‘td-theme’ );
wp_deregister_style( ‘td-theme’ );
wp_dequeue_style( ‘td-theme-woo’ );
wp_deregister_style( ‘td-theme-woo’ );
}
}
Thanks!