Widgets not being added properly
-
Hello,
I want to add a website widget on our main website and I am trying to test it on our staging site first. This is the widget and instructions on how to add it https://help.smileback.com/hc/en-us/articles/209412026-Website-Widget . In the widget, there is an option to add the default template and there is an option to customize it according to our brand colors. When I add the default version, it is being added without any issues. But, when I add the customized version, it doesn’t show up at all. I contacted the SmileBack (widget) support team and they have come back and said that the codes for both default and customized versions are correct. They have asked me to reach out to WordPress for support. Please help! Thanks.For your reference, here’s the code for the default version:
if(!sbWidgetSettings) var sbWidgetSettings = [];sbWidgetSettings[‘NPS’] = { snippetVersion: ‘v3.0’, backgroundColor: ‘[[backgroundColor]]’, scoreColor: ‘#9d3aff’, textColor01: ‘#00054d’, textColor02: ‘#6d6f94’, widgetType: ‘simpleWidget’, widgetStyle: ‘standard’, widgetContent: ‘default’, scoreType: ‘NPS’, border: ‘no’, dropShadow: ‘yes’, lang: ‘en’, combineReviews: ‘false’, showAuthor: ‘true’, showCompany: ‘true’, showDate: ‘false’, scrollType: ‘staticReviews’, app: ‘5c151e4a65684468ac46c7fe915b44d7’,};(function(d, s, sid) {var js, ip = d.getElementsByTagName(s)[0];if (d.getElementById(sid)) return;js = d.createElement(s);js.id = sid;js.src = ‘https://d2ybfz51gt58l0.cloudfront.net/configuration/widget/script/v3/widget.js’;ip.parentNode.insertBefore(js, ip);}(document, ‘script’, ‘smileback-widget-loader-NPS’));
And here’s the code for the customized version:
if(!sbWidgetSettings) var sbWidgetSettings = [];sbWidgetSettings[‘NPS’] = { snippetVersion: ‘v3.0’, backgroundColor: ‘[[backgroundColor]]’, scoreColor: ‘#4b9413’, textColor01: ‘#def01a’, textColor02: ‘#6d6f94’, widgetType: ‘simpleWidget’, widgetStyle: ‘standard’, widgetContent: ‘default’, scoreType: ‘NPS’, border: ‘no’, dropShadow: ‘yes’, lang: ‘en’, combineReviews: ‘false’, showAuthor: ‘true’, showCompany: ‘true’, showDate: ‘false’, scrollType: ‘staticReviews’, app: ‘5c151e4a65684468ac46c7fe915b44d7’,};(function(d, s, sid) {var js, ip = d.getElementsByTagName(s)[0];if (d.getElementById(sid)) return;js = d.createElement(s);js.id = sid;js.src = ‘https://d2ybfz51gt58l0.cloudfront.net/configuration/widget/script/v3/widget.js’;ip.parentNode.insertBefore(js, ip);}(document, ‘script’, ‘smileback-widget-loader-NPS’));
WP.com: Unknown
Jetpack: Unknown
Correct account: Unknown -
I don’t see any WordPress.com sites under your account here.
What is the URL of the site with the problem?
NOTE: We can only assist with websites hosted here at WordPress.com. If you’re using the WordPress software, but hosted elsewhere, you will need to reach out to your hosting provider or the WordPress.org community for guidance: https://wordpress.org/support/
-
Here’s the link to the main website: https://storagepipe.com/
Here’s the link to the staging website: https://2020dev.storagepipe.com/ -
That is a self-hosted WordPress.org site, which we really can’t help with here.
To clear up any confusion, WordPress.com and WordPress.org are two different entities: https://wordpress.com/support/com-vs-org/
WordPress.org has complete documentation for self-hosted/installed versions of WordPress.org at https://wordpress.org/support/ and support at https://wordpress.org/support/forums/
-
May this post help you in solving your problem. https://www.wpbeginner.com/beginners-guide/how-to-add-and-use-widgets-in-wordpress/
- The topic ‘Widgets not being added properly’ is closed to new replies.