Archived topic
Support for sitename in customiser footer copyright
4 replies · Started by Ivan on March 29, 2019
The copyright textarea in customiser supports %current_year% and %copy% as placeholders. It would be useful to support %site_name% (or equivalent) as well.
That's a good idea :)
For now, you can create a shortcode quite easily:
add_shortcode( 'site_name', function() {
return get_bloginfo( 'name' );
} );
Then you can use [site_name] in there.
Thanks for the suggestion!
I support this too. Currently, I am using code <a href="/">Sitename</a>
Tom, Where would this PHP to create the shortcode be placed? I'm not a WordPress or PHP developer, I'm a website builder.
Hi Scott,
Here's how you can add PHP - https://docs.generatepress.com/article/adding-php/
So it's either use a child theme's functions.php or use Code Snippets plugin. https://en-ca.wordpress.org/plugins/code-snippets/