Community Forums › Forums › Archived Forums › Design Tips and Tricks › How do I create a full width feature or Hero using the Sample Child theme
Tagged: code, full width, function, hero
- This topic has 9 replies, 4 voices, and was last updated 11 years, 8 months ago by
Northumbrian.
-
AuthorPosts
-
October 5, 2013 at 3:31 am #65443
[email protected]
MemberHi, I would like to re-create a full with feature area like seen in the attached image.
How can this be done using the Sample Child theme?
October 5, 2013 at 4:06 am #65445Brad Dalton
ParticipantPlease copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
https://gist.github.com/braddalton/685f93b39e8b4de1e9f7
October 6, 2013 at 1:35 am #65523[email protected]
MemberThanks Braddalton, that has given me a text wdiget that I can use on the home page. Now how do I make that a background image, so I can display text over it on the left and a signup form on the right?
October 6, 2013 at 1:49 am #65524Brad Dalton
ParticipantYou can put any type of content in the widget.
I think you're wanting a feature box for email sign ups? The easiest way to do this is to use the Genesis eNews Extended Widget.
October 6, 2013 at 3:07 am #65531[email protected]
MemberHi Braddalton, with the content widget, I can only really put one thing in there at a time though can't I? Either a larger image or text? How do I have the image as a background AND text overlaid as say a H1 and H3?
October 6, 2013 at 4:24 am #65545Brad Dalton
ParticipantWhat you could do is design the content in your editor and copy and paste the HTML into a text widget.
This is how i did it to make a featured box.
You can use a web design tool like Paint.net or Windows or GIMP for Mac and do it that way.
Another option is to use CSS and HTML for the text overlay
October 6, 2013 at 8:48 pm #65603[email protected]
MemberAHA Thanks Braddalton, let me do some research, give that a try and come back if I get stuck.
January 28, 2014 at 3:33 am #87441mborger
MemberFollowing up on this thread as it's what I'm trying to do at funthingsapp.com
I'd like to more closely mirror the layout on badoo.com . How do I:
1) Move the text/image overlay to the right side of the screen instead of the left
2) Once moved to the right, have it inset some instead of flush against the edge of the screen. Maybe 50px in.
3) Have the background overlay color be a complete shape, i.e. rounded oval, instead of a "boxy" line by line behind the text. Just like they do on badoo.com
Thank you.
May 17, 2014 at 1:58 pm #105645Northumbrian
ParticipantSometimes what seems so 'second nature' to some saves others hours of head-banging.
If I wanted to have this full-width display on other pages - not just Front - would I change this line below:
if ( is_front_page() && is_active_sidebar('after-header') ) {To this one:
if ( && is_active_sidebar('after-header') ) {- Thank you for posting the function... Appreciated much.
– looks like Saruman is now running the Shire.
May 17, 2014 at 2:26 pm #105647Northumbrian
ParticipantI think i goddit. I just have to remove the whole line:
// if ( is_front_page() && is_active_sidebar('after-header') )
{and then it'll show on just pages declared with a Widget 'Display on Page' plugin..
Awesome. Thanks again.
– looks like Saruman is now running the Shire.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.