-
Notifications
You must be signed in to change notification settings - Fork 859
customizing header #163
Comments
The best route would be to create a child theme for your changes. In this child theme, you can target the header and set a background image. Within this child theme you can also duplicate the header.php file and make any customization your would like. |
I am amazed how many people go wrong with child-themes. This theme is basically intended as a platform to build on, as a skeleton that can be adapted to any requirement. The best way to build on (in my opinion), is to use the power of Foundation, SASS and Grunt. The Foundation Forum is a good place for general questions about the use of Foundation. At the forum you will also find a separate thread about FoundationPress Good luck! :) |
Yeah, as I remember it the initial description for this theme said that it was not meant to be used as a parent theme but instead to be the starting point for further modifications (just like the popular Underscores theme). |
Thanks for replies! Yeaaaa.. I didn't think a (dreaded) child theme was the way to go here.. So I'm fine addressing my needs using F & Sass but still wonder where in this WordPress theme I should do it? In the Header.php, or via sass to the header, or make new page templates (1 per header image) or more extremely simply skip the header and put it all in the body including a nav.top-bar. |
Oh, I didnt realize using child themes were so frowned upon with FoundationPress. Using child themes is one of the first questions I normally get on themes I have released. People want to keep their theme updated and in this case I can see people wanting the latest Foundation goodies as they are released. If its meant to be a starter theme, then all is well. @randomfreeform you could target a body class for each page to set a different. So an example might be..
Another option I have seen in the past is to use the featured image section on each page. Upload the image into the featured image and then in the page.php template write a statement to display the image. Something like:
As for adding things to the top bar.. Depending on where you will probably want to add the markup to /parts/top-bar.php For the "nav.top-bar menu at the bottom" you will probably just need to add whatever you are looking to do to the footer.php |
Thanks Brad! Hope we weren't being too snotty. Ha... your css code suggestion to add 'header images PER page' is exactly what I did last night, I thought I was being bad... good to know that it's 1 way to approach this! I guess the other need to add items above the menu can simply be added to the headers.php file since they're on every page. Thanks all for the prompt replies!!! Love the theme! |
Don't now if it's really frowned upon, it's just that the child theme support was not meant to be from the beginning (if I remember correctly) and support is something that has been slowly added, often by pull requests from others. I've thought of FoundationPress as a theme for web developers since it uses grunt, sass etc that maybe not all WordPress users know how to use. Also, having a child theme to a parent theme that moves forward fast and changes stuff can sometimes be a lot of work, especially if support for child themes is not a high priority to begin with. |
Where is it best to modify the header?
I'd like my header to have:
a bg image (and ideally assign a different image per page!),
a few items like share icons and a search field at the top,
and the nav.top-bar menu at the bottom.
I poked around the header.php file..
not sure if with this theme I should consider modifying things there..
or simply add everything to my actual page body.
Btw, is there a forum somewhere for this theme to ask newby mod questions?
Thanks for any tips!!!
The text was updated successfully, but these errors were encountered: