Forum Replies Created
-
AuthorPosts
-
Hi Rikard,
I want to reduce the size of the product images on the shop page on MOBILE ONLY, so that I can fit 2-3 images per row.
Currently there is one large image per row, which means site visitors will be scrolling forever.
No 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 :)
I’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, 5 months ago by Rgrant74.
Hi 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.
Hi, 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
Yes. Tahn you Rikard. You’ve been a great help
Thanks 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!
Sorry. It’s below
Hi Rikard, The code gave me an error in my footer area. I may have placed it in the wrong place, but it’s ok, after posting my original reply I did find a way to do it.
I then tried to add the secure site image after the add to cart button but I have an issue with the picture duplicating. I posted my query here..https://kriesi.at/support/topic/duplicating-content/
Is there anyway you can have a look and reply? My site goes LIVE tomorrow and this is the last issue (I hope)
Thanks so much
Problem not solved.
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.
Sorry for the may messages but I desperately need to fix this. SO I have changed the code for the after add to cart and it is no longer duplicating. This issue I have now is the secure checkout image is BESIDE the add to cart and not BELOW. If I can fix this all will be right in my world. Please help!
add_action( ‘woocommerce_after_add_to_cart_button’, ‘add_content_after_addtocart_button_func’ );
function add_content_after_addtocart_button_func() {
// Echo content.
echo ‘<div class=”second_content”><CONTENT HERE></div>’;
}
- This reply was modified 6 years, 5 months ago by Rgrant74.
These are the two pieces that are duplicating. Both after cart.
1.
add_action( ‘woocommerce_after_add_to_cart_button’, ‘add_content_after_addtocart_button_func’ );function add_content_after_addtocart_button_func() {
// Echo content.
echo ‘<div class=”second_content”>* All prices in Canadian Dollars</div>’;
}
2.
add_action( ‘woocommerce_after_add_to_cart_button’, ‘content_after_addtocart_button’ );
function content_after_addtocart_button() {
echo ‘<div class=”content-section”></script>
</div>’;
}The strange thing is that it’s not happening on all pages. See below
I really want to launch my store this weekend so I’m begging for assistance with this!
Hello,
I’m just following up as this is still happening. Again, I can’t add functions.php via WordPress Editor. And when I add Via cpanel content below add to cart….it shows up twice. I have just added a secure site image and it’ is there twice Please have a look- This reply was modified 6 years, 5 months ago by Rgrant74.
Hi Rikard,
How would I do this on the cart or checkout page?
- This reply was modified 6 years, 5 months ago by Rgrant74.
Thanks for your help Yigit,
I’ve tried again on the FTP info below.THank you Rikard
That’s part of the issue I’m having. I can’t make any edits using WordPress, I have to go to my cpanel and my host says it’s because of the theme.
Hi Rikard,
The info is below. The issue is the menu font. It’s not the same as the main site and unreadable. At this point I can’t remember where I found the code. I juts want the font on the mobile menu to be the same as the desktop/main site.
Thank you Yigit. I’ve placed it below
It’s on maintenance mode. Tell me if you need log in info
- This reply was modified 6 years, 5 months ago by Rgrant74.
Thanks so much for your help Ismael. Can you tell me what was wrong or what I was doing wrong?
This reply has been marked as private.Done!
Sorry if this is a silly question but are you asking me to remove the previous code or login?
Works perfectly! Thank you
add_filter( ‘woocommerce_product_tabs’, ‘av_remove_product_tabs’, 98 );
function av_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}Now gives me this on the website
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘‘av_remove_product_tabs’’ not found or invalid function name in /home2/thatchi4/public_html/stushlifestyle/wp-includes/class-wp-hook.php on line 286
Hi,
No this doesn’t really help. Like I said, I’ve added the code … there’s just no change. And I’d rather not add another plugin as I have several running already
add_filter( ‘woocommerce_product_tabs’, ‘av_remove_product_tabs’, 98 );
function av_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}- This reply was modified 6 years, 6 months ago by Rgrant74.
Hi,
I’ve checked the site again. The code is I functions.php but the tab is still showing.
Hi Ishmael,
I did speak with them and added the code via my cpanel. That was just after I posted this thread but I still see no change on my site. They mentioned thatt some themes don’t allow coding via WordPress-Appearance-Editor….is that the case with Enfold? Because every change I attempt to do that way gives me the previously mentioned error message.
-
AuthorPosts