Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to automatically add text to the end of new blog posts?

Solved by Clive Beckett View solution

Started by Ptarmic 6 years ago · 2 replies · 1229 views
6 years ago

Is there anyway to automatically add some text to a blog post when it's published? I have some standard text with links to twitter/facebook etc (about a paragraph worth) that I copy/paste onto the end of each blog post - it would save a bit of hassle if there was some way to just automatically attach this text when publishing a blog post.

6 years ago Solution

I‘m not quite sure I understand you correctly, but I guess I would add such things to the template file. Although that probably only works if you had were using your own theme.

6 years ago

That sounds like the best option, thanks. I was trying to think of a twig or php solution but didn't actually think of the simplest option of just editing the template file.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago