wordpress - Prevent theme styles from loading in custom page template -
i have wordpress website theme. implement changes created child theme. works fine.
now want add page template allows me enqueue styles via wp_enqueue_style
. work need add wp_head()
page template if understand correctly.
i want use custom page template front end app creating (plugin). design of app separate rest of website. right theme styles when use wp_head()
. prevent default theme styles loading.
what easy way achieve this? preferably theme independent solution.
you can include different header.
https://codex.wordpress.org/function_reference/get_header
multiple headers
different header different pages.
<?php if ( is_home() ) : get_header( 'home' ); elseif ( is_404() ) : get_header( '404' ); else : get_header(); endif; ?>
Comments
Post a Comment