In Multisite, can we reference widgets from our home site?
I have our home site at website.com with widgets in the footer. It’s a multisite with subdomains, so we have sites like sub.website.com. (I’m using a generic site name because we have multiple sites where this applies.)
We’d like to use the widgets in the footer on our main site in the footer of our subsites as well, but they don’t carry over. How could we do this?
My solution is to hard code the footer into the footer.php page in the template, but I’d like to keep it editable through the Widgets menu.
I’m aware of Multisite Widgets Context, which seems great, but doesn’t do what I need. I’d have to apply the widgets to all of my sites and have them reference the one on my main site. What I want is to copy the collection of widgets from the home site.
Right now, I say <?php the_widget( ‘footer’ ); ?> on my home site, which grabs its widgets from this collection and displays them. I would like to use this code on my subsites to get the same results, like <?php the_widget( ‘footer’, ‘home’); ?>
. That code won’t work, but you get the idea.
- The topic ‘In Multisite, can we reference widgets from our home site?’ is closed to new replies.