We are developing a new site and pulling content from the API. Unfortunately sometimes CTA buttons appear; sometimes they do not. The CTA buttons are created in the same way in Hubspot and we cannot figure out why some do not appear.
Here is an example, where the button did not get pulled:
I’ve tried the front line support and they have not been able to determine what the issue is. I can also send links that show an example where the button WAS pulled but as a new user I seem to be restricted to only two links per post. Please help - thanks!
@Keyur.Ajmera When you pull the blog post from the API the CTAs come over wrapped in HubL which is our proprietary templating language. The browser won’t be able to render the HubL and that is why your CTAs won’t display.
@pmanca If the browser wont display the CTA because it’s wrapped in HubL, How do we go about displaying the CTA on the browser? Can you point us in a direction so this can be resolved?
Do you get any errors in the console when they don’t display? Have you tried setting break points in your site and debugging out to see if their is a conflict for why it might not be loading?
We are not getting errors on the console. The response code is blank. But at times, some other posts that are pulling in from HubSpot, have the response codes to pull in the widget.
These posts are not hosted on HubSpot. We are pulling data from HubSpot to our own site.
Sorry, I am trying to send you a screenshot of some code my developer sent to me - for some reason it does not appear in the post. Is there way to post an image so you can see it?
@Camden You should be able to upload a file by hitting the arrow pointing up in the editor.
if it is saved to your clipboard you should be able to paste it in to the screen as well. An example of your code might help. This is tough if you don’t have any errors being generated on your site.
hi here is the screenshot of the email my developer sent me. Is there any way i can connect you with him so that yoyu two may be able to speak directly? we need to launch our new site and need to resolve this issue asap. Thanks!
@Camden Your developer can always hop here and join in the conversation. I don’t see any issues so we would have to dive into your website code and see why the CTA embed code fails that network call to HubSpot or the display of it.
@Camden You should rope in your developer to help go through it as the error is on his side. Also looking at the code of the page you posted with out the CTA, I don’t even see the embed code for the CTA on it. Maybe I am missing something