[Support request] Support for sitename in customiser footer copyright

Home Forums Support [Support request] Support for sitename in customiser footer copyright

Home Forums Support Support for sitename in customiser footer copyright

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #853878
    Ivan

    The copyright textarea in customiser supports %current_year% and %copy% as placeholders. It would be useful to support %site_name% (or equivalent) as well.

    #854377
    Tom
    Lead Developer
    Lead Developer

    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!

    #855107
    epickenyan

    I support this too. Currently, I am using code <a href="/">Sitename</a>

    #1717354
    Scott

    Tom, Where would this PHP to create the shortcode be placed? I’m not a WordPress or PHP developer, I’m a website builder.

    #1717358
    Elvin
    Staff
    Customer Support

    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/

    A wise man once said:
    "Have you cleared your cache?"

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