Creating and editing a child theme

Greetings. I have been trying to create a new child theme based on the default buddypress template. I have edited the CSS and added my new images, etc, but I now need to add some extras. I would like to add some extra div’s to the pre-existing ones, but this does not seem to work for me. For example, I tried to add quote marks to the div#item-header div#item-meta CSS by creating new lines labelled div#item-header div#item-meta#quote_attrib, but it did not work.

Do I have to add the new div items I create to the html? For example, if I add CSS based on an existing element, such as div#item-header div#item-meta, so that it adds additional lines to the div#item-header div#item-meta element such as #quote_attrib, does this new line need to be referenced somewhere else?

I don’t understand the question. To add new html, you need to add new same-named templates to your child. So to change the header HTML, add a copy of header.php from the default parent theme to your child theme and then modify. Alternately, if you only want to add HTML (not modify) you might be able to do that with a function in functions.php that echos content to an action hook in one of the default templates. Not sure how you intent to change HTML via CSS alone… other than with the content property… but I can’t imagine that working in IE.

Hi. Thanks for your reply. I apologize if I wasn’t clear. What I mean is that I would like to add items to the CSS using existing CSS elements. For example, The CSS contains the item (div#item-header). I would like to add additional graphics to this such as quotation marks. Do I need to create a new item based on the original element. Say, something like (div#item-header.quote). If I do create a new CSS item based on an existing div element, do I also need to reference this in the html? I am also having difficulty finding the default buddypress template html.

I hope this makes more sense and once again thanks for your assistance.

All the best,

Shane.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Creating and editing a child theme’ is closed to new replies.