Add infobox or colored text box

Posted in: Newspaper
Post count: 28

Hi Support,
Please advise how to add infobox or colored text box in the post content? Thank you.
(eg. for note, of affiliate disclaimer)

Post count: 20685

Hi,

That depends. Will this info box be the same for all the posts or just for specific posts?

If maybe you want to display different content in the info box, and only for some posts, then it could be added manually in the post content directly. It can be built with HTML and CSS.

I’ll try to help. Could you provide an example of one or more posts where you want the info box to appear, and how it should look? But the main thing before getting started is knowing if all the posts should have it and if the info box is the same, or just some posts, or the if the info box is different per post.

Thank you!

Post count: 28

Thanks for your reply, Simion.

Just want to use the pre-designed infobox of Newspaper theme for quick notes or disclaimer. (Similar to the blue info box in newspaper theme docs)

Post count: 20685

So like this for example -> https://prnt.sc/oG-kPH_xADqK

That is built like this. The paragraph is wrapped within a div container with a class -> https://prnt.sc/ZKEGPJLrGgUS and through that class there is a background color set, text color, some padding -> https://prnt.sc/Nk_EQx_mOqKa

If you use the block editor instead of the classic editor, it’s easier. You can set a class for the paragraphs you want -> https://prnt.sc/S0JkxzM6GN1j and that’s it. With a similar CSS code added in the theme panel -> https://prnt.sc/hF3-oiGhCKaA then all the paragraphs that have that class will have the info box design -> https://prnt.sc/kY-egliuwC0e

Of course, the design can be different, different colors, font sizes, spacing, etc.

Let me know if you need help with it.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.