WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
[resolved] Using Tabs, how can I control which one is the one opened by default (5 posts)

  1. chrisslemke
    Member
    Posted 11 months ago #

    Hi All,
    at first, great plugIN, must have for everyone!

    Now I'm using the tabs, let's say I have four: 1,2,3,4.

    When I open the page as a user, always 4 is open, but I want 1 to be opened.

    Do you have a fix for this?

    MunichGreets

    Chris

    http://wordpress.org/plugins/shortcodes-ultimate/

  2. ronniedackus
    Member
    Posted 11 months ago #

    Hi,

    Try:

    f ( !empty( $start_Basket ) ) {
      $return .= '[tabs style="2" active="5"]';
      }
      elseif ( !empty( $SearcheSerie ) )
       {
      $return .= '[tabs style="2" active="4"]';
      }
       elseif ( !empty( $DisplayID ) )
       {
      $return .= '[tabs style="2" active="3"]';
      }
      elseif ( !empty( $relatienummer ) )
       {
      $return .= '[tabs style="2" active="2"]';
      }
    else
    {
    $return .= '[tabs style="2" active="1"]';
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  3. chrisslemke
    Member
    Posted 11 months ago #

    Thanks ronniedackus,

    this seems utterly complicated. Isn't there an easier solution?

  4. ronniedackus
    Member
    Posted 11 months ago #

    sorry.....

    Just set the number of the tab you like to be active, code tab 2 is active;

    <strong>[tabs active="2"]</strong> [tab title="Title 1"]Content 1[/tab] [tab title="Title 2"]Content 2[/tab] [tab title="Title 3"]Content 3[/tab][/tabs]

    Regards

  5. chrisslemke
    Member
    Posted 11 months ago #

    AHAHA, that did the trick.

    THANK YOU RONNIEDACKUS!!!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags