Home Forums Pro Themes Travel Eye Pro Landing Page

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23395
    Jenn_0014
    Participant

    I would like the possibility to create a Landing Page without the main navigation. I have tried after creating a child theme adding a landingpage.php but as there are no page layout options cant work out how to use it.

    #23400
    wensolutions
    Keymaster

    Hello @Jenn_0014,

    If you want to display a custom page as your landing page you can do it with child theme creation.

    You have mentioned that you tried creating child theme and setting up “landingpage.php”, the method wont work as the page wont be recognized as the landing page template by default by WordPress.

    To be able to use the template you will need to put in the code below in the top of your page template to define it as a page template in WordPress :

    <?php
    /**
     * Template Name: Landing Page
     *
     */
    ?>

    You can now choose your defined page template for your Current Home page under page edit screen > Page Attributes > Template.

    For further reference on using page templates see the link here : https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/

    Hope this Helps,

    Best Regards !!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.