I recently increased the size of the text for articles on my website. However, I’m having trouble also increasing the size of the text in the subscription embed form that I put in all of my posts. I’ll include a screenshot of what it looks like below, and I’ll also give the current code for the embed form. It just looks a little weird, as the text is noticeably smaller than the rest of the text in my articles. I’d appreciate the help, thanks!
Code:<div style="height: 50vh"><script src="https://cdn.jsdelivr.net/ghost/signup-form@~0.1/umd/signup-form.min.js" data-background-color="#121212" data-text-color="#FFFFFF" data-button-color="#e85c57" data-button-text-color="#FFFFFF" data-title="Mobtown Mag" data-description="Mobtown Mag is a leading voice of the harm reduction movement in Baltimore, providing advocatory journalism on addiction and drug policy. Subscribe today for $5." data-icon="https://cdn.getmidnight.com/3210ddbeaa16948a702b6049b8d9a202/size/w300/2024/08/Untitled-design--28-.png" data-site="https://www.mobtownmag.com/" async></script></div> Screenshot:
You’re going to need to inspect (right click in browser and choose ‘inspect’) the html elements that result from that script running to figure out what css selectors to target.
@Raki I’m looking at that option now, however, two things: I like how the embedded form has my logo, and I’d like to make a change via code injection if possible so it alters all of the sign up forms in past posts where I’ve already used it (there’s quite a few).
It’s possible to inject a logo into the signup cards through code injection.
You can use code injection to override and uniform the style of signup cards across posts.
The built-in signup cards are only visible to logged out visitors, whereas the signup iframe you injected is visible to all visitors. The former approach is more reasonable.
@Raki Would you be able to help me with the first two points you made? That sounds like something I’d be interested in implementing to replace the embedded form.