WordPress.org

Ready to get started?Download WordPress

Forums

J Shortcodes
Height of Accordian Panes (7 posts)

  1. dsaro
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

  4. aralar
    Member
    Posted 1 year ago #

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

  5. aralar
    Member
    Posted 1 year ago #

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

  6. anielsen
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.