Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Include js from folder outside WP in themes


peterverkooijen
Participant

@peterverkooijen

This seems to word for including a php file:

<? include get_option(‘home’).’/common/whatever.php’; ?>

And adding this to header.php in the theme also seems to work:

‘<script src=”<? echo get_option(‘home’) ?>/common/js/whatever.js” type=”text/javascript”></script>’

Best solution?

Skip to toolbar