The problem is that your theme still load the main style.css sheet, because it is called by wp_head()
. See the documentation here
So, in order to not load your theme main stylesheet, you have to add to your functions.php
file :
add_action( 'wp_enqueue_scripts', 'yolo_my_custom_template' );
function yolo_my_custom_template(){
if ( is_page_template( 'name_of_your_page_template.php' ) ) :
wp_deregister_script('twentynineteen-style');
wp_deregister_script('twentynineteen-print-style');
endif;
}
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Creating new templates in child themes breaks layout
- Overwrite template-tags.php in child theme
- How to move the sidebar in TwentyFifteen to the right?
- Override parent theme translation on child theme
- Starter Theme vs Parent Theme? Pros and cons
- How to set thumbnail image for a (child) theme
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- Dynamic template serving, change theme_root using add_filter from current theme
- Difference between stylesheet_directory and template_directory
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Jquery in Child Theme
- Loading template files from a subfolder in my theme?
- Removing Shortcodes from Child Theme
- Edit theme wp_head
- Are custom inner theme folders in any way overridable by child themes?
- How to avoid loading style.css twice in child-theme?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Remove action within a class in a parent theme from the child theme
- Getting rid of unused css directives [closed]
- Can I obtain differents links for different installed theme?
- Override parent theme translation on child theme
- WordPress ignoring specified template for front page. Why?
- Child-theme breaks site
- Can I apply a WP theme to a specific custom page template?
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- Change Theme from Plugin based on query_vars
- How to add template to theme in WP
- get_header(‘header2’) not working properly in child themes
- Is it possible to use child theme of child them?
- Change logo on each page of University Hub theme [closed]
- How do I copy my Parent Templates to my Child Templates?
- Can I create multiple instances of the BuddyPress Activity Stream with separate themes? [closed]
- Added a new template file to a theme – get Call to undefined function error
- Can’t Install Child Theme “The parent theme is missing. Please install the “Default” parent theme.”
- Can I rename a theme’s folder and still receive updates?
- Child theme not visible
- Overwriting templates in child theme and performance
- Themes—Child Themes
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- How to load parent theme style.css?
- Child theme not using parent theme css/styles/formatting?
- Child Style.css not overriding parent theme style located in assets/css/main.css
- Child theme Page Template not loading
- Does theme update also update a child theme zip
- What is the major difference between child theme and normal theme
- How does a Child Theme works?
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- How to create child theme of already active and customized theme
- Inject widgets from one sidebar into another with PHP
- Override template file i subfolders
- Where all are child themes recorded when they are created in WordPress
- I have some doubts regarding how to implement child theme
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- How do I get rid of or change the footer in my child theme?
- How to change only one javascript function in wordpress child theme?
- Mobile issue – website isn’t properly detecting screen size [closed]
- Edited Child Theme’s “header.php” but it doesn’t appear to change the file
- Updating my free theme delete all my changes [closed]
- Switching to a child theme
- Getting 503 on various files
- Port existing Bootstrap site to WordPress?
- Do not show one specific widget on one specific page
- Search form not finding content in template page
- How can we hide the parent’s theme url at the child themes details on a multisite?
- display comment form for specific post id
- Is it possible to create child themes using the WordPress Dashboard?
- How to make “upgrade safe” theme for a plugin?
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- What’s a good way to unenqueue all scripts for a single template page?
- Can I create a child theme from a premium theme without losing my posts and page etc that I already have?
- Enqueue custom css file on specific page
- Child theme’s stylesheet cannot load [closed]
- Color Options from Theme Customizer API not returning via get_theme_mod()
- Creating a child-theme: CSS not loading
- simplified explanation on child themes?
- Using the same database on another Subdomain
- How to override theme class function to child theme? [closed]
- What’s the default order used by WordPress to load CSS files?
- The requested theme does not exist. Stylesheet is missing – error after changing style.css name to my-styles.css in wp child theme?
- Why still output /wp-content/themes/twentynineteen?
- Trying to fix a website that was built with WordPress and then taken off of it
- Why submenu item’s background color is not changing by css?
- How to add custom JS file in WordPress Child theme with get_theme_file_uri
- How can I remove all traces of a theme?
- WordPress activate theme error $pagenow
- Theme update deleted my custom page
- Updating WordPress Theme Files
- Child theme looks different from parent theme, and incorrectly displays parts
- Homepage showing a simple listing of title, featured image, then posted on
- Where did my Theme Editor go?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Create Custom Attachment Template That is Processed from Plugin Folder?