background color unexpected change in child theme

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

background color unexpected change in child theme

Postby drlaporte » 20 May 2012, 21:55

Hi there,
I am a newbee with Suffusion, which is quite great btw.
I created a child theme to install the French translation of Suffusion, with a style.css limited to importing the suffusion's style.css.
The background color of my site became light green instead of the light grey I was using. No change after resetting the skin to light grey with orange.
To fix that, I added the set of the background color for wrapper in style.css (see below). I am not sure it is what should be done, hence my post.
Thanks,
Pierre

/*
Theme Name: Suffusion FR
Description: Child theme for the Suffusion theme
Author: Pierre Laporte
Template: suffusion
*/

@import url("../suffusion/style.css");

#wrapper {
background-color: #F0F0F0;
}
drlaporte
 
Posts: 9
Joined: 20 May 2012, 21:40

Re: background color unexpected change in child theme

Postby drake » 20 May 2012, 23:06

If you use @import directive for style.css, you will need to use another @import for skin.css from the skin you are using. See here: http://aquoid.com/news/2010/09/suffusio ... nd-tricks/

Better is to not use any @import directive and then at Suffusion Options -> Backend -> Child Themes, select "Inherit all stylesheets corresponding to the theme selection (You don't need any @import in your style.css)"

The simplest way to make a child theme is to copy the skeleton from here: http://aquoid.com/news/2012/02/suffu-sc ... suffusion/
drake
 
Posts: 3804
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: background color unexpected change in child theme

Postby drlaporte » 21 May 2012, 14:08

Thanks, very useful and very neat!
drlaporte
 
Posts: 9
Joined: 20 May 2012, 21:40

Re: background color unexpected change in child theme

Postby drlaporte » 21 May 2012, 22:10

I have introduced the skeleton as advised above.

However, I have a new issue after that : when I create a page, I no longer have the template selection dropdown in the page attributes section (still have the parent and the order fields).

Or maybe this is due to another operation I did since the update of my child template, but I don't remember to have done anything fancy.

Thanks.
drlaporte
 
Posts: 9
Joined: 20 May 2012, 21:40

Re: background color unexpected change in child theme

Postby drake » 21 May 2012, 22:48

Templates are now located below the edit area, at Additional Options for Suffusion -> Layouts.
drake
 
Posts: 3804
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: background color unexpected change in child theme

Postby terryvaz » 12 Jun 2012, 22:08

Exactly the same problem ... light green wraper. Problem resolved by explicitly specifying the background-color in the child theme as described above.
terryvaz
 
Posts: 1
Joined: 08 Jun 2012, 21:43

Re: background color unexpected change in child theme

Postby sayontan » 13 Jun 2012, 12:42

terryvaz wrote:Exactly the same problem ... light green wraper. Problem resolved by explicitly specifying the background-color in the child theme as described above.

If you simply remove the @import declaration from your child theme's style.css file that should do the trick.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 4 guests