-
AuthorPosts
-
September 9, 2023 at 11:48 am #1418549
Hallo@Kriesi!
Ich möchte in meinem WooCommerce-Shop https://www.copy-shop-lauf.de/product/tischset-pasta/ das Produktbild wesentlich größer darstellen und will nicht unbedingt mit einem weiteren Plugin arbeiten. Ich nutze Enfold.
Habt ihr dazu evtl. schon eine Anleitung???Liebe Grüße aus Lauf
Michael F KrausSeptember 11, 2023 at 3:49 am #1418706Hey Michael F,
Thank you for the inquiry.
You can use the following css code to adjust the size of the product image.
.single-product-main-image { width: 50%; float: left; margin-right: 50px; overflow: hidden; padding-bottom: 50px; }
Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings to make sure that the changes take effect. By disabling the file compression settings, you will be able to make the necessary adjustments and updates without any conflicts. Once you have made the required modifications, you can re-enable the file compression settings to optimize the performance of your website.
Best regards,
IsmaelSeptember 19, 2023 at 1:09 pm #1419563Hi Ismael!
Sorry for not responding. I was on holiday …
Back now!Is it also possible to change the size of the picture only on certain pages?
Thanks
Michael F KrausSeptember 19, 2023 at 2:20 pm #1419577Hi,
Welcome back!
Is it also possible to change the size of the picture only on certain pages?
Yes, this is possible. Each product page has a unique class name that can be used to style the elements on that specific product page. For example, if you want to adjust the featured image of the “ischset-pasta” product, use this css code.
.postid-10063 .single-product-main-image { width: 50%; float: left; margin-right: 50px; overflow: hidden; padding-bottom: 50px; }
The unique class name is “.postid-10063,” where 10063 corresponds to the product’s actual ID.
Best regards,
IsmaelSeptember 23, 2023 at 5:34 pm #1420130HI Ismael!
One question has to follow ;-)
Now that I have changed the size of the product-image there is not much space left for the text …
What do I have to do to get the text under the picture?
Have you got an older support-blog to this subject?
Thanks for your feedbackMichael F
September 23, 2023 at 9:15 pm #1420146Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:.single-product .single-product-summary { float: left; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 24, 2023 at 9:57 am #1420166Hi Mike!
Thanks for this great snippet. Works fine.
I did a little change as i want to to this only on several product sites. I changed .single-product to .postid-10063
so now only this product is shown as expected.Thanks once more
Have a nice sunday
Michael FSeptember 24, 2023 at 9:59 am #1420167maybe one more question. Do i have to do this for every product or can i write this into 1 snippet?
September 24, 2023 at 11:11 am #1420170and an other: can I set the headline and first information above the product-picture like seen here?:
September 24, 2023 at 1:03 pm #1420178Hi,
If you want it to work for every product try using this snippet for all products:.single-product .single-product-summary { float: left; }
For your next request of puttin the title and the short description above the image, do you want this for all products?
It looks like you want to split the short description in half leaving the “cloud” & “drop files here” below the image, splitting this section in half may be hard, will every product have this? Please include a admin login so we can examine this closer.Best regards,
MikeSeptember 24, 2023 at 2:47 pm #1420187This reply has been marked as private.September 24, 2023 at 4:07 pm #1420192Hi,
Your test product has nothing in the Product description & Product short description, I assume that you will have text in one of these two places and you want this text to be above the image with the title and price, correct? Please add a sample like you plan on having it.
I believe you want everything at Deine Individualisierung and below to stay under the image, correct?Best regards,
MikeSeptember 24, 2023 at 5:13 pm #1420196Hi Mike!
You are right. Now there is something in the Product description & Product short description. This here should be over the product-picture:Tischset “Individuell gestalten”
9,50 €
inkl. 19 % MwSt.
Individuelle Geschenkideen für den gedeckten Tischeverything at Deine Individualisierung and below should stay under the image.
Best regards Michael F
September 24, 2023 at 8:44 pm #1420202Hi,
I added this to your functions.php and it has moved the product image below the product summary, please check.remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_show_product_images', 25 );
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.