Hello – just getting started with the Luminescence theme and I’m wondering if there is a way to use a tiled image instead of a color for background in a content box. I imagine I’d have to edit the css somehow, but for the life of me, I can’t figure out where to find the relevant info.
Hopefully you will be using the child theme for this so you can get theme updates, but basically you need to add your background css to the inline styling that is found in the header.php file on line 39 that looks like this:
Hm – Okay, I tried it, but I couldn’t get it to work. I’m a little confused as to whether I should be editing the copy of header.php in the main theme directory or making a copy in the child theme directory.
This is what I have now for the line you suggested editing:
Making changes like that is best for a child theme so that you can get updates to the parent theme without losing your changes. Basically you would copy the header.php into the child theme then make your changes there.
There’s a few ways you can do this, but if you want to do it the way you just did, then you would need to do it this way:
If you wanted full control via css, then in the child theme’s style.css, you would do your background styling there and remove the background colour line (which means the theme setting for this would be removed).
Then do your background styling as a class as mybackground
I did try the CSS option, but was unable to get it to work (but a test with using the style just to set the color did). FWIW, I did a bit of googling and found it may be an issue related to float styles and background images not appearing. It’s not a big deal, but just wanted to close the loop in case anyone else reads the topic.
I got it to work…I have a local setup of Luminescence and installed the child theme for it, activated (it has to be active). Then I copied the parent theme’s header.php over into the child theme, added a new class to the following as mybackground: