If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
July 6, 2013 at 6:04 am #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.July 8, 2013 at 2:17 pm #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.July 9, 2013 at 2:36 am #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?July 9, 2013 at 6:21 am #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.July 9, 2013 at 10:44 am #128322
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).July 9, 2013 at 10:49 am #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.July 10, 2013 at 12:23 am #128324July 11, 2013 at 7:14 pm #128325
The topic ‘Adding Notifications in Tabs’ is closed to new replies.