Share Your Work

josealvin
Member

HTML Source isn't updating in the frontend

SOLVE

We have this custom html code for the footer but updating the html in the template is not updating on the frontend. Any experiencing the issue? how to resolve this?

 

Thanks

1 Accepted solution
josealvin
Solution
Member

HTML Source isn't updating in the frontend

SOLVE

I converted it to global module and the issue resolved. Thanks for the help.

View solution in original post

josealvin
Solution
Member

HTML Source isn't updating in the frontend

SOLVE

I converted it to global module and the issue resolved. Thanks for the help.

erod
Contributor

HTML Source isn't updating in the frontend

SOLVE

If it's not showing up, it can be one of two things: 

 

1) Your "custom HTML code" includes custom fields, which means that if you make any changes on the backend they won't show until you update them in the editor. 

 

2) Your old page is cached so you're getting the old version of the footer. Troubleshoot by doing the following:

  • Go to the page and add a "?3333" at the end of the link (mysite.com/about?3333). Because you changed the link, the browser will process it as a new page and will re-cache it. 
  • Open the inspect tool (Chrome: View > Developer > Inspect Elements.) and right click your browsers "Reload" button. You'll get a pop up with the option to "clear cache and hard reload"
  • Clear cache through your browser.

If none of that works, you might have another problem and would need to better describe what you're doing to properly diagnose the problem. 

josealvin
Member

HTML Source isn't updating in the frontend

SOLVE

1. I updated it and still not updating.

2. I tried adding "?3333" and still not updating. But I'll try to figure out the caching.

 

Thanks

Teun
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

HTML Source isn't updating in the frontend

SOLVE

Hi @josealvin ,

 

Are you coding with the CLI or through the design tools?

If you use the CLI to sync your code, double-check if the code is correct in the design tools. If not, you should see an error in the CLI.

If it is correct in the design tools or you code directly in the design tools, double-check the console if you do not see any errors there.

Also, check if the page you are viewing is using the correct template.

If everything above checks out, check if the cache isn't an issue. You can use the HubSpot dev chrome extension

It has a 'Bust cache' option that might help.



Did my answer solve your issue? Help the community by marking it as the solution.
josealvin
Member

HTML Source isn't updating in the frontend

SOLVE

I'm using the design manager > global-content-editor. Okay, I'll try the HubSpot dev Chrome extension. Thanks