Sharing Header Components Across Multisite
Question
I have a multi-site platform and I’m trying to share the menu that I have in main with other sites that are located in different folders.
This is the PHP tag in the main that pulls the menu which I also need in the header of other:
<?php dokan_header_user_menu(); ?>
I tried using it as it is in the header of /site2
, and it didn’t work. I also tried this:
<?php
include $_SERVER['DOCUMENT_ROOT']."site.com/wp-content/themes/dokan/header.php";
?>
still no luck. Any tips will greatly be appreciated.
Cheers!
0
footer, headers, multisite
3 years
2020-04-01T20:51:21-05:00
2020-04-01T20:51:21-05:00 0 Answers
70 views
0
Leave an answer