WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: GoodSpace by GoodLayer] Make stunning text link open new window? (3 posts)

  1. asdevargas
    Member
    Posted 1 year ago #

    Hello!

    I'm working on the GoodSpace theme by GoodLayer and for http://brazzaville-band.com/tours/ I'd need to have the "buy ticket" link to open in a new window. It's done with the Stunning-Text item. I came across http://mysitemyway.com/support/topic/button-link-shortcode-external-link but it doesn't work with button short-code either. Any clue someone? Thank you in advance :)

    Anne-Sophie

  2. jhts
    Member
    Posted 1 year ago #

    Did you ever figure out a way to change the button shortcode for stunning text to open in a new window? I haven't been able to do this myself.

    Thanks

  3. asdevargas
    Member
    Posted 1 year ago #

    Hi,

    Yes, go to include/plugin/page-item.php line 531 and add
    target="_blank"
    so it looks like
    echo '<a target="_blank" class="stunning-text-button" style="margin-top:' . $button_margin . 'px;" href="' . find_xml_value($item_xml, 'button-link') . '" >';
    It worked just fine for me.

    Cheers,
    Anne-Sophie

Topic Closed

This topic has been closed to new replies.

About this Topic