Jump to content


Photo
- - - - -
Resolved

Tabs Do Not Align Horizontally

tabs

Best Answer Danny , 28 November 2012 - 08:44 AM

Hi,

Wordpress automatically adds breaks and paragraphs, which is causing this issue, you can either put all your shortcode on the one line meaning no breaks or paragraphs or you can wrap your tab code in the [ pl_raw ] shortcode for example,

 
[pl_raw]


[pl_tabs][pl_tabtitlesection type="tabs"]
[pl_tabtitle number="1"]Title 1[/pl_tabtitle]
[pl_tabtitle number="2"]Title 2[/pl_tabtitle]
[/pl_tabtitlesection]

[pl_tabcontentsection]
[pl_tabcontent active="yes" number="1"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit
[/pl_tabcontent]
[pl_tabcontent number="2"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit
[/pl_tabcontent]
[/pl_tabcontentsection]

[/pl_tabs]

[/pl_raw]
Go to the full post


  • Please log in to reply
3 replies to this topic

#1 hutruk

hutruk

    Newbie

  • Members
  • 7 posts
  • Country: Country Flag

Posted 28 November 2012 - 08:36 AM

Hi!

I am using the shortcodes for tabs, as described in the documentation.

When I insert the following code:

Please Login or Register to see this Hidden Content


I get a strange output (in the attachment).

Any ideas?

Thanks in advance!

Attached Files


  • orerrygipse and FosyLemydem like this

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 13021 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 28 November 2012 - 08:44 AM   Best Answer

Hi,

Wordpress automatically adds breaks and paragraphs, which is causing this issue, you can either put all your shortcode on the one line meaning no breaks or paragraphs or you can wrap your tab code in the [ pl_raw ] shortcode for example,

Please Login or Register to see this Hidden Content



#3 hutruk

hutruk

    Newbie

  • Members
  • 7 posts
  • Country: Country Flag

Posted 28 November 2012 - 08:52 AM

Thank you, it worked perfectly!

#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 13021 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 28 November 2012 - 10:00 AM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved, tabs