Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Theme: Email Opt-in Homepage
- This topic has 9 replies, 2 voices, and was last updated 11 years ago by firstname_galo.
-
AuthorPosts
-
April 12, 2013 at 12:38 pm #35047firstname_galoMember
I'm currently using the minimum theme and would like to replace the sample picture on the homepage for an email optin with a picture ( like the one on http://www.thechangeblog.com/ ) Any ideas how I would go about doing this?
My site is http://www.themovementproject.net
April 12, 2013 at 7:24 pm #35123Brad DaltonParticipantApril 13, 2013 at 4:47 pm #35279firstname_galoMemberThanks brad. I just tried this and it shows the optin underneath the image of the homepage. Isn't there a way to get it so that it completely replaces the image header so that it looks like the one on http://www.thechangeblog.com.
April 13, 2013 at 5:47 pm #35289Brad DaltonParticipantThe link you have provided to your site is returning a 404 page not found error message.
Please paste a text link to your site.
Remove this code from your child themes functions.php file or comment it out:
/** Add the featured image section */ add_action( 'genesis_after_header', 'minimum_featured_image' ); function minimum_featured_image() { if ( is_home() ) { echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>'; } elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){ echo '<div id="featured-image">'; echo get_the_post_thumbnail($thumbnail->ID, 'header'); echo '</div>'; } }
Commented out:
/** Comment This Function Out add_action( 'genesis_after_header', 'minimum_featured_image' ); function minimum_featured_image() { if ( is_home() ) { echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>'; } elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){ echo '<div id="featured-image">'; echo get_the_post_thumbnail($thumbnail->ID, 'header'); echo '</div>'; } } **/
This code is executing a function on the same hook the feature box code uses.
April 13, 2013 at 6:17 pm #35292firstname_galoMemberThanks Brad. I'll give it a try.
April 13, 2013 at 6:27 pm #35297firstname_galoMemberBrad,
The perfect example of what I'm shooting for is on here http://genesis.extenderplugin.com/
Instead of video, a picture
April 13, 2013 at 7:02 pm #35305Brad DaltonParticipantVery easy to do that:
You can use content columns and create that feature box in your editor.
You might need to install a shortcodes plugin so you can use the tick images in your list.
Then paste the code into a text widget.
April 13, 2013 at 7:28 pm #35310firstname_galoMemberSo I'm trying to work with the columns but can't seem to get it. Do I have to create a separate featured box so that one aligns left and the other aligns right?
April 13, 2013 at 8:02 pm #35315Brad DaltonParticipantI wrote about this recently.
You can find a plugin which adds 2/3 and 1/3 columns.
April 14, 2013 at 1:43 pm #35446firstname_galoMemberThanks Brad. I was able to get it! Appreciate your help.
-
AuthorPosts
- The topic ‘Minimum Theme: Email Opt-in Homepage’ is closed to new replies.