New Landing How can we help? Themeforest Theme Support Neighborhood Product category exclusion

Viewing 12 posts - 1 through 12 (of 12 total)
  • #144126
    MarcusF
    Member
    Post count: 75

    hey ๐Ÿ™‚

    I’m trying to make this code work, but it dosen’t :/
    i need to exclude a category from the product category.
    Can you tell me why ?

    /* Exclude categories
    ================================================== */
    //* Used when the widget is displayed as a dropdown
    add_filter( ‘woocommerce_product_categories_widget_dropdown_args’, ‘rv_exclude_wc_widget_categories’ );
    //* Used when the widget is displayed as a list
    add_filter( ‘woocommerce_product_categories_widget_args’, ‘rv_exclude_wc_widget_categories’ );
    function rv_exclude_wc_widget_categories( $cat_args ) {
    $cat_args[‘exclude’] = array(‘132’); // Insert the product category IDs you wish to exclude
    return $cat_args;
    }

    best regards,
    Kristoffer

    #144166
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please follow this article http://docs.woothemes.com/document/exclude-a-category-from-the-shop-page/. The code is provided by woocomerce and hope it should work.

    Thanks
    Mohammad

    #144169
    MarcusF
    Member
    Post count: 75

    hey,

    Thanks, but it dosen’t work :/

    /Kristoffer

    #144238
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I think that you want to remove category from Widget that display at sidebar. You can remove through custom css code. Please provide always specific page url with issue.
    Thanks
    Mohammad

    #144293
    MarcusF
    Member
    Post count: 75
    This reply has been marked as private.
    #144300
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #144307
    MarcusF
    Member
    Post count: 75
    This reply has been marked as private.
    #144314
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have tried all way. It would be better to ask this at Woocommerce forum https://support.woothemes.com/. Hope they should give any exact solution.
    Thanks
    Mohammad

    #144322
    MarcusF
    Member
    Post count: 75

    Thanks for the effort !

    I will try that, and post the answer here if i get one ๐Ÿ™‚

    Best regards,
    Kristoffer

    #144325
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its ok. We will wait for your reply with any solution.
    Thanks
    Mohammad

    #153413
    MarcusF
    Member
    Post count: 75

    Hi Mohammad

    It didn’t seem to work out. They referred me to the support of my specific theme ๐Ÿ˜€

    I followed this guide: http://www.engagewp.com/remove-categories-woocommerce-product-category-widget/

    And yeah, it’s several product categories in the Widget Menu that I want to remove, because they pretty much only serve as a landingpage for organic users and not really customer friendly for people browsing our site.

    #153434
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please activate default wordpress theme to know the specific theme issue or common theme issue.
    Thanks
    Mohammad

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