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 “<”
- how to add version of style.css in wordpress
- Override parent theme translation on child theme
- How to set thumbnail image for a (child) theme
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Removing Shortcodes from Child Theme
- The style.css stylesheet doesn’t contain a valid theme header
- How to avoid loading style.css twice in child-theme?
- Templates & CSS – Proper Programming Practice?
- Returning Variables back into a template
- Hide Front-End Admin Bar Including 32 px Spacing
- Child-theme breaks site
- Want to create Child theme, but already edited Parent theme css files and some php files
- Theme information in style.css being corrupted
- Overwriting templates in child theme and performance
- Themes—Child Themes
- 404 Error while accessing the font files
- Child theme Page Template not loading
- What is the major difference between child theme and normal 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
- Style the archives/category sidebar widget via theme
- How to find out if page_for_posts is showing (in order to style menu item)
- Custom CSS doesn’t work in edit mode
- Remove transparancy in Sydney theme’s headerimage
- Twenty fifteen theme – change responsive menu condition
- Getting 503 on various files
- Is it possible to create child themes using the WordPress Dashboard?
- How to use get_template part in the plugin?
- Putting two themes together to create a complete site
- Need help with making a website where user can add products
- What’s a good way to unenqueue all scripts for a single template page?
- Enqueue custom css file on specific page
- What Generated Classes and IDs That Is Always Used On All Themes?
- Passing dynamic options from backend to frontend
- Creating a child-theme: CSS not loading
- simplified explanation on child themes?
- Calling external Libraries in WordPress
- Using the same database on another Subdomain
- On a Https site, Css and Js Url are back to http after redirect the site
- WordPress activate theme error $pagenow
- Increase content area width in TwentyFourteen [closed]
- Using Grunt and keeping theme comments
- Background image appears on localhost site but not online
- Where did my Theme Editor go?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- WordPress Theme Breaking on Migration to Live Site [closed]
- how would I change background color of a theme using a plugin?
- WordPress doesn’t recognise created theme
- Please help me clear my confusions about WordPress
- WordPress keeps switching back to empty template
- Remove the breadcrums on a theme W
- Enqueue All Stylesheets Found In a Theme Folder
- How to Change Site Elements based on referring URL
- 12 column grid layout
- Remove style id inline CSS in WordPress
- Custom homepage with recent blog posts
- Where to find child themes?
- how make wp include urls as https?
- style.css of my custom theme is not being applied at all
- Why does WordPress Editor Only Use Half the Box?
- WordPress loads old style.css, then loads current one
- Featured images are cropped on index and post page
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- Orion theme (from theme forest) [closed]
- How do you make your theme Child Theme-able? [duplicate]
- How to modify/ customise NextGen Gallery’s templates? [closed]
- Customising a theme
- Blog shows up without Theme/CSS styles
- How can i limit wordpress post title characters in sidebar?
- How to add sidebar to homepage programmatically?
- Help with responsive theme styling issue
- How to change the standard width of a page
- how to add dynamic footer credit in Greatmag theme [closed]
- Theme install failed
- How can i remove footer credit text
- How to remove pop up on website (css changes not visible)?