Ultimate Branding - Footer Dynamic Place Site name

In the global footer widget under Ultimate Branding, how can we automatically add the individual "site name" dynamically there?>

ie so most of the global footer is the same but it should say "Copyright YEAR, XYZ Site Name"

  • Milan

    Hello Dave

    Hope you are well today and thanks for asking us. :slight_smile:

    Unfortunately there isn't any out of box way for doing this, but with bit of custom coding we can achieve this. So please follow these steps to get this working. :slight_smile:

    #1) Create folder named mu-plugins in your site's wp-content folder. ( If its not already there. )

    #2) After that paste this snippet in it,

    add_shortcode( 'wppmu_site_name', 'wpmu_render_site_name' );
    wpmu_render_site_name( $args, $content = '' ){
    	echo get_blog_details( get_current_blog_id() )->blogname;
    }

    Save the file.

    #3) Use this bit of code in Global Footer widget wherever you want to render sitename.

    [wpmu_site_name]

    #4) Save changes. :slight_smile:

    What we have done here is that we have created shortcode which actually echo out site name. If you are not happy with markup in which I am rendering site name, please feel free to change it.

    Hope this helps you. :slight_smile:
    Cheers,
    Milan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.