Okay I avoided the lazy way out =)
For others that have my particular site requirements, here’s my workaround, of simply creating my own custom method in functions.php:
function mysite_get_theme_directory_uri() {
// chop up the url from get_stylesheet directory
$parsedUrl = parse_url(get_stylesheet_directory_uri());
// chop up the 'path' index value
$path = $parsedUrl['path'];
// make it an array
$parsedPath = explode("https://wordpress.stackexchange.com/", $path);
// remove the 3rd element of the path's array, which is the site name
unset($parsedPath[2]);
// put that path array back into a string
$themesPath = implode("https://wordpress.stackexchange.com/", $parsedPath);
// return full URL
return $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $themesPath;
}
Related Posts:
- Allow user to select a theme to install when they signup
- Changing Multisite themes on mass
- Is there an easy way to separate themes on network?
- Hide a theme on list of themes in wp-admin without editing core files
- Can I install a theme on only one site of a multi-site network install?
- Can’t find “Add New” button for themes in a multisite
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- Manipulate list of themes in wp-admin
- Subfolder multisite issue. Themes and plugin files 404
- cant enable theme in multisite
- Bulk activate a theme on multisite
- Using Two Themes – One for Main Site, One for Ecommerce
- Multisite theme control not working
- WordPress MultiSite Theme
- Update configured themes
- How to show different sub sites based on Member’s user name In word press?
- Does a single theme license work on multisite? [closed]
- Create a CSS file in plugin folder when theme is activated
- Is it necessary to network enable both the parent and child theme for multisite installations?
- Trying to change active theme on all sites in Multisite
- Multisite > Edit Site > Themes – what are these themes?
- WordPress multisite with same content
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- May I do multiple micro-sites with different themes in a single wordpress without subdirectory nor subdomain separation?
- How can I have two or more WordPress Pro (paid) themes that form a single website?
- Create link preview for theme wordpress
- Themes are visible in Network, but invisible in sites
- WordPress theme to support single website but with 3 sections for 3 languages
- WordPress multisite condition for certain blog_id’s
- WordPress Multisite – Auto enable theme
- Whats the best Practice for using a different Theme for WebView Apps?
- Creating a stand-alone site from a WordPress sub site
- Updating themes customized by users
- How to handle responsive and non responsive websites in one WordPress Theme?
- In a MS install, can you allow different users to have their own themes?
- How to mass change theme for all Multisite network sites?
- Iterating over every multisite / theme and list the pages
- different image for mobile template block theme
- What’s the difference between get_site_option and get_blog_option?
- multisite 404 error for subdirectory
- How to hide or remove unwanted widgets on Multisite installation?
- Sharding BLOGUPLOADDIR
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- Redirect to a Plugin Settings Page After Multisite Site Creation?
- WordPress Multisite – Multiple subfolders for blogs
- Uploading/Deploying a Multi Site Install
- How does wordpress multisite manage subdomains?
- Error 101 after upgrading WordPress
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- Trying to migrate a WordPress Multisite with Domain Mapping
- How to update_site_option for specific site within network?
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- How to run nested xargs commands?
- How to add edit users capability to a custom role?
- Wordrpess Subdomains (Multi-Site) without Wildcard
- Subfolder Multisite : optional www subdomain
- Efficiently manage a huge number of blogs given server-side restrictions
- Icon font not working on subdomains of multisite
- Getting this code to work in Multisite
- Search post in all blogs in WPMU?
- Migrating Multisite – Database error, missing wp_blogs table
- Sitewide category terms
- What is the function to get options of the parent site of a multisite network?
- Issue with htaccess redirection in WP Multisite
- Multisite – sort merged get_posts() queries
- WordPress MultiSite login to the respective site
- Can you install / activate the multisite when the install is in a subfolder?
- In multisite environment which is the most Popular blog?
- Share reusable blocks between network sites
- Multisite – Change Add user to Blog notification email
- URL without www redirect directly with submission page – Multiwordpress install
- WordPress rewrite multisite blog url
- How to transfer existing WordPress website to new multisite wordpress domain?
- Can Multisite run without domain name in WordPress?
- Going multisite with www prefix
- WordPress sub-domain multisite 505 error
- WordPress Multisite blogs not working after domain swap
- WordPress front end posting to multiple blog in multisite with advanced custom field
- Detach site from multisite (turn off multisite)
- How to wordpress multi site [closed]
- Is it possible to load wp-content/uploads from another server?
- Multi-Site / Single Site Decisions
- Multi-site site nav, wpdb->prepare missing argument
- What’s the best way to get posts from one multisite blog into another?
- query multisite blog for post by tag
- Rewriting request to another site
- How to migrate post media from stand-alone to multisite build
- Multi-Network without plugin
- All Multisites are working as one site
- How to add WordPress site to multisite network when both are addon domains
- Get posts by user role in a Multisite
- WordPress Multisite header img src is lost from staging to production
- How can I make my existing VIP theme to multisite
- how to make a cronjob run, when user needs to be logged in
- All Subsites of a WordPress Multisite install 302 redirects to the main site
- Apply Lazy loading/Infinite scroll on array data
- Problem in viewing recent posts from network site to main site
- WordPress shows death white screen on multisite
- External rewrite rules missing in htaccess – Multisite