accordion

Home Forums Furnish theme support accordion

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #11039
    Jatinder DeolJatinder Deol
    Participant
    • Topics: 5
    • Replies: 11
    • Total: 16
    Member since: May 23, 2015

    Hi how can i set that all accordion tabs are closed by open the page.

    #11044
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Kindly show us an example as to how?

    Regards,
    Shri

    #11050
    Jatinder DeolJatinder Deol
    Participant
    • Topics: 5
    • Replies: 11
    • Total: 16
    Member since: May 23, 2015

    http://sktthemesdemo.net/interior/shortcodes/toggle-tabs-and-accordion/

    when you open the site the accordion title 1 is open. i would like that by entering the site all the accordions are closed.

    #11056
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Custom Work actually would have to modify the accordion js.

    Regards,
    Shri

    #11063
    Jatinder DeolJatinder Deol
    Participant
    • Topics: 5
    • Replies: 11
    • Total: 16
    Member since: May 23, 2015

    can you help me by this. What have i to do, where is the script stored

    Thanks

    #11074
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Hi Jatinder,

    Check line number 48 in wp-content/themes/yourtheme/js/custom.js

    Regards,
    Shri

    #11076
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    custom.js
    accordion line no.21
    toggle line no. 48
    themes/theme name/js/custom.js

    Regards,
    Shri

    #11077
    Jatinder DeolJatinder Deol
    Participant
    • Topics: 5
    • Replies: 11
    • Total: 16
    Member since: May 23, 2015

    Thanks
    for all other peoples
    its the line with this code.

    jQuery(‘.accordion-toggle:first’).addClass(‘active’).next().show();
    deactivate this line and the accordion is closed by entering the website page.

    #96185
    athena.mekisathena.mekis
    Participant
    • Topics: 7
    • Replies: 18
    • Total: 25
    Member since: August 15, 2017

    How about being able to close as well as open the accordion?

    #96230
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi athena.

    Kindly show us your website URL?

    Regards,
    Chris

    #96917
    athena.mekisathena.mekis
    Participant
    • Topics: 7
    • Replies: 18
    • Total: 25
    Member since: August 15, 2017

    www.athenamekis.com/rfmacdonaldco

    #96918
    athena.mekisathena.mekis
    Participant
    • Topics: 7
    • Replies: 18
    • Total: 25
    Member since: August 15, 2017

    Additionally, here is my specific accordion code. I like that the first accordion is open, but I’d like to be able to click each one closed as well. www.athenamekis.com/rfmacdonaldco

    // accordion
    jQuery(‘.accordion-box .acc-content’).hide();
    jQuery(‘.accordion-box h2:first’).addClass(‘active’).next().show();
    jQuery(‘.accordion-box h2’).click(function(){
    if( jQuery(this).next().is(‘:hidden’) ) {
    jQuery(‘.accordion-box h2’).removeClass(‘active’).next().slideUp();
    jQuery(this).toggleClass(‘active’).next().slideDown();
    }
    return false; // Prevent the browser jump to the link anchor
    });

    #96988
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi,

    This can only be done via coder.

    Kindly send us your URL of the site and WordPress admin details (Username & Password) via sktthemes.net/contact Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Chris

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.