New Landing How can we help? Themeforest Theme Support Dante Close Accordion Description

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #110385
    jacieames
    Member
    Post count: 8

    Hi there!

    I would like to default close the accordion description on the single product page for the long description, as well as remove the additional information, reviews, and share icons.

    I researched the accordion part in the other themes, but could not locate the correct files to edit in the Dante theme.

    Thanks!

    #110535
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Your site is running 2.15, we are not up to 2.66, please update.

    In the latest version the description accordion is closed by default. To remove the addition info add this to your custom css:

    #product-accordion .panel:nth-child(2) {
      display: none;
    }

    – Kyle

    #110537
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-woocommerce.php at /dante/swift-framework/

    Find this code:-
    <div class="panel-heading">
    <a class="accordion-toggle" data-toggle="collapse" data-parent="#product-accordion" href="#product-desc"><?php _e("Description", "swiftframework"); ?></a>
    </div>
    <div id="product-desc" class="accordion-body collapse in">
    
    Change to -:
    <div class="panel-heading">
    <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#product-accordion" href="#product-desc"><?php _e("Description", "swiftframework"); ?></a>
    </div>
    <div id="product-desc" class="accordion-body collapse">
    
    

    Thanks 🙂
    With Best Regards
    Mohammad

    #116467
    MHC
    Member
    Post count: 247

    Hi,

    I’m using the lasted version Dante but the single product page accordion is not default closed..

    The code in my sf-woocommerce.php at /dante/swift-framework/:

    div class="panel-heading">
    <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#product-accordion" href="#additional-information"><?php _e("Additional Information", "swiftframework"); ?></a></div>
    <div id="additional-information" class="accordion-body collapse">

    How can I make it default closed?

    Thanks!
    MHC

    #116469
    MHC
    Member
    Post count: 247
    This reply has been marked as private.
    #116533
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    @MHC – I see that you already hide Additional Information accordion. Now what do you want with it? Please clear me.
    Thanks
    Mohammad

    #116605
    MHC
    Member
    Post count: 247

    Hi Mohammad,

    I did disable the “Additional Information” accordion, but kept the “Description” accordion and just changed it’s title. The “Description” accordion should be closed by default, but is now open by default. How can make the “Description” accordion closed by default?

    Thanks,
    MHC

    #116628
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-woocommerce.php.

    Find this code:-
    <div id="product-desc" class="accordion-body in"  >
    Change to-:
    <div id="product-desc" class="accordion-body collapse"  >

    Thanks
    Mohammad

    #116652
    MHC
    Member
    Post count: 247

    Hi Mohammad,

    Works great!

    Thanks so much.

    #116653
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks Mohammad

    – Kyle

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register