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 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #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 #


    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=”“></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

    any help would be appreciated





    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=\”\”></script>”‘;
    echo ( ‘Subscribe Now’, ‘minimum’ ) . ‘</a></p></div></div>';

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


    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 host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

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

You must be logged in to reply to this topic.