Home › Forums › WoodMart support forum › Brand position on single product page
Brand position on single product page
- This topic has 8 replies, 2 voices, and was last updated 2 years, 11 months ago by Elise Noromit.
-
AuthorPosts
-
November 24, 2021 at 2:56 pm #334298
LINKPOSITIVEParticipantHi there,
I want to set the brand image (that is located on the right of the title by settings) under the summary. Just before meta. How can I do?
I cannot see in the woocommerce layout files anything about that
Many thanksCosimo Nicolazzo
November 25, 2021 at 12:33 pm #334524
Elise NoromitMemberHello,
Please add this code to the functions.php of the child theme:
remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 ); add_action( 'woocommerce_single_product_summ
Best Regards
November 25, 2021 at 2:03 pm #334580
LINKPOSITIVEParticipantAre you sure that you code is complete??
Seems to be not all what you want to showNovember 25, 2021 at 7:18 pm #334634
Elise NoromitMemberHello,
Sorry, my bad. Please add this one:
remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 ); add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 );
Let us know if you have any questions.
Best Regards
November 26, 2021 at 8:39 am #334770
LINKPOSITIVEParticipantno, there are some troubles
As you can see, the brand is still on the top right and under meta
I want to show it under summary text, just before variationsOtherwise I don’t want to have a float right.
I want to show simply the brand logo under the textbest regards
Attachments:
You must be logged in to view attached files.November 26, 2021 at 10:51 pm #335005
Elise NoromitMemberHello,
Please replace the PHP code with this one:
add_action( 'init', function() { remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 ); remove_action( 'woodmart_before_sidebar_area', 'woodmart_product_brand', 10 ); add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 ); }, 1100);
In addition, please add this code to the Theme Settings > Custom CSS > General:
.product-design-default .wd-product-brands { float: none; margin-left: 0; } .product-design-default .wd-product-brands a { display: inline-block; padding: 0; min-height: 0; background-color: transparent !important; box-shadow: none; } .product-image-summary .wd-product-brands a:hover { box-shadow: none; }
Best Regards
November 29, 2021 at 3:15 pm #335519
LINKPOSITIVEParticipantthat’s perfect
many thanksNovember 29, 2021 at 6:12 pm #335559
LINKPOSITIVEParticipantI see a little error.
You can see the image attached
If you see there, you can notice that now I have a brand image before product title and one under the meta.
I don’t need the first one before the title.
Best regardsAttachments:
You must be logged in to view attached files.November 30, 2021 at 9:27 am #335685
Elise NoromitMemberHello,
Please replace the code provided earlier for this one:
function woodmart_move_brand(){ remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 ); add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 ); } add_action( 'wp', 'woodmart_move_brand', 1200); add_action( 'init', 'woodmart_move_brand', 1200);
You can find the code in functions.php of the child theme.
Best Regards
-
AuthorPosts
Tagged: brands
- You must be logged in to create new topics. Login / Register