Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery accordion menu extends page length

so I have a jQuery accordion menu that I want to implement to my wordpress homepage, the problem is everytime I put the menu there, it extends my page way down like 1200 px height, and it`s the only one that does this.

How can I stop it from declaring that height and let me make it exactly how long the menu is extending, or even better go once with it. Again, I am talking about a wordpress plugin.

The theme I want to implement the menu in is : http://themeforest.net/item/celta-business-modern-corporate-wordpress-theme/full_screen_preview/218824?ref=lvraa

Left column

like image 864
Dani Bălă Avatar asked Nov 21 '25 17:11

Dani Bălă


2 Answers

First you should try to set autoHeight to false , this will fix the height problem.

Then I could find the problem regarding HTML lists, I grabbed your HTML, put it locally and used the demo source for jQuery UI accordion (the section 3 have some HTML list inside) and it seems to work fine.

Hope it will Help :)

like image 106
Hardik Raval Avatar answered Nov 23 '25 08:11

Hardik Raval


We all need your code to see the actual problem. You can jsfiddle it. Also, try making the autoHeight to false.

$(".yourselector" ).accordion({ autoHeight: false });

like image 29
xan Avatar answered Nov 23 '25 08:11

xan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!