Tag Info

New answers tagged

0

Yes, multisite is not what you need here. I would try to map all subdomains on the same wordpress install, and then customize the template via the current URL. In the wp-config.php you then use the current URL as base url: define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']); define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']); You can also do ...


1

Your first attempt does not work because get_template_directory_uri returns the URL to your theme directory. Your second attempt will work, but if you don't want to hard code the domain you could either try using a root relative path or fetching the domain portion of your site url. Relative path: wp_register_script('circle-bounce', '/js/general.js', ...



Top 50 recent answers are included