Viewing 15 posts - 1 through 15 (of 15 total)
  • #14403
    horselditty
    Member

    Hi,
    I am attempting to disable the ‘additional information’ product tab on the product page, without luck. I have been using the woocommerce_product_tabs filter to no avail.
    Example code below….

    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
    function woo_remove_product_tabs( $tabs ) {
    unset( $tabs['additional_information'] ); // Remove the additional information tab
    return $tabs;
    }

    Im now sure why this isnt working with your theme, thanks

    #14674
    Melanie – SUPPORT
    Member
    Post count: 11032

    I would think the solution is to remove the code from additional-information.php directly but apparently that does not work. Let me ask the developer about that!

    (subscribed)

    Cheers

    #14747
    Melanie – SUPPORT
    Member
    Post count: 11032

    Update:

    You can modify the file /includes/swift-framework/sf-woocommerce.php and remove lines 272 to 283.

    Cheers!

    #29459
    usnraver
    Member
    Post count: 32

    I do not have /sf-woocommerce.php in my ftp file structure – please help

    #29485
    blackleg
    Member
    Post count: 12

    I have same problem, I want to disable product desc,additional info,reviews,feedback and share, but I think now it is not same lines as you wrote in august 🙂

    #29487
    blackleg
    Member
    Post count: 12

    to usnraver: wp-content/themes/neighborhood/includes/swift-framework/sf-woocommerce.php

    #29489
    Melanie – SUPPORT
    Member
    Post count: 11032

    They are the same lines, cheers

    #29536
    blackleg
    Member
    Post count: 12

    There are my lines 272 to 283, when I deleted them, my product site doesn’t work.

    $options = get_option(‘sf_neighborhood_options’);
    if (isset($options[‘enable_pb_product_pages’])) {
    $enable_pb_product_pages = $options[‘enable_pb_product_pages’];
    } else {
    $enable_pb_product_pages = false;
    }

    $product_description = get_post_meta($post->ID, ‘sf_product_description’, true);
    ?>
    <div class=”accordion” id=”product-accordion”>

    <div class=”accordion-group”>

    #29538
    usnraver
    Member
    Post count: 32

    I did exactly what you said and it broke my site

    “Parse error: syntax error, unexpected ‘<‘ in /home/rockegun/public_html/wp-content/themes/neighborhood/includes/swift-framework/sf-woocommerce.php on line 273”

    I really need a fix for this – and I feel like this thread is turning into a joke – I have been waiting for support for 4 days on this.

    #29588
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    If you want to use the standard function, you’ll need to enable the default tabs in Theme Options > WooCommerce Options.

    If you want to use the accordion, the lines you have to remove are 302-312:

    <div class="accordion-group">
    <div class="accordion-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">
    <div class="accordion-inner">
    <?php $product->list_attributes(); ?>
    </div>
    </div>
    </div>

    – Ed

    #29593
    usnraver
    Member
    Post count: 32

    This still does no help me – can you please review the screen shot. I need the following removed completely.

    – additional information
    – reviews
    – need help? contact us
    – leave feedback

    Can you please send me a solution to this? Thank you

    #29617
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Ok so you can do that by adding the following custom css to the custom css box within theme options:

    
    #product-accordion .accordion-group, .product_meta .need-help, .product_meta .leave-feedback {
    display: none!important;
    }
    #product-accordion .accordion-group:first-child {
    display: block!important;
    }
    

    – Ed

    #29619
    usnraver
    Member
    Post count: 32

    Perfect! Thank you so much for the support

    #29668
    blackleg
    Member
    Post count: 12

    Thank you

    #29903
    Melanie – SUPPORT
    Member
    Post count: 11032

    Fantastic! Thanks Ed!

Viewing 15 posts - 1 through 15 (of 15 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