Dear thatsinsurance
Thank you for reaching out to the support forums! I have taken a look at your problem and screenshot mentioned with your question. We can fix this, together!
I was able to write a custom snippet code that you must adapt in your child theme functions.php
file to remove the additional information button from a single product page:
add_filter( 'woocommerce_product_tabs', 'jensdevbeule_remove_product_tabs', 98 );
function jensdevbeule_remove_product_tabs( $tabs ) {
unset( $tabs['additional_information'] );
return $tabs;
}
Feel free to edit the jensdevbeule_remove_product_tabs part. It it just necessary that you have a non-identical prefix to other WP-filters.
I’m hoping this will solve your problem. Don’t hesitate to reply if you need further assistance.
Hi there
Thanks for your help Jens, I dont want to remove the tabs though, I just want to stop the pop up message – where it says “test” in the grey box from appearing. Its definitely a theme issue as I swapped the theme over and it doesnt do it.
If you have an idea of what the code may say I can do a find on my dreamweaver local site and search for that bit of code.. I just have no idea what it would be. Its driving me nuts 🙂
Dear thatsinsurance
As of it is theme-related navigate to Appearance > Editor > dropdown: yourTheme (replacing yourTheme with your theme name). Secondly search for a code like this: window.alert("test");
or alert("test");
.
I’m hoping this will solve your problem. Don’t hesitate to reply if you need further assistance.
Hi
That is so weird I cant find either of those or even “test” in the theme folder at all. I think I will need to revert to the person who did the theme and see if they know why this is doing it.
Thank you so much for taking the time to help me though.
Kind Regards
Denise