Any suggestions on how to troubleshoot this?
Hello @BarryT77 ,
Are you using a website builder that allows for outside scripting? Is the builder you're using one of the common ones listed in this article with instructions? Are you adding any additional CSS styling or other coding to it, beyond the bare bones we provide?
This is a Wordpress site. The page is using the Elementor page builder, and I put the code you provided in an html widget. When that did not work, I tried it on a non-Elementor page, pasting in the code in text mode. Nether one did anything. I also tried changing the theme to one of the default themes, and installing the jQuery Migrater helper plugin, neither of which changed the result.
For information about how to resolve this, you will have to give WordPress a phone call. I do apologize for any inconvenience. Thank you!
That was not at all helpful.
To see if the issue was related to Wordpress, I created an html file containing the following code:
<!--Begin CTCT Archive-->
<script id="archiveScript" src="//static.ctctcdn.com/js/archive-static/current/archive-static.min.js"></script> <div id="archiveList" data-archive-count="10" data-m="a07e2nio5i40"></div>
<!--End CTCT Archive-->
When I visited it, no archive was displayed.
If you use WordPress.org, please see the steps below:
For help adding the code to your Wordpress.org website, please contact your webmaster or view Wordpress.org's support.
For help adding text links to your Wordpress.com website, please contact your webmaster or view Wordpress.com's support.
Are you currently using the code displayed here? If so, that code is correct and you should be able to follow the steps to copy and paste it. Please check if you are using Wordpress.com as they don't accept outside code so that may be why it is not working. Thanks!
You still don't get it. I copied the widget code from the newsletter archive code in my client's account, and put it in an html file WITH NOTHING ELSE IN IT. When I viewed that page the archive did not display.
I included the entire source code for that test page in my reply above. The client's site is what you're calling Wordpress.org, but your code does not work even when I am trying it outside of the site.
Can you please email social_support(at)constantcontact(dot)com the username that is having this experience along with your web address, your question, and all the steps you have completed so we can do additional research? Thanks!
Our higher level technical team is having no issues pulling up your archive, and Wordpress.org should allow for outside scripting. However, there are a number of elements in a .org site that can result in 3rd party apps and scripting to be interfered with or outright blocked. Ultimately, they're suggesting reaching out to Wordpress.org's support for further troubleshooting as there's nothing wrong with the code, nor anything occurring on our end that'd be preventing the archive from displaying or loading.
As I have said multiple times, I have put the archive code in an html file with nothing else in it, and the archive does not display. I pasted the source code for that above, and am including it again here.
<html> <head> </head> <body> <h1> Constant Contact Archive </h1> <!--Begin CTCT Archive--> <script id="archiveScript" src="//static.ctctcdn.com/js/archive-static/current/archive-static.min.js"></script> <div id="archiveList" data-archive-count="10" data-m="a07e2nio5i40"></div> <!--End CTCT Archive--> </body> </html>
So regardless of what is going on in the WordPress site, the widget does not display outside of WordPress.
Also, for your information, there is no such thing as support from WordPress.org. Support for WordPress related things come from theme and plugin developers, of which I am one. And I would reach out to those if there was a problem with their code, but in this case the only thing not working is the widget code that I got from you in my client's account, that is not working when I follow the instructions on your support page.
If your client ends up needing a workaround for making their emails accessible on their website, they can grab emails' individual share URLs, and add those to their website (or have you do it) as desired.
Again, I showed you source code for a standalone html file that I tried to run, and it DOES NOT WORK. So why are you replying in terms of WordPress?
If your Tier 2 team got this to work, it would be more helpful to tell me how they did that.
Hi @BarryT77 , my apologies lots of confusion here it seems. I'd like to try and help if I can.
Thanks for the code example, I was doing some testing to make sure all is well. I don't think there are any archived emails associated with the account the code snippet is from. In which case, showing nothing would be totally expected. It's worth noting that the code snippet doesn't automatically pull the most recently sent newsletters, but as an account owner you have control over which newsletters to show in your embedded archive using the action menu. This article shows the process of archiving and un-archiving a newsletters from within an account with screenshots and instructions. Can we start by archiving a few desired emails and testing the Wordpress site again?
I believe this is done so that it takes on the protocol of the site it's being hosted on in order to avoid mixed content or CORS errors if it's an HTTP site vs an HTTPS site. Testing it locally from a file causes it to look for the script to be stored locally on my computer as well. If you could host the file somewhere for testing, that might bring more success, but we can worry about that only if you still continue to have issues.
Hope it works!
Thanks for that. You are right, there were no newsletters archived in the account.
And it showed up on my WordPress page also. Now I have to play with the appearance of the archive.
Appreciate the help!
"There's a multitude of ways to engage your audience through us using your social platforms - via ads, social post metrics, email links, and more! " - WillSee Article
"Target your most engaged contacts by creating a segment. Create a special offer or show your appreciation!" - CaitlinSee Article
"Greet new contacts with one or more automated Welcome Emails depending on their interests or your business goals." - NickSee Article