I was having the same problem as the OP, when working in a child theme and copying the sidebar-page.php file to make my own template file (named register.php).
Then I noticed in the original template pages, in the body tag there is a class ‘.page-template-sidebar-page-php’ whereas in my new template it was showing up as ‘.page-template-register-php’
So I’m editing style.css (in my child theme folder) to add ‘.page-template-register-php’ wherever ‘.page-template-sidebar-page-php’ appears, but that wasn’t all.
There was also a class ‘singular’ in my new style. I had to edit my child theme functions.php and add ‘&& ! is_page_template( ‘register.php’ )’ into line 613 ‘s if clause. then it worked
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?
- Getting rid of unused css directives [closed]
- WordPress ignoring specified template for front page. Why?
- Change Theme from Plugin based on query_vars
- Change logo on each page of University Hub theme [closed]
- How do I copy my Parent Templates to my Child Templates?
- Display a specific dynamic sidebar widgets on a specific page
- How to load parent theme style.css?
- Child Style.css not overriding parent theme style located in assets/css/main.css
- How does a Child Theme works?
- Port existing Bootstrap site to WordPress?
- Selected template is not respected for home page in WordPress
- Child theme’s stylesheet cannot load [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 submenu item’s background color is not changing by css?
- How do I bring a page template into a new theme with separate styling?
- Strange Theme Error – parent style occasionally showing though child theme
- Child theme after CSS modification
- Overwrite template-tags.php in child theme
- What happens to bespoke page template references on theme change?
- Custom Theme Additonal CSS “” are transformed to “>” and “<”
- Customizing a WordPress theme without changing it?
- how to add version of style.css in wordpress
- 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
- How can I version the main CSS file?
- 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?
- How to set two different themes on one WordPress? (Desktop vs. Mobile)
- Jquery in Child Theme
- Loading template files from a subfolder in my theme?
- Removing Shortcodes from Child Theme
- I’m trying to add an image in my CSS
- How to use scss in wordpress theme?
- How to automatically highlight syntax of code in a post?
- How to add the main style.css to my index.php?
- Edit theme wp_head
- The style.css stylesheet doesn’t contain a valid theme header
- Are custom inner theme folders in any way overridable by child themes?
- How to avoid loading style.css twice in child-theme?
- Templates & CSS – Proper Programming Practice?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Remove action within a class in a parent theme from the child theme
- CSS in child theme not overriding the parent theme [closed]
- Returning Variables back into a template
- Can I obtain differents links for different installed theme?
- Child Theme Not Overriding Parent Theme
- Override parent theme translation on child theme
- Hide Front-End Admin Bar Including 32 px Spacing
- Exclude stylesheet from admin
- hfeed CSS class in Twentyeleven Theme
- 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]
- How to add template to theme in WP
- get_header(‘header2’) not working properly in child themes
- Want to create Child theme, but already edited Parent theme css files and some php files
- Is it possible to use child theme of child them?
- Theme information in style.css being corrupted
- Can I create multiple instances of the BuddyPress Activity Stream with separate themes? [closed]
- How do you create a custom WPTouch theme?
- Added a new template file to a theme – get Call to undefined function error
- How to start learning CSS and theme development?
- 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
- How do I apply my CSS to a theme page?
- Themes—Child Themes
- How to find a file in WordPress themes [closed]
- how to remove padding from left and right side? [closed]
- 404 Error while accessing the font files
- Child theme not using parent theme css/styles/formatting?
- Problem after renaming wordpress template file
- 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
- 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
- OptimizePress Theme Overriding add_filter page_template
- Inject widgets from one sidebar into another with PHP
- Override template file i subfolders
- Single Page theme [closed]
- Where all are child themes recorded when they are created in WordPress
- I have some doubts regarding how to implement child theme
- none of my css is working in my child theme
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- X-Axis of Site is Messed Up Because it is in Hebrew
- How do I change the scan depth for page template files?
- How do I get rid of or change the footer in my child theme?
- Style the archives/category sidebar widget via theme
- How to find out if page_for_posts is showing (in order to style menu item)
- Get name of current page template in Gutenberg era
- Custom CSS doesn’t work in edit mode