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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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