Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Atahualpa 3.5.3 does not recognize child theme's CSS (http://forum.bytesforall.com/showthread.php?t=12224)

Battra Jan 13, 2011 04:17 PM

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:

/*
Theme Name: Atahualpa Child
Theme URI: http://example.com
Description: Child theme for Atahualpa
Author: Battra
Author URI: http://example.com
Template: atahualpa353
Version: 1.0.0
*/
@import url("../atahualpa353/style.css");

/* Hide header */
body.page-template-nosidebar-php div#imagecontainer {
display: none !important;
}

If I put the styling in the style.css file of the child theme, it's not recognized and the header is still displayed. If I put the styling in the "Add HTML/CSS Inserts", it works.

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.

juggledad Jan 13, 2011 05:59 PM

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.)

Battra Jan 13, 2011 06:27 PM

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.

Battra Jan 13, 2011 06:50 PM

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' ); ?>" />

juggledad Jan 14, 2011 03:52 AM

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.

Battra Jan 14, 2011 02:38 PM

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!

juggledad Jan 14, 2011 03:59 PM

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 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.