Okay
  Public Ticket #239019
Salient theme UI and templates
Closed

Comments

  • Jm started the conversation

    Hello is it possible to write ui object like tabbed section, with php function?

  •  8,839
    Tahir replied

    Hey Jm!

    You can wrap the shortcodes in the do_shotcode php function and then use them in page templates. 

    All the Best,

    -T


    ThemeNectar Support Team 

  • Jm replied

    Hello Tahir,

    thanks for your reply,

    I added these lines of code in my template

    echo do_shortcode("[tabbed_section]");

    echo do_shortcode('[tab title="Tab 1" id="tt1"]');

    echo "Tab Content ";

    echo do_shortcode("[/tab]");

    echo do_shortcode("[/tabbed_section]");

    but it not works, I have this result :

    in the browser : Section vide. �ditez une page pour ajouter du contenu ici

    Tab Content [/tab][/tabbed_section]

    One more question is possible to open a tabbed section with a specific url like #tab3

    regards,

    Jim

  •  8,839
    Tahir replied

    Hey Jim!

    Please see url: http://codex.wordpress.org/Function_Reference/do_s... . You need to enter the whole shortcode not divide it in parts. 

    Also i am afraid we dont have any direct linking option available in the theme. 

    All the Best,

    -T


    ThemeNectar Support Team 

  • Jm replied

    Ok thanks for your support.