About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
This is PERFECT! Thank you SO much for putting this together!
Thank you so much for this!! It was exactly what I was looking for!
Thanks so much for this. Easy to follow, but it’s only showing the submit button and email field. The first name field is missing and the background color of the widget doesn’t match my site’s background. What did I do wrong?
Can you show a screenshot of the widget expanded?
What is the URL of site in question?
I was thrilled to find this and proceeded to install, make the adjustments etc.
But when I tested the form with the javascript from aWeber I got the following error message – on a separate page:
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
I’ve used the same javascript in a text widget on the Blog page and it works. Also in a text widget in footer 1 on the home page and that works too.
So it seems it’s just the setup with enews that is problematic.
Site is http://blogfromthebeach.com
I do not have a Aweber account to test.
Have you checked http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/install/#aweber?
Thanks Sridhar. Hadn’t seen that. I will try and make sense of that!
That worked, almost. One last hurdle was that I was getting a message “Required fields are missing” This helped http://wordpress.org/support/topic/aweber-required-fields-are-missing-executive-child-theme
I am glad you found the fix Des.
Hi! Thank you so much for this post. Is there any way to add a horizontal opt-in form to the site tagline area in the Minimum Pro theme instead of adding a new content area below it? Thank you so much!
1) Follow this current post.
2) In functions.php, comment out or delete
add_action( ‘genesis_after_header’, ‘minimum_site_tagline’ );
3) Add top margin to “.horizontal-optin” like so:
.horizontal-optin {
background: #fff;
margin-top: 600px;
margin-top: 60rem;
}
4) Add this CSS:
.site-header + .site-inner {
margin-top: 60px;
margin-top: 6rem;
}
Sample screenshots:
Homepage > http://i.imgur.com/dApzH95.jpg
Inner page > http://i.imgur.com/YE5TVZg.jpg
Thank you so much! It works perfectly. How do I get it to show up on the inner blog pages too?
Change
if ( is_home() && is_active_sidebar( ‘home-optin’ ) ) {
to
if ( is_active_sidebar( ‘home-optin’ ) ) {
when I do that the whole thing just disappears.
Just tested and working fine here.
This was awesome – thank you! It does seem that the Submit button is looking a little larger than the input fields…any way to fix it? http://bit.ly/1nTclSo
Thanks again.
Hi I was wondering if it is possible to put the enews extended optin form in the middle of a post. For example just after a video but before a lot of text. Is this possible?
Thanks.
hi,
great tutorial. I like to add it but cannot get it to work.
Does it matter where in the file functions.php include the ‘Display widget area content in homepage’?
sorry was to quick with asking… 😉
I have it working but the form is not horizontal? is this due to having 3 fields instead of 2? What would the css be for http://testwp.seoeffect.com/
Thanks again!
You forgot to float the input fields to left.
Adding
.horizontal-optin .enews-widget input {
float: left;
margin-right: 10px;
width: 32% !important;
}
should result in http://i.imgur.com/xSJIWLA.png
wow great, thanks,
and what if I still want the behavior for smaller screens to have full wide field and button like:
@media only screen and (max-width: 500px) {
.horizontal-optin .enews-widget input {
width: 100% !important;
margin-bottom: 1rem;
}
}
Add
@media only screen and (max-width: 568px) {
.horizontal-optin .enews-widget input {
width: 100% !important;
margin-right: 0;
margin-bottom: 1rem;
}
}
BELOW
the earlier CSS for desktops.
I always find what I need here. Thank you so much.
Sridhar,
Is there a simple way to be able to insert a horizontal optin form directly into the content of a page? I’d like to add multiple optins throughout my About page and some other pages as well.
Should be possible by inserting the form code in the body of Post/Page and adding CSS to make the form fields horizontal. Who is your mailing list provider?
I use aweber. I was able to find a way to insert it into the page. But I’m not sure how to customize it….
” [one-third-first]Â [/one-third-first][one-third]
 [/one-third][one-third][/one-third] “
Sorry about the quotes of the prior comment. the site is here…
http://www.themovementproject.net/welcome
Hello, for some reason there are two issues with the code.
1. The form is not linking to the signup process. I am using enews with a mailchimp signup URL and when clicking on the link, nothing happens.
2. Which code can I use to align the signup button more with the form fields.
Thank you again
Sorry the site is quickstartminisites.com and the form is on the home page.
Please delete my comments above. I am using the centric pro theme and the changes were needed on the frontpage.php and also edits to the css file for the specific enews widget. It required numerous changes which are different from your original tutorial. I am almost complete so please delete the above comments along with this one. Thank you for the tutorial.
Hey Sridhar, I am trying to add the form to pages as well as the home page…
function sk_optin_below_header() {
if ( is_page( array( 10,2, ‘about’ ) ) && is_active_sidebar( ‘home-optin’ ) ) {
printf( ”, genesis_attr( ‘horizontal-optin’ ) );
genesis_structural_wrap( ‘optin’ );
genesis_widget_area( ‘home-optin’ );
genesis_structural_wrap( ‘optin’, ‘close’ );
echo ”;
}
If I add is_home to the array it doesn’t work or if I just add ‘home’ or ‘1’…What am I missing here?
}
Hi Sridhar,
Thanks for your code. It looks great on my site: http://yourwellnessexpert.com/
However, I am having an issue when I test the opt-in form by entering my first name and email (in appropriate fields) and click the sign up button, I am redirected to a mail chimp page that says “There are errors below, blank email address” and I have to reenter my email address. See page sample here:
http://healthyrootsnaturalmedicine.us6.list-manage.com/subscribe/post?u=0a8a639bade8390ebf707782c&id=0c491417fc
Any suggestions on how to fix this error?
Thank you in advance,
Jeff
I experimented a little and added the word EMAIL to the email field in the e-news widget. Seems to work now. Thanks for the great idea!
Jeff
Got this form to work perfectly!
Only question is finding a way for people to collapse it if they’re already subscribed or just want to hide it on the screen. I want it to show up by default, otherwise I’d add a collapse-o-matic code or something.
Thank you!
http://sridharkatakam.com/collapsible-horizontal-opt-form-genesis/
[…] the comments section of my tutorial titled Adding a horizontal opt-in form in Genesis, a reader […]