Need some php logic help

Saunt Valerian
Expert
Member of the Month

Member    Likes (0)

I'm using the following code in a mu-plugin to setup some styles for my BuddyBar across my multisite network. It gives me a customized bar that goes across the top of all my user's sites.

function global_tt_bar() {
        echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('global-tt-bar.css', __FILE__). '">';
}

add_action('wp_footer', 'global_tt_bar', 1);

I need some help in adding some logic to it so that it doesn't call the css file on the front of the main site (blog ID: 1). I want to use my theme's built in BuddyBar styles for that.

It's just a couple lines of php code that I need, but I'm not a coder and everytime I tried to modify this, I ended up breaking everything.

Can someone take a look and help me out, please?