admin管理员组

文章数量:1417070

I have built a wordpress site locally in a directory /blog I have other site files that are at the web root that I need to access in the WordPress installation, css, js etc.

Locally I included the files by:

<style>
<?php include($_SERVER['DOCUMENT_ROOT'] . 'css/site-style.css'); ?> 
</style>

For reasons out of my control we inject the styles into the head instead of wp_enqueue_styles.. I know gross

This worked fine locally, but now that I have deployed the files remotely it no longer works. If I echo the path out I receive the proper file path. Is there a function or way so that I can access the files both locally and remotely outside of the wordpress installation?

thanks for your help!

本文标签: