How to import an external page with template look
Hi,
I created a muse animation page.
I want to include that page within my site keeping the look and feel of my site.
I tried this code :
<?php /*
Template Name: YourPageName
*/
get_header(); ?>
<div id="container">
<div id="content">
<?php include('mypage.php'); ?> /* My animated page
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Then added a new blank page from wp-admin with template "YourPageName"
Create a link in the menu, display the page
Nothing displays, except the header, footer, sidebar.
Can you help me ?
Thanks
I created a muse animation page.
I want to include that page within my site keeping the look and feel of my site.
I tried this code :
<?php /*
Template Name: YourPageName
*/
get_header(); ?>
<div id="container">
<div id="content">
<?php include('mypage.php'); ?> /* My animated page
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Then added a new blank page from wp-admin with template "YourPageName"
Create a link in the menu, display the page
Nothing displays, except the header, footer, sidebar.
Can you help me ?
Thanks
Comments
this requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer.
Thanks for understanding!