Styling <p> in Blog articles

Hello,

I’m using the Kirby Starter, and I’ve found Bastain’s video and the Cookbook in docs really helpful. I’ve followed the Blueprints and Templates to make a blog and my Panel looks exactly like I’d expect … but when writing it goes wrong, then ‘a’, ‘p’, ‘h1’ renders weird, I don’t see what I’m doing wrong. I suspect I’m missing something in the template, but don’t know what to add, a text field? You can see Markdown is rendering on the article and Inspector has no ‘p’ tag.

Thanks in advance!

-Bryan K.

You have to render these fields with the kirbytext() method in your templates.

echo $page->fieldname()->kirbytext(); // change `fieldname` to name of your field

You should see that in the examples templates.

On a side note: I wouldn’t use h1 in text fields as that is usually used by the page title.

1 Like

Once again, thank you @texnixe! Turns out I must have skipped a step, I didn’t have an article template.

I feel like I am asking a some very simple questions, a bit too simple. Is there a another learning resource? The docs help, the video helps, but I really don’t want to fill the forum with simple questions.