- This topic has 5 replies, 3 voices, and was last updated 5 years, 11 months ago by
David.
-
AuthorPosts
-
May 6, 2020 at 2:15 pm #1272777
Gurer
Hi,
1- How can I change the place of related products in product pages? I want to show below product image and full with inside container.
https://ibb.co/qJYMmhj2- How can I move the sale badge on product images to top left corner with no radius?
3- How can I move the add to cart button on product images to bottom center?
Thanks
May 6, 2020 at 5:54 pm #1272937Tom
Lead DeveloperLead DeveloperHi there,
1. You could try this:
remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20); add_action('generate_after_main_content', 'woocommerce_output_related_products', 20);2. This should do it:
.woocommerce ul.products li.product.sales-flash-overlay .onsale { left: 0; right: auto; border-radius: 0 !important; }3. Bottom center of what exactly?
Let me know 🙂
May 7, 2020 at 2:46 am #1273319Gurer
Hi,
Thanks for your kind reply,1- Where will I put this code and execute?
2- Solved, thanks!
3- Please see the screenshot.
https://ibb.co/9yTcpN9Best regards
May 7, 2020 at 7:36 am #1273667David
StaffCustomer SupportHi there,
1. That code is PHP – this article explains:
https://docs.generatepress.com/article/adding-php/
3. Not easy to do that. But you can remove this CSS from Customizer > Additional CSS to put the Button back to its default position:
.woocommerce ul.products li.product { overflow: hidden; } .woocommerce ul.products li.product:hover .button { -webkit-transform: translatey(0) !important; transform: translatey(0) !important; } .woocommerce ul.products li.product .button { font-size: 12px; line-height: 15px; padding: 8px 12px; min-height: 15px; font-weight: bold; text-transform: uppercase; } .woocommerce ul.products li.product .button.loading { padding-right: 30px; } @media (min-width: 1024px) { .woocommerce ul.products li.product .button { position: absolute; top: 0; -webkit-transform: translatey(-150%); transform: translatey(-150%); -webkit-transition: 0.35s; transition: 0.35s; margin-top: 10px; margin-left: 10px !important; } }May 7, 2020 at 10:38 am #1274179Gurer
Thanks, you are great people.
May 8, 2020 at 2:30 am #1274979David
StaffCustomer SupportGlad we could be of help
-
AuthorPosts
- You must be logged in to reply to this topic.