Archived topic
Possible to use Site title for dynamic text?
5 replies · Started by Arp on October 21, 2021
Just wondering if I need to setup my own shortcode to display or if dynamic text in a block is possible.
Hi there,
I can see a couple of ways of doing this.
Can you explain a bit more about what you are trying to achieve?
Let me know :)
I'm making site footer made of blocks and I want a simple copyright/year/name of site. This would replace the footer widgets and the footer with the editable copyright area.
That should be do-able. What are you having trouble with?
The site title should be a static text no?
Sorry, I did a bad job of writing my question.
I make sites for less technical people. I want the site title to be grabbed from the main site settings. The dynamic text option looks for fields related to posts and pages. The idea is that if the site title is changed then I would not need to manually update in multiple spots.
You would need a shortcode solution:
https://generatepress.com/forums/topic/shortcode-for-site-title/#post-1768684
However, since site titles typically don't change all the time, I'd recommend just using static text and show your user how to edit it.