Hi @hyldahl82,
I’m not sure what that script does, but it looks like it targets that div. In that case, I would recommend adding the script as you would a normal script (in the header) and adding the div to your tab content.
As for the title, you can hide that using a bit of css:
.woocommerce .woocommerce-tabs h2 {
display: none;
}
Let me know if that helps,
Jon
the script is customer reviews from Etsy. My plan was to create a tab with customer reviews. But just pasting the code in the text area, doesn’t help much
Hi @hyldahl82,
Can you provide a link to the page that isn’t working?
Jon
Plugin Contributor
Tracy Levesque
(@liljimmi)
🏳️🌈 YIKES, Inc. Co-Owner
Hi @hyldahl82
You should be able to add the script as Jon described above using wp_enqueue_script and then place the <div> in the tab.
-Tracy
Like this?
wp_enqueue_script
<script src=”https://apps.elfsight.com/p/platform.js” defer></script>
<div class=”elfsight-app-f5095377-f1dc-4606-a5e9-e656b62d8d31″></div>
<div>
I’m not that strong in coding
btw, the page is: https://redwood-denmark.com/product/redwood-garden-chiminea
Plugin Contributor
Tracy Levesque
(@liljimmi)
🏳️🌈 YIKES, Inc. Co-Owner
Hi @hyldahl82
You would need to enqueue the script in your functions.php file. Here is more info: https://developer.ww.wp.xz.cn/reference/functions/wp_enqueue_script/
You should be able to get help from whoever developed the theme to implement this.
Thank you.
-Tracy