Home Forums WoodMart support forum Move and Rename Size Guide?

Move and Rename Size Guide?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261549

    pmctool
    Participant

    I’m looking for the php code or hook to move the position of the Wishlist/Compare/Size Guide. It’s below the add to cart and I’m trying to get it below the title. I also wish to change the word “size guide” on the front end.

    Attachments:
    You must be logged in to view attached files.
    #261621

    Hello,

    Please consider the using Toolset plugin: https://xtemos.com/docs/woodmart/faq-guides/building-custom-woocommerce-sites-with-toolset/

    HTML structure does not allow solving it by custom CSS. Such modification requires complicated Woocommerce code customization which is not covered by our support.

    Best Regards

    #261628

    pmctool
    Participant

    I understand if you cannot provide me with the code. But is there documentation for the Woodmart theme that shows what this hook is called? I can figure out the code, but I see no starting point for the code regarding Compare/Wishlist/Size Guide.

    I’m assuming it’s something like:
    remove_action(‘woocommerce_single_product_summary’,’woodmart_compare’);

    Toolset is not helpful in the problem I am trying to address.

    #261752

    Hello,

    Here is the code:

    remove_action( 'woocommerce_single_product_summary', 'woodmart_add_to_compare_single_btn', 33 );
    remove_action( 'woocommerce_single_product_summary', array( XTS\WC_Wishlist\UI::get_instance(), 'add_to_wishlist_single_btn' ), 33 );
    remove_action( 'woocommerce_single_product_summary', 'woodmart_sguide_display', 38 );

    This code disables the buttons. You can insert this code in any place and replace remove_action to add_action

    Best Regards

    #261908

    pmctool
    Participant

    Yes, that’s perfect! Thank you. Do you have any documentation of hooks for me to find likeĀ ‘woodmart_add_to_compare_single_btn’ ? Without having to ask support, I mean. For example, I’m trying to remove the share buttons for a specific product, but where would I go to find the function for the share icons to use remove_action?

    #262008

    Hello,

    Unfortunately, there is no documentation for developers, you will have to find the snippets through the files.

    Best Regards

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