Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14437

    I tried: [button link="new-member-registration" title="Join the club now - plan your trip any time" size="xl" color="#f49b15" text="dark" window="yes"]<strong>New Member Registration</strong>[/button]

    but “Join the club now – plan your trip any time” does not show when the mouse hovers on the link.

    site is: http://www.huntingfishinglodgetrips.com/become-hunt-fish-lodging-member/

    #83460

    The button shortcode does not support a link title yet but I’ll ask Kriesi to look into it. For now you can add this feature with a small code customization. Open up upscaleincludesadminregister-shortcodes.php and replace following code:

    extract(shortcode_atts(array(	'size' => '',
    'style' => '',
    'color' => '',
    'border' => '',
    'text' => '',
    'class' => '',
    'link' => '#',
    'window' => ''), $atts));

    with:

    extract(shortcode_atts(array(	'size' => '',
    'style' => '',
    'color' => '',
    'border' => '',
    'text' => '',
    'class' => '',
    'link' => '#',
    'title' => '';
    'window' => ''), $atts));

    and:

    // Open in new window?
    if ( $window ) $window = 'target="_blank" ';

    with:

    // Open in new window?
    if ( $window ) $window = 'target="_blank" ';

    // Link title
    if ( $title ) $title = ' title="'.$title.'" ';

    and

    $output = '<a '.$window.'href="'.$link.'" class="avia-button '.$class_output.'" '.$color_output.'><span class="avia-'.$style.'">' .

    with:

    $output = '<a '.$title.$window.'href="'.$link.'" class="avia-button '.$class_output.'" '.$color_output.'><span class="avia-'.$style.'">' .

    #83461

    ok thanks, it would be really nice if it was supported.

    #83462

    Hey!

    I’ll ask Kriesi to add an option field.

    Regards,

    Peter

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

The topic ‘How do you add a title to a shortcode button link?’ is closed to new replies.