We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jun 27, 2020 6:33 PM
Hi. I am working on a customzied blog template that inserts CTAs automatically in blog content. It's based loosely on another post here,
It works great! However, when I edit the post and go to the optimize page it shows that the Word count of whats in the Title vs what is in the content.post_body. When I render the new content out, render out what in in content.post_body, but when I encounter a paragraph break I insert CTA code after so many paragraphs.
On a side note, it seems that this would be a good feature for Hubspot to have some kind of management system for blog posts, as I dont want to go thru all my blog posts and change out custom inserted CTAs. This was an easy way to add them across all assets if I am running an offer or something.
I dont know if I am missing some kinda of tag or ID that the optimize is using. The variabe content.post_body contains all the content it should be counting.
Any feedback is welcomed. Am I missing something?
-Ingram
Solved! Go to Solution.
Jun 28, 2020 12:24 PM
Solved.
Looks like the blog posts have to be wrapped in this class to be counted correctly.
<div class="blog-post-wrapper cell-wrapper">
Jun 28, 2020 12:24 PM
Solved.
Looks like the blog posts have to be wrapped in this class to be counted correctly.
<div class="blog-post-wrapper cell-wrapper">
Jun 29, 2020 5:13 PM
Thank you for sharing your solution @ingramleedy!