Jump to content
Sign in to follow this  
Steve A

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>

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...