Tagged: x
-
AuthorPosts
-
February 17, 2017 at 11:21 am #1375296
AnnParticipantHey there,
I’m trying to customize the title inside the product description box for woocommerece but nothing happens.
I added this:
jQuery(“li.description_tab > a”).html(“Additional Designer Information”);
jQuery(“.page-id-1962 #tab-description h2”).html(“customtitle”);And the first string works fine, but nothing happens for the second.
Site: https://onlineconsigncouture.com/
Thanks!
Ann
February 17, 2017 at 2:42 pm #1375514
AnnParticipantOne more question here, is it possible to hide this “additional information” box on certain pages?
February 17, 2017 at 3:43 pm #1375583
JadeModeratorHi Ann,
Would you mind providing the direct link to the page where you want to use the custom tab description?
Thank you.
February 17, 2017 at 3:48 pm #1375589
AnnParticipantSure!
I want it on a few different ones:
https://onlineconsigncouture.com/boutique/lian-carlo-style5865-wedding-dress/
https://onlineconsigncouture.com/boutique/romona-keveza-trumpet-wedding-dress/
https://onlineconsigncouture.com/boutique/ulla-maija-anna-maier-monet-wedding-dress/
https://onlineconsigncouture.com/boutique/ines-di-santos-samaly-wedding-dress/
https://onlineconsigncouture.com/boutique/monique-lhuillier-amethyst-wedding-dress/The rest of my product pages I would like to disable the description box if possible.
Thanks so much!
Ann
February 17, 2017 at 11:46 pm #1375975
Rue NelModeratorHello Ann,
Thanks for updating in! You will have to edit the JS code and make use of this;
jQuery("li.description_tab > a").html("Additional Designer Information"); jQuery(".x-tab-content .description_pane h2").html("customtitle");Please let us know how it goes.
February 18, 2017 at 12:22 am #1375997
AnnParticipantThat worked 🙂
I tried to add the page number like below, but that didn’t work though.
jQuery(“.page-id-1125 .x-tab-content .description_pane h2”).html(“customtitle”);
Is there a way to disable the box on certain pages?
Thanks!
AnnFebruary 18, 2017 at 1:22 am #1376028
FriechModeratorHi Ann,
Are you sure that is the correct id (1125)? I did check the page/posts you linked above but none of them have that ID.
And those product page does not have an
page-id-xxxxclass, they havepostid-xxxxxinstead.Thanks.
February 18, 2017 at 1:29 am #1376032
AnnParticipantI’m not sure where I got that number from but I just tried it again for this page: https://onlineconsigncouture.com/boutique/ines-di-santos-samaly-wedding-dress/
The number for product pages would still be the same as any other page, right? See attached image for where I took the number from.
Tanks again!
Ann
February 18, 2017 at 1:47 am #1376056
FriechModeratorHi Ann,
Yup, but its not
page-id-59. It should be.postid-59Thanks.
February 18, 2017 at 9:39 am #1376277
AnnParticipantOhhhh now I get it! Haha, sorry!
How do I add the other pages? I think I need something to separate the strings, don’t I?
jQuery(“.postid-1263 .x-tab-content .description_pane h2”).html(“The Story About Liancarlo”);
jQuery(“.postid-1125 .x-tab-content .description_pane h2”).html(“The Story About Romona Keveza”);
jQuery(“.postid-59 .x-tab-content .description_pane h2”).html(“The Story About Ines Di Santo”);February 18, 2017 at 7:32 pm #1376643
Rue NelModeratorHello There,
Thanks for updating in! Yes you are on the right track. Getting the product post id and have the jquery line added just like you did.
If you need anything else, please let us know.
February 18, 2017 at 7:36 pm #1376646
AnnParticipantI did exactly as the above but when I did, the titles were removed again.. It only works when adding one line for some reason.
February 19, 2017 at 1:21 am #1376796
ChristopherModeratorHi there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
February 19, 2017 at 1:38 am #1376809
AnnParticipantThis reply has been marked as private.February 19, 2017 at 3:22 am #1376897
Rue NelModeratorHello There,
Thanks for updating in!
It turns out that you have inserted invalid quotes.

Please make use of this code instead:
jQuery("li.description_tab > a").html("Additional Information"); jQuery(".postid-1540 .x-tab-content .description_pane h2").html("The Story About Monique Lhuillier"); jQuery(".postid-1263 .x-tab-content .description_pane h2").html("The Story About Liancarlo:"); jQuery(".postid-1125 .x-tab-content .description_pane h2").html("The Story About Romona Keveza"); jQuery(".postid-59 .x-tab-content .description_pane h2").html("The Story About Ines Di Santo");Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1375296 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
