Interior Page Template Dynamic in Wordpress
For This first create About Us page and Privacy policy page in admin.
Then template file open interior-page.html and copy content from after header and before footer. -> from Page banner to generic content .
Go to page.php in theme and paste that copy html inside while loop and remove old content to display new content.
After that lets make content dynamic in page first make Page name dynamic so change below ->
<h1 class="page-banner__title">Our History</h1>
to
<h1 class="page-banner__title"><?php the_title(); ?></h1>
after make content dynamic remove dummy paragraph and add below function ->
<?php the_content(); ?>
and save and also comment page link menu now for future.
also in page make background image dynamic using get_theme_file_uri() function.
Comments
Post a Comment