I’m trying to add notifications in a tab content but I think it’s not possible.
Is there a workaround for this?
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.
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?
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.
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).
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.
The topic ‘Adding Notifications in Tabs’ is closed to new replies.