Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.]

    Thread Starter chrisslemke

    (@chrisslemke)

    Thanks ronniedackus,

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

    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

    Thread Starter chrisslemke

    (@chrisslemke)

    AHAHA, that did the trick.

    THANK YOU RONNIEDACKUS!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using Tabs, how can I control which one is the one opened by default’ is closed to new replies.