• 0
Sign in to follow this  
Followers 0

DMS 2 Shortcode - Accordion - Height


Question

Posted · Report post

Hi. I'm trying to implement some accordion shortcodes and the accordions are working just fine but I can't size them. I've tried adding height="800" in several places but it does nothing. I'm putting an iframe inside each accordion tab and I've tried using the iframe size to make the accordion tab the correct size but no luck. See code below

[pl_accordioncontent name="accordion" number="1" heading="<strong>BEST OF DAY (6 HOURS)</strong>" height="800"  open="no"]

<iframe src="http://www.adventurecentral.com/user/web/cart/wfAdventureWeb.aspx?CLUID=75abc27d-4f6e-40d2-b0a2-cbf4bbf54d43&amp;Link=ActivityCalendar&amp;AC=BDG" width="700" height="800"></iframe>

[/pl_accordioncontent]

[pl_accordioncontent name="accordion" number="2" heading="<strong>FULL DAY (8 HOURS)</strong>"]

<iframe src="http://www.adventurecentral.com/user/web/cart/wfAdventureWeb.aspx?CLUID=75abc27d-4f6e-40d2-b0a2-cbf4bbf54d43&amp;Link=ActivityCalendar&amp;AC=FDG" width="700" height="800"></iframe>

[/pl_accordioncontent]

[pl_accordioncontent name="accordion" number="3" heading="<strong>HALF</strong><strong> DAY (4 HRS)</strong>"]

<iframe src="http://www.adventurecentral.com/user/web/cart/wfAdventureWeb.aspx?CLUID=75abc27d-4f6e-40d2-b0a2-cbf4bbf54d43&amp;Link=ActivityCalendar&amp;AC=HDG" width="700" height="900"></iframe>

[/pl_accordioncontent]

[/pl_accordion]

Any help would be greatly appreciated.

 

Shannon

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

Hi,

 

Try adding the following to your custom CSS:

 

body .hentry iframe {
max-width: none;
display: block;
}
.section-mediabox iframe {
max-width: none;
max-height: none;
}
 
Also, can you tell us where you're adding the shortcode for the accordion please. As I have added that code to a MediaBox section, which is why the code above is present for the MediaBox.
 
One other thing was your shortcode wasn't correct, please use the following instead.
 

https://gist.github.com/eb00e5eebb96f19ea76a

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks! I'll give it a shot this afternoon.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

OK, keep is posted.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks, Danny. Everything above worked.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Cool and no problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0