Forum Replies Created
-
AuthorPosts
-
DanielMember
Thank for your reply Brad! I'll check those out and let you know how it turns out.
DanielMemberHi 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?
DanielMemberHi 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. 🙂
DanielMemberHi Landon! I'm about to call it a night but I'll give you a step by step first thing tomorrow morning. Thanks!
DanielMemberDanielMemberHi Doak,
That's exactly what I needed. Got it to work ! Thanks for your help.
Daniel
DanielMemberHi Susan!
Thanks for taking the time and responding. I do have the Simple Hooks plugin and I find it very helpful but if I add my code to the hook won't it appear on every page? I just want it to appear on my home page and I need it to appear outside of the inner div so it stretches the width of the screen. I hope all of that makes sense. 🙂
I would like to be able to add my own divs without having to place them in hooks... if that's possible or that may be worst thing I can do. Like I said above I haven't been working with Genesis that long.
Thanks again,
Daniel
-
AuthorPosts