Home › Forums › WoodMart support forum › Move and Rename Size Guide?
Move and Rename Size Guide?
- This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by Elise Noromit.
-
AuthorPosts
-
January 26, 2021 at 2:58 pm #261549
pmctoolParticipantI’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.January 26, 2021 at 7:49 pm #261621
Elise NoromitMemberHello,
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
January 26, 2021 at 8:31 pm #261628
pmctoolParticipantI 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.
January 27, 2021 at 9:34 am #261752
Elise NoromitMemberHello,
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
toadd_action
Best Regards
January 27, 2021 at 8:39 pm #261908
pmctoolParticipantYes, 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?
January 28, 2021 at 8:51 am #262008
Elise NoromitMemberHello,
Unfortunately, there is no documentation for developers, you will have to find the snippets through the files.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register