Anyone else having an issue centering CTAs in the blog publishing tool? It will center while editing, but upon preview (desktop, mobile, and even ‘new tab’), it reverts to left-aligned.
I don’t know if it’s a recent change that developed a bug, or if we’re doing something wrong, but wanted to know if anyone else was experiencing this. Thanks!
Hey @danmoyle Sorry to hear you’re running into this. I’ll look for any recent support tickets. Hey @Anton@BarryGrennan@evaldas have you run into anything similar this week? Thank you for taking a look! — Jaycce
Hey @Anton - the example I shared is in draft, not published, so I don’t think I can share it. But if I’m working with someone who wants to do the work without needing to change CSS, what would you suggest? I feel like some HubSpot users would rather not have to get into the stylesheet or source code - shouldn’t the CTA just follow the instructions of the editing?
I’ve seen this happen before with the “new” embedded CTAs. It looks like in the blog templates, when you first center the CTA, it gets wrapped with a paragraph but when rendering in the preview, it jumps out of the paragraph into its own <div>.
Tried looking into the “Design” settings of the CTA and changing alignment on the layout, both on the button and the section itself but that does not seem like it helps.
Ultimately what needs to happen is the CTA needs some additional CSS so it can get centered in the context of the blog template.
This would be the basic rule:
.hs-cta-embed {
margin: auto;
}
If all blog posts need to have the CTA centered, then it might make sense to add to the blog template stylesheet. Otherwise would need to be targeted more specifically or added on a per-article basis.
There might be an easier way to do it via the HubSpot UI but I have not found it
Quick note as of 10/23 - I’m out of town and on the road but will be looking through the answers and marking them as solutions soon. I’m not minoring my wonderful friends!
Yes, I have had the same experience. The fix makes sense, but really, I feel Hubspot should take responsibility for it. It seems like their updates only make features worse, not better. This feels like the sort of thing a Hubspot developer forgot to do when updating the blog editor interface. And it’s not the only problem.