• I have a tab menu made in visual composer with different tabs, lets say “red,” “green” and “blue”. I want that visitors for country A will see the blue tab at first, visitor for country B will need to see the green tab and so on.

    The problem is that to make this happen i need to change stuff inside the shortcode from visual composer (wordpress page classic mode): active_section=”tab color here”.

    I tried:

    [vc_tta_tabs [CBC country="us" show="y"] active_section="red" [/CBC]][/vc_tta_tabs]

    and [vc_tta_tabs [CBC country="us" show="y"] red [/CBC]][/vc_tta_tabs]

    Both dont work, it breaks the visual composer shortcode.

    It does work if i put the CBC codes around the whole tab section, but that sucks as then the page gets huge as i have to duplicate the whole tab section including all tabs for each country.

    Secondly it also doesnt fully work as it still scrambles up the code from visual composer when i re-save the page later on. Once you resave the page all code gets messed up and half of the cbc code gets removed for some reason.

    I also tried just adding a text block above and under the tabe menu and add the CBC code there (wordpress visual composer backend editor) but then it doesnt work at all.

    Any ideas how to do this properly?

Viewing 1 replies (of 1 total)
  • Plugin Author Paul

    (@paultgoodchild)

    You can’t embed Shortcodes in WordPress within shortcode like this… just not do-able.

Viewing 1 replies (of 1 total)
  • The topic ‘inside visual composer shortcode not working’ is closed to new replies.