Using Child Theme
Support Area › Forums › Bottega › Using Child Theme
- This topic has 5 replies, 2 voices, and was last updated 11 years, 6 months ago by Bill Robbins.
-
AuthorPosts
-
September 30, 2012 at 15:00 #7741Darrell BibbyParticipant
Hello Bill,
Thanks for being so very response to answering questions. I am using the Bottega Theme. My client wants to make changes to the header so I decided it would be best to make the changes in a child theme. However, it seems like my child theme style sheet is not being read. Is there anything I should know about using a child theme with the Bottega theme?My theme is setup as follows:
directory: bottega-childstyle.css:
/*
Template: bottega
*/
@import url(“../bottega/style.css”);
#header
{
background-color: Red;
}September 30, 2012 at 15:04 #7742Darrell BibbyParticipantAlso, I did put in the theme name: Theme Name: Bottega Child theme
September 30, 2012 at 15:41 #7743Darrell BibbyParticipantAlso,
Is there any easy way to center the menu in the header. I noticed the /* @group Superfish Drop Downs–do not edit */ line in the style sheet.I’ve been making some changes but I seem to be going down a path to hell.
September 30, 2012 at 20:28 #7746Bill RobbinsModeratorDarrell,
Great questions. The theme options page has a built in style editor for the header (and also the background). The only two items on the styling tab that aren’t optional are the header and backgrounds. Since they are output after the stylesheet is loaded, you’ll need to place your backgrounds there.
For the navigation menu, you can center those under the logo if you need to. This CSS snippet will center the logo with the navigation on a separate line below it also centered:
#header { height: auto; } #logo, #text-logo { position: relative; left: auto; top: auto; text-align: center; } #navigation { clear: both; float: none; display: block; width: 100%; margin-top: 0; position: relative; z-index: 20; } #navigation ul { float: none; text-align: center; } #navigation li { float: none; display: inline-block; }
If you run into any questions, just let me know,
BillOctober 1, 2012 at 07:07 #7749Darrell BibbyParticipantHello Bill,
Really, thanks for the code snippet. However, still have an question.I assume this code goes in the
/* @group Header */ and /* @group Navigation */ sections?To be sure, do I merge this code with what is there?
I tried several approaches and can only get the logo centered.
http://s323142218.onlinehome.us/Flyingsaucerpizza/
Also, to be clear, you are saying that I can’t use a Child Theme because of the way this theme works?
October 1, 2012 at 08:31 #7750Bill RobbinsModeratorDarrell,
You’ll want to place the header snippet either at the bottom of your style.css file, in your child theme or in the “Custom CSS” box on the styling tab of the theme options page. Here’s how that changes the demo:
You can still use a child theme if you’d like to. You’ll just also need to set the header color/image in the theme options page.
If you have any trouble, let me know,
Bill -
AuthorPosts
- The topic ‘Using Child Theme’ is closed to new replies.