[Support request] Base URL Link for Multisite

Home Forums Support [Support request] Base URL Link for Multisite

Home Forums Support Base URL Link for Multisite

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #884574
    Ralf

    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

    #884806
    Tom
    Lead Developer
    Lead Developer

    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';
    } );
    #885336
    Ralf

    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

    #885690
    Tom
    Lead Developer
    Lead Developer

    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.

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