Support » Themes and Templates » nserting an Aweber opt in to Header

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you go to your ‘header.php’, you could add it in between some <div> tags. Something like this:

    <div id="header" class="clearfix">
    <div class='aweberForm'>
    <script type="text/javascript" src="http://forms.aweber.com/form/81/915320281.js"></script>
    </div>

    You’ll need to position it correctly, though, so you’ll have to edit your style.css too. Try this:

    #header {
    background:transparent url(http://guitarstuffreviewed.com/wp-content/themes/Bravo/images/header.jpg) no-repeat scroll left top;
    height:145px;
    width:960px;
    position: relative;}
    
    div.aweberForm { position: absolute; top: 50px; left: 400px; }

    You can change the values of ‘top’ and ‘left’ until you get it positioned just how you want it.

    Thread Starter jellyjosh

    (@jellyjosh)

    FANTASTIC!!!! Thank you so much!!!! Always amazed by the talent and generosity of the WP community.

    Looks VERY close: http://www.jbraun.com/jbpress

    For some reason the text isn’t “white” and as you can tell, the submit button has a line break and isn’t centered (other than that it’s good to go). I included the style.css field and the html code from aweber. I’m assuming I need to use that instead of the one line java code?

    Thanks you again.

    `
    /*
    [huge chunk of code moderated – please use a pastebin or link to file]

    Thread Starter jellyjosh

    (@jellyjosh)

    Aweber java snipped for your reference. Aweber allows you to use the java snipped or the HTML code. Not sure which one to use in this case.

    <script type="text/javascript" src="http://forms.aweber.com/form/81/915320281.js"></script>

    I think the Javascript would be fine, as it basically drops in the HTML automatically.

    As for your issues with the buttons and text, you can use your own style.css to target it (it doesn’t matter if it comes from the javascript or from the aweber HTML).

    If you search through your style.css file and look for

    td {
    	color: #F2EFEF;
    }

    and change it to

    td {
      color: #fff;
    }

    That will make the text into pure white.

    The submit button is centered when I look at it – are you still having problems with it on your end?

    Si

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘nserting an Aweber opt in to Header’ is closed to new replies.