-
AuthorPosts
-
July 7, 2018 at 2:17 pm #982462
I am trying to add a secure seal image after the add to cart button. I have a code but the issue I’m having is on some single product pages the image is duplicating, but not all….
On product pages where there are variations the Add To Cart is in a boxed area wit the variations. On these pages, anything added after Add To Cart IS duplicating.
On product pages where there are no variations, the add to cart has no box around it and anything placed after Add To Cart IS NOT duplicating.
I’ve placed examples below.
July 7, 2018 at 8:34 pm #982566Hey Rgrant74,
Can you please include a admin login in the private content area, the pages you linked to only show the “coming soon” image.
Also are you adding the image as an element in the editor, or as code in the functions.php?Best regards,
MikeJuly 7, 2018 at 9:46 pm #982590Sorry. It’s below
July 7, 2018 at 10:53 pm #982602Hi,
I added this css to WordPress > Customize > Additional CSS.variations_form .second_content { display: none; } .variations_form .woocommerce-variation-add-to-cart .second_content { display: block !important; }
While I did have to clear your caching plugin several times, for it to finally clear, it is now working.
Please clear your browser cache, maybe more than once, and check.Best regards,
MikeJuly 8, 2018 at 6:37 am #982632Thanks so much Mike! Yes I have to clear my cashew several times ti see changes and even then sometimes I just ave to wait till the next day. I’m not sure why. But I really appreciate your help here!
July 8, 2018 at 6:53 am #982641Hi,
Thanks for the feedback, please let us know if you should need any further help on the topic.
Regards,
RikardJuly 11, 2018 at 3:56 pm #984272Hi, Could this have affected my Size Chart field? I’m just noticing that I had a size chart field tab beside reviews and now it is not showing. And the field in not available in the Edit Product screen
July 12, 2018 at 2:27 am #984416Hi,
I believe that this function in your functions.php is removing it, do you remember adding this?add_filter( 'woocommerce_product_tabs', 'av_remove_product_tabs', 98, 1 ); function av_remove_product_tabs( $tabs ) { unset( $tabs['additional_information'] ); return $tabs; }
Best regards,
MikeJuly 12, 2018 at 3:15 am #984426Hi Mike, Yes There used to be 3 tabs, additional information, size and reviews. I used that code to get rid of additional informations I added that some time ago but there was still a separate size chart tab until recently.
July 12, 2018 at 3:28 am #984429Hi,
Please try removing this to test.
When I logged in I believe I saw a admin message that said something like “Thank you for updating woocommerce”
did you recently update woocommerce?Best regards,
MikeJuly 12, 2018 at 3:36 am #984435I’ve removed the code and the Additional Information tab came back but no Size tab. Strange. Maybe there was a Woo update. Is there any code I can use to add it back as a custom tab?
Because the sizes are not consistent with each item it’s imperative that I detail the size chart. For new items I’ve added recently, I’m just pasting it in the description but it was handy to have it below in a different tab. As an example the Blazer category, they all had content in tat tab and now it’s all gone.
- This reply was modified 6 years, 4 months ago by Rgrant74.
July 12, 2018 at 4:53 am #984466No worries, I’m repasting all of them in the description box and that works fine. The thread can be closed and thanks again for all of your help :)
July 12, 2018 at 7:21 am #984537 -
AuthorPosts
- The topic ‘Duplicating Content’ is closed to new replies.