I’ve a easy website the place WordPress supplies the final look-and-feel, and total web page construction, however the essential pages are literally plain HTML, styled by Bootstrap. These are manually created in a textual content editor.
To be extra exact, the “WordPress pages” are literally empty pages, however the php template contains this assertion:
<?php embody "contains/foo.php"; ?>
The place foo.php
is definitely an HTML file with the true content material:
<div class="container">
...web page content material
</div>
Okay, this is my drawback. A few of these HTML recordsdata are actually too massive for comfy viewing, and I would like to interrupt them down by linking to different HTML/Bootstrap pages. How do I do that, whereas retaining the template (in different phrases, all of the WordPress stuff across the new web page, the css, and so forth)?
If I merely put in a hyperlink:
See <a href="http://instance.com/wp-content/themes/my-theme/contains/bar.html">right here</a> for extra thrilling content material
Then bar.html
is displayed, however wipes out the positioning – it is only a single web page with no styling. I am guessing that I’ve to change the template and in some way swap between foo.php
and bar.hml
, however I do not know how.