![]() If your active theme’s folder has a file named page-about.php or page-6.php, then WordPress will automatically find and use that file to render the About page. To create a template for one specific page, copy your existing page.php file and rename it with your page’s slug or ID:įor example: Your About page has a slug of ‘about’ and an ID of 6. Create the custom page templateĬreate a child theme if you haven’t done so already. Every theme is different, so this requires a bit of experimentation on your part. If you don’t want to install a separate plugin for this, you can also add a page template to your theme by creating one yourself. ![]() If your theme (or page builder) doesn’t come with a blank template, another quick and simple option is to install the free Blank Slate plugin, which adds a Blank Slate page template for your site. This may have a different name in your theme, so check to see if you already have something like this available to you. In this theme, there’s a No Header/Footer template that’s exactly what you need for a sales page or landing page. If your theme has multiple templates you can choose from, you’ll see the option for Template and you’ll be able to select one from a dropdown. In the page settings (click the little cogwheel if it’s not open on your screen), there’s a section Page Attributes. You can check what page templates your theme has by opening the edit screen for any page. First things first: check your themeĪ lot of themes and page builders have a template included just for these kinds of pages, so check if yours has such a template before you decide to install any plugins or dive into the code to add one yourself. ![]() Are you stuck on how to create a page without headers and footers? I’m going to walk you through creating a very simple custom page template. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |