Site logo

Archived topic

Base URL Link for Multisite

3 replies · Started by Ralf on April 30, 2019

Viewing posts 1–4 of 4

I installed a WP multisite with directories and now I want to unify the logo-URL to the URL of the first blog-ID.
How can I realize it update-safe in my child theme?

Thanks for your support.

Best
Ralf

Hi there,

In order to run a function network-wide, you need to create a plugin and network activate it.

You can create a plugin with a plugin like this: https://wordpress.org/plugins/pluginception/

Then your function would look something like this:

add_filter( 'generate_logo', function() {
    return 'URL TO THE LOGO YOU WANT TO USE';
} );

Sorry for the misunderstanding, I only want to set the Link of the logo to the base-URL of the first blog-ID in my multisite. I need something I can add to the function.php of the Child-Theme.

The Link of the logo has to be always "https://www.mydomain.com/" even if the URL of blog ID2 is "https://www.mydomain.com/site2/".

Thanks & best
Ralf

Couldn't you manually set the URL in that function I provided? That way it will always be the URL that you set.

We could use PHP to get the base URL likely, but it seems unnecessary if we can just manually add it.

This archived topic is closed to new replies.