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
- Export/Import Blog Post from and to sites with different themes?
- Add additional Network constants to wp-config.php dynamically
- WordPress Multisite – When a user signs-up on main site, how to add the user to a subsite
- create /blog subsite on WordPress multisite
- Blog Settings import/export in WordPress Network environment
- How to manage hundreds of WordPress sites?
- Multisite – Retrieve the same theme option from all sites of the network
- At MultiSite Network Update “Can’t Resolve host”, override and continue updating
- Creating multiple blogs
- Can I run a second wordpress site as a subdomain without using multisite?
- What are the differences in capabilities between the super-administrator and administrator?
- Delete options from all blogs on plugin uninstall from a network/multisite
- WordPress Network for regional company websites
- How to do Domain Mapping to Subdirectories?
- Stuck with WordPress Multisite Custom signup page without .htaccess modification
- Media library not loading after switching the main site of multisite
- Multisite media library uploads broken images
- WordPress Images Not Showing When FTP
- How do I list multisite users for the current site only
- Create batch of sites WordPress MultiSite
- Create a homepage like WordPress.com?
- get post id by $content (so by post content)
- URL for images folder on Multisite
- Navigation menu not being assigned Theme Location
- Moving wp-admin folder to a different host in a multisite environment
- How do I remove the “http://” from network_site_url?
- Performance disadvantge of second installation instead multisite feature?
- What is the simplest way to disable multisite leaving one of the sites only?
- What does multi-site WordPress application mean?
- Create website with a switch between private and business [closed]
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- Forward and mask a WordPress website
- Cannot add edit themes and add plugins after multisite update
- Subdomain is not working
- How to automatically create an index of child sites at the root url for a multisite installation?
- Does switch_to_blog support array or other ways to show all posts on a network install?
- How to make subdomain and muti-site but wordpress isn’t in root?
- Migration: previous URL redirection after migrating
- Add www to the Root Site in WP Multisite Network
- URLs for (MultiSite) link images are always relative
- How to allow mixed case characters in multisite site name?
- How To Change the URL of a WordPress Multisite
- Site w/ Addon Domain doesn’t show CSS
- WordPress MU – Creating a site takes ages
- Default sub-pages on WordPress Multisite
- WordPress Multisite – Questions about select all posts from all network sites
- Multi site and media uploader
- Subdomain add comment redirect to 404 not found page iis server
- Multisite admin panel not working after the update
- Wrong theme being activated
- WordPress Network / Multisite login to one site allow access to all
- wordpress multisite with already existing subdomain
- Why the sites dropdown in multi-site installation is different from the list of sites when seen full page?
- WPML is blocking WP core update
- Multisite: Redirect a deleted site – Best practice?
- Wp-admin wrongly redirecting on multisite
- WordPress multisite with different sites for every language. How can I set the site based on the users browser location or language?
- Unique wordpress multisite requirement
- Child sites are slowly loading images from main site (main site is super fast)
- UPLOADS constant not working in WordPress Multisite
- Uncaught Error: Interface ‘…’ not found for direct acces to wp-includes files