WordPress.org

Ready to get started?Download WordPress

Forums

J Shortcodes
Height of Accordian Panes (7 posts)

  1. dsaro
    Member
    Posted 11 months ago #

    I have different content in each of my sections and it seems that there is code forcing all accordion heights to be same height, leaving a lot of white space underneath the content of some of my sections.
    I can not manipulate with CSS either. Thanks.

    http://wordpress.org/plugins/j-shortcodes/

  2. Mirjana_Mima
    Member
    Posted 11 months ago #

    I entered this code into the "custom css" and it solved the problem:

    .jayq-smoothness .ui-accordion .ui-accordion-content {
    height: auto !important;
    padding: 1em 2.2em;
    border-top: 0;
    margin-top: -2px;
    position: relative;
    top: 1px;
    margin-bottom: 2px;
    overflow: auto;
    display: none;
    zoom: 1;
    }

  3. dsaro
    Member
    Posted 11 months ago #

    Thank you so much. That worked like a charm. I appreciate you take the time to post this.

  4. aralar
    Member
    Posted 7 months ago #

    Hi, Mirjana_Mima. Thank you very much, very helpful.

  5. aralar
    Member
    Posted 7 months ago #

    Hi, Dsaro. You should consider your problem as solved and reported in this thread, right?

  6. anielsen
    Member
    Posted 6 months ago #

    The code Mirjana_Mima provided works but it messes up the jQuery transition. The accordion no longer slides open, it "jumps" open.

    Anyone else seeing this? Any ideas on how to correct that?

  7. anielsen
    Member
    Posted 6 months ago #

    I ended up editing line 34 of jay.js to replace:
    autoHeight: false
    with
    heightStyle: "content"
    and things work much better.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.