Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25825

    I’m trying to add notifications in a tab content but I think it’s not possible.

    Is there a workaround for this?

    Thank you.

    #128319

    I have tried using the short codes (that usually is available when making a page or post) and put them into the tabs content.

    Some of the short codes work fine when doing that, others would make the tabs all screwed up.

    #128320

    As there’s no table short codes within a tab content editor, I used the usual HTML table.

    But, every time I perform save, several new line break will be introduced on top of these tables I have created.

    Can we do anything to prevent this from happening?

    #128321

    1) Yes, it’s not always possible to combine all elements/shortcodes with each other. There’re some limitations…

    2) However afaik the notification shortcode should work with the tabs. I’d use the “shortcode generator” (magic wand icon in the TinyMCE editor field on the post editor screen) to generate the “notification” shortcode. Then copy the shortcode text and insert it into a tab element and save the content. And voila – you should have a notification box inside a tab. I made a short screencast to demonstrate the workflow: http://www.screenr.com/JsgH

    3) Please don’t add the shortcode html code directly – wordpress will add paragraph tags to it because of the wpautop filter.

    #128322

    Hi Dude,

    Thank you for the explanation on 1 & 3. I’ll scrap my HTML tables after this and use the copy & paste from the editor to obtain the short codes.

    I used your method in 2 to add the short codes into the tab.

    But, the tabs behave weirdly after that (highlighted with black colors randomly).

    #128323

    I forgot to mention that I’m using the vertical tabs on the left.

    Your screen cast is using top tabs, probably it didn’t happen on that.

    I will try out again.

    #128324

    Tried again, but it just screwed up the tabs.

    #128325

    Hi phangmoh,

    Can we see what you have no live? Or at least the shortcode(s) you’ve used?

    Regards,

    Devin

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Adding Notifications in Tabs’ is closed to new replies.