Jump to content

Trumba Spuds not displaying with WordPress


Recommended Posts

There can be a few reasons why your Trumba spud code will not render correctly. Here are a few issues we have come across and the solutions that may help you resolve the issue.

Issue: Trumba spud code renders correctly when you are logged in (WordPress site), however, if you are logged out or on incognito, the spud code cannot be rendered. Saw this in WordPress version 5.4.2

Solution: Check to see if you have a caching plugin (SG Optimizer from my webhost Siteground) that combines all javascript files to load the pages quicker. Disable that function of SG Optimizer, and all the Trumba spud code rendered correctly.

Issue: Wordpress host may automatically update your Wordpress install to the version 4.2.3. which is a security release for a cross-site scripting vulnerability. If it does this, it may comment out all Trumba javascript on the page preventing the Trumba widgets from displaying on your site so you will have blank areas where your calendars and other spuds/widgets should be visible.

To resolve this issue you can either roll back to Wordpress version 4.2.2.or instead, continue with version 4.2.3 and edit the source code of your HTML page(s) and locate the Trumba javascript code on your pages. You may find your code includes similar text in red in the example below which you want to remove:

<script type="text/javascript" src="//www.trumba.com/scripts/spuds.js">

</script>
<script type="text/javascript">
// <![CDATA[ $Trumba.addSpud({ webName: "trumbau", spudType : "main" }); // ]]>
</script>

 

The code should look like this:

 

<script type="text/javascript" src="//www.trumba.com/scripts/spuds.js">
</script>
<script type="text/javascript">
$Trumba.addSpud({ webName: "trumbau", spudType : "main" });
</script>

 

 

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...