If I have developed a separate HTML page that I wish to include inside my WordPress site what is the best way of including it?
In this case it requires a javascript library or stylesheet that is not by default in my WordPress theme that would need to be inserted in the tag.
I am aware of the following solutions:
iFrames:
- To match the site styling I would need to include every css from the theme in the iframe header.
- If the theme is updated with another script style sheet, this would not be updated in the iframe, maintenance could be arduous.
Editing the theme:
I could add into the various theme files along the lines:
is_single( 'page1' )
add_action( 'wp_head', 'extra_stuff' )
For each post/page I create or change I would have to change the theme files accordingly.
Ideally I would like to be able to do this from within the post editor
Are there any plugins that accomplish this?