Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sakthig

    (@sakthig)

    I used
    <?php echo do_shortcode("[button url="http://www.google.com" background="#b00" size="3" style="default"] Button text [/button]"); ?>
    the code in single post of twenty eleven theme but throws error

    Plugin Author Vova

    (@gn_themes)

    You’re using wrong quotes.

    <?php echo do_shortcode( '[button url="http://www.google.com" background="#b00" size="3" style="default"] Button text [/button]' ); ?>

    or, you can use native code

    <?php echo Shortcodes_Ultimate_Shortcodes::button( array( 'url' => 'http://google.com/' ), 'Button text' ); ?>
    Thread Starter sakthig

    (@sakthig)

    Thanks Vladimir
    And its worked.
    Can you please help me out to fix the my previous thread
    http://wordpress.org/support/topic/dynamic-button-name-generator
    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Button Insert Code In Theme’ is closed to new replies.