Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum theme – replace subscribe button with e-mail optin
- This topic has 7 replies, 3 voices, and was last updated 13 years ago by
WMcKinley.
-
AuthorPosts
-
March 27, 2013 at 8:41 pm #31651
Susan
ModeratorI'm trying to replace the "subscribe" button on the home page with an e-mail sign-up box, and a "go" button. The client doesn't want to be redirected to another page to enter their e-mail address.
I've added widget areas with newsletter sign-ups, but I'm not sure how to replace it on this theme.
Thoughts?
March 27, 2013 at 9:54 pm #31663Robert Neu
MemberMarch 27, 2013 at 9:57 pm #31665WMcKinley
MemberI would be very interested in the procedure to do this as well, for future reference.
Please share if you don't mind 😉
W. McKinley – PowerEmini.com
March 27, 2013 at 11:02 pm #31670Robert Neu
MemberThe procedure will be little different depending on how you are gathering the info. I can probably write up a tutorial for both GravityForms and Genesis E-News Extended and post it to my blog if that would help. I'll try to get to it this weekend.
March 28, 2013 at 5:39 am #31703Susan
ModeratorRobert - that would be great. I know how to add a widgeted area with an e-mail sign-up and button, but this theme having the page-title.php in addition to the home and functions files is just throwing me for a loop.
I was able to add a newsletter sign-up area on the home page, just not in the area I needed, so any assistance would be appreciated!
Edited to add - we're looking at using the Genesis e-news extended widget versus gravity forms (I've used both myself)
March 28, 2013 at 5:02 pm #31855Susan
ModeratorThanks, Robert for your assistance this afternoon!
March 28, 2013 at 5:07 pm #31856Susan
Moderator@WMcKinley:
You need to register a widget area in the theme functions file (mine looks like this):
genesis_register_sidebar( array( 'id' => 'home-email', 'name' => __( 'Home Email Signup', 'minimum' ), 'description' => __( 'This is an email registration box on the home page.', 'minimum' ), ) );
and then hook it in the page-title php:
if ( is_home() ) { echo ''; echo ''; echo'' . esc_html( get_bloginfo( 'description' ) ) . ''; if ( is_active_sidebar( 'home-email' ) ) { genesis_widget_area( 'home-email', array( 'before' => '', ) ); } echo''; echo''; }Then, in your stylesheet, you would want to add some styling (which I haven't done yet!)
I added the Genesis e-news Extended widget to the e-mail widget area.
March 28, 2013 at 5:41 pm #31861WMcKinley
MemberThis is fantastic Susan and I truly appreciate you sharing the code.
I have saved it to my bag of tricks for future use.
I hadn't really thought about adding a sign-up form to the Title area, but I can see cases where it would make sense.
Cheers!
W. McKinley – PowerEmini.com
-
AuthorPosts
- The topic ‘Minimum theme – replace subscribe button with e-mail optin’ is closed to new replies.