Community Forums › Forums › Archived Forums › Showcase and Feedback › Two New Custom Genesis Sites
- This topic has 11 replies, 5 voices, and was last updated 11 years, 1 month ago by Landon.
-
AuthorPosts
-
March 8, 2013 at 9:33 am #24996DanielMember
Just started working with the Genesis framework and so far I love it. Here are two sites I just launched:
http://www.howardspawnmacon.com
Thanks,
Daniel
March 8, 2013 at 8:58 pm #25135KassiahMemberGreat job, Daniel! I like the colors on the Gerrity site and love the whole setup on the Howard's site. Just a head's up--your credit link is broken at the bottom of the Howard's site. 🙂
March 8, 2013 at 9:05 pm #25138DanielMemberMarch 10, 2013 at 8:19 pm #25387LandonMemberI like them both. I really need to learn how you did the banner, intro, etc on rachelgerrity. Are they widget areas with text widgets in them?
Landon
March 10, 2013 at 10:03 pm #25419DanielMemberHi Landon! I'm about to call it a night but I'll give you a step by step first thing tomorrow morning. Thanks!
March 11, 2013 at 4:40 pm #25518LandonMemberDaniel, that would be awesome!
March 12, 2013 at 8:38 am #25644DanielMemberHi Landon,
Sorry it took me a little while to post this info for you. Yesterday was hectic. Basically all I used to do that was some html/css and a conditional tag in WordPress. Are you familiar with conditional tags? If not here's some info from the WordPress Codex. Here are the steps I took to add those sections:
1. Added structural wraps to Genesis. Found a great tutorial here that I followed.
2. Made a copy of the header.php file and placed it into my child theme folder that way I don't mess up any core Genesis files.
3. In the header file you can see where the header and inner wrap begins. So I want to put my custom html in between the two since that's where I want it to appear on the home page.
4. In order for it to appear on only the home page I will use a conditional tag in WordPress. It looks like this:
<?php if (is_home()) { ?>
Insert your HTML here
<?php } ?>
Basically it's saying if this is the home page, then display the HTML, if not then don't. That's a pretty basic setup but it does the job. Conditional tags are great and once you get the hang of them you can do a lot of cool stuff. I did it this way b/c the client didn't want this to change so I just made it static. I could have put widget areas there but to save time I just did it this way instead.
I did the same thing for the Howard's Pawn site as well.
I know these are short explanations so if you have any questions or need anymore help just let me know. I'll be more than happy to send you an example file if you want to pick it apart. 🙂
March 12, 2013 at 9:59 am #25657bandjMemberReally like Howard’s Pawn site's old timey feeling
March 12, 2013 at 3:07 pm #25715CharlieMemberHey Daniel, I would love to see an example file, if you don't mind. Seeing what you're doing with them I don't think I'm using structural wraps to their full potential! If you use Twitter I'm on that (see my sig).
March 12, 2013 at 4:00 pm #25733DanielMemberHi Charlie,
Do you need to see just my functions.php for the structural wraps or do you also need the header.php file for the conditional tag setup?
March 12, 2013 at 5:04 pm #25741CharlieMemberWould it be possible to see both? You see the way I would have approached the Gerrity site would have been to register a new text widget area, plonk my html in there then call it on the home page using a conditional tag in home.php. But you obviously took a different approach, which I'd really like to understand better. If there's any favour I can do for you in return please let me know!
March 12, 2013 at 5:15 pm #25748LandonMemberDaniel, thanks a lot for sharing. Will play with this!
-
AuthorPosts
- The forum ‘Showcase and Feedback’ is closed to new topics and replies.