Aweber and Subscribe now button – Minimum Theme

Community Forums Forums General Discussion Aweber and Subscribe now button – Minimum Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cdils 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20049

    Hi, I am completely new to all of this so please bare with me. I am trying to get the subscribe now button in Minimum 2.0 to link to an aweber lightbox sign up form. Following the set up details I have gone into unchartered territory and tried messing with the php ( already broke one site doing this) anyway this is what I put in place of the #

    <?php

    if ( is_home() ) {  echo ‘<div id=”page-title”><div class=”wrap”><p>’ . esc_html( get_bloginfo( ‘description’ ) ) . ‘<a class=”page-title-button” href=”<script type=”text/javascript” src=”http://forms.aweber.com/form/66/838215466.js“></script>#>’ . __( ‘Subscribe Now’, ‘minimum’ ) . ‘</a></p></div></div>’; }

    The button on the home page  is now displaying  #>Subscribe Now and links to an Oops page

    the site is http://www.toughlovefitness.co.uk

    any help would be appreciated

    thanks

    Paul

    #22105

    cdils
    Participant
    Post count: 420

    Looks like a case of crazy quotes where the double-quotes inside your <script> tag are causing the problem. Try escaping those quotes like this:

    if ( is_home() ) {
    echo ‘<div id=”page-title”><div class=”wrap”><p>’ . get_bloginfo( ‘description’ );
    echo ‘<a class=”page-title-button” href=”<script type=\”text/javascript\” src=\”http://forms.aweber.com/form/66/838215466.js\”></script>”‘;
    echo ( ‘Subscribe Now’, ‘minimum’ ) . ‘</a></p></div></div>’;
    }

    I didn’t test the code, so proceed with care. :)

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I tweet @cdils.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.