I currently have a wordpress website where the template is fixed but I would like to have the content all stored into 1 file that I can use to update the content. The reasoning behind this is that I will have many different websites with the same template but different content. This way, if I ever required changes, all I would need to do is edit this 1 content.html file.
I have attempted to make a single HTML page where there would be different divs for different variables of the website, however the entire text of the HTML file is showing on the wordpress website rather than the specific id DIV "homepagetitle".
How do I use the file_get_contents or anything similar to retrieve specific sections of information through to my php wordpress website?
THE HTML FILE:
<html>
<div id="homepagetitle">AGENT SUCCESS 2 </div>
<div id="other">othercontent</div>
</html>
MY WORDPRESS SITE PHP FILE:
$homepagetitle = file_get_contents('http://neil1.zxstudios.ca/wp-content/themes/fullredpin5/content.html #homepagetitle');
echo '<h1 class="intro-text">'.$homepagetitle.'</h1>';