Consider Domain Mapping for css inclusion

Hi,

We use Domain Mapping plugin to specify our official websites domains in production environnement.

The Beaver theme include css skin with the unofficial domain address unlike other plugins / themes :

<link rel="stylesheet" href="http://unofficial-domain.fr/wp-content/uploads/sites/X/bb-theme/skin-54ef3e0cc84c1.css" />

Should be :

<link rel="stylesheet" href="http://official-domain.fr/wp-content/uploads/sites/X/bb-theme/skin-54ef3e0cc84c1.css" />

Can you correct this mistake ?

Thank you in advance

The “skin css” is an example. Other css and js files are also concerned.

Hi Jean-Baptiste,

Thanks for posting! I took a look and we’re using core WordPress functions to enqueue all CSS and JS. Specifically, we’re using the functions get_template_directory_uri() and wp_upload_dir(). I don’t see how the issue could be on our end as using those functions to enqueue assets is a fairly common and even recommended practice. You might try filing a ticket with the developer to see if they have any insight as to how you can get those functions to return the mapped domain. It’s possible that there is a setting somewhere that you’re missing.

I hope that helps.

Thanks,
Justin