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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -