Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16182

    hello,

    i tried to implement the following:

    http://wcdocs.woothemes.com/codex/extending/using-custom-attributes-in-menus/

    in order to use custom attributes of products in the menu

    i followed the instruction and it went fine,

    the only problem is that the sidebar is now being pushed to the bottom of the page.

    what i did is adding the following to functions.php:

    add_filter(‘woocommerce_attribute_show_in_nav_menus’, ‘wc_reg_for_menus’, 1, 2);

    function wc_reg_for_menus( $register, $name = ” ) {

    if ( $name == ‘pa_size’ ) $register = true;

    return $register;

    }

    than i

    Copied woocommerce/templates/taxonomy-product_cat.php into porpulsion theme folder

    Renamed the template to taxonomy-pa_size.php

    can u help?

    #90488

    Hi,

    Most likely the problem can be solved with some custom CSS. Can you post a link to your website so we can take a look?

    Regards,

    Mya

    #90489

    Hi Mya,

    I’m trying desperatly to add a drop down menu item (on the main menu) but I don’t want the item to take to a certain page, but open a list of pages that can be clicked on.

    I don’t see how can i do this.

    I’m using the propulsion theme.

    the site is : http://www.assemblage-unique.com

    the menu item is “Shop Collections” – where i want to see only the sub menu when clicking on it and not see an empty page.

    Thanks

    #90490

    Hi DiklaLeviHar,

    Try this. Go to Appearance > Menus, remove the current “Shop Collections” link and add a new link from the Custom Links section. For that new link next to URL erase the http:// and add #, next to Label type Shop Collections. Once the link is added to menu drag/drop the link and all sub-links where you want them to go.

    What this will do is give you the “Shop Collections” as a parent link in the menu but if clicked it won’t take you to a blank page.

    Regards,

    Mya

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

The topic ‘attributes in menu’ is closed to new replies.