How to link to index.php from static page in wordpress? -
in wordpress template design intro page , set static page, in want put button when user click on index.php's content shown.
index.php default template used through wordpress.
see https://codex.wordpress.org/template_hierarchy
just create page , ensure page template used 'default template' , link page required. index.php template should used default.
if have page.php template, override index.php. in case duplicate index.php file, rename page-custom.php , add following code first line of template file.
<?php /* template name: custom page */ ?>
now 'page attributes > template' drop-down in page editor see 'custom page' template in drop-down list
Comments
Post a Comment