WordPress.org

Ready to get started?Download WordPress

Forums

Simple Side Tab
[resolved] Open in a new tab? (4 posts)

  1. ericandmollie
    Member
    Posted 1 year ago #

    Hello!

    Thank you for a great plug in. When I click the tab, I would like the destination URL to show up in a new browser tab or page. How can I do that?

    Thanks!

    http://wordpress.org/extend/plugins/simple-side-tab/

  2. srumery
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome. I am happy you find it useful. With the current release, there is no support for opening the link in a new tab. I am working on the next version and will add this to the feature request list. This doesn't guarantee it will make the next release but I will have a look at it. This could be a nice addition to the plugin while still keeping it simple.

    For now, you could edit line 106 in simple_side_tab.php and add target="_blank" to the tag. If so, it would look like this:

    echo '<a href="' . $rum_sst_tab_url . '" target="_blank"><div id="rum_sst_tab" class="rum_sst_contents rum_sst_left">' . $rum_sst_text_for_tab . '</div></a>';

    I hope this is helpful.

    Cheers!

  3. ericandmollie
    Member
    Posted 1 year ago #

    That worked perfectly, thank you so much! Your response was fast and your solution was explained well. Thanks again!

  4. srumery
    Member
    Plugin Author

    Posted 1 year ago #

    This functionality is now build into the product (as of v1.0.0). There is a checkbox on the settings page that will allow you to open it in a new window.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.