Atahualpa 3.5.3 does not recognize child theme's CSS
I want to add a couple of page templates to my site (one with no sidebars, another one with no header and no sidebars) so I created a child theme and put my templates there. I also have a CSS that looks like this:
Code:
/* Why doesn't Atahualpa recognize the child theme's CSS? I prefer to put the styling in the child theme since the templates reside there. |
You need to use the index.php as a basis. There are already some templates in the Gold Forums Tutorials section (the Gold Forum is available to members who have donated $20 or more.)
|
Hi Juggledad!
Yep, I used the index.php as the template and modify the first 5 lines as explained in a sticky post in this forum. The problem is only with the CSS. As I said, the page renders correctly if I put the CSS in the theme options, but not when I put it in the child theme's style.css. So somehow the style.css is not loaded at all. |
Nevermind, I digged the files again and found out that Atahualpa inserts all the CSS on the page itself instead of linking to external stylesheet. So I put this line in the "Add HTML/CSS Inserts > HTML Inserts:Header" and now it works.
Code:
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> |
If you look at ato-> configure JS & CSS you will see an option to have the CSS external
You can also add any CSS you news at ato->add HTML/CSS Inserts->CSS Inserts making them theme options and they will remain in place duting theme upgrades. No need to change the code or use a child theme. |
I thought I saw an option to use external CSS before but couldn't find it again. Thanks! I'll try that.
Well, I NEED to use child theme since I want to create new page templates. And since the templates reside in the child theme's folder, I prefer to have the styling there too. That way, if I copy Atahualpa settings to a website that doesn't need the child theme, I won't have extra unused styling. Thanks again, Juggledad! |
but you can put the page templates in the atahualpa folder and then don't need to do anything else.
|
All times are GMT -6. The time now is 10:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.