Starting a WordPress themes to provide your web site design idea will become a lot of simpler when you know exactly about things such as Custom Page Templates. WordPress operates using posts and then pages, but each and every page doesn’t is required to be cookie-cut from the equal design. You can actually set up different layouts and then content for specified web pages to set up visually interesting web sites that will be also editable with WordPress’ strong importing tools.
What is a custom page template?
WordPress custom page templates are theme file types which provide an alternative choice to the default page .php file folder. These types of custom templates can contain whatever HTML or template tags you would like to build up your desirable layout and articles, after that the file folder could be connected to a particular page in order that WordPress to make use of this new template whenever serving the particular one page of the web site.
Common uses for custom page templates are to set up different page layouts for about web pages, testimonials and services; an eye-catching portfolio with an array of clickable thumbnails; and an intelligent about and contact page with features inserted directly to the template in code. You need to configure your page layout beyond exactly what is available in the default page.php file folder, a custom page template is exactly what you require.
How to create a custom page template
Setting up a custom page template couldn’t be much easier. Set up a blank php document, and then insert the following code:
< ?php /* Template Name: Abot */ ?>
Configure the template name to some thing recognizable, this is exactly what will appear in a drop down menu with in the WordPress admin display. Saving the file folder with a name according to your selected template name is important, as an example about.php.
In the other parts of the document insert your HTML and also WordPress template tags to construct your expected layout. utilize tags like <?php get_header( ) ; ?> to create the page making use of the current header/sidebar/footer elements, or you will may be setting up some thing extraordinary making use of the complete WordPress loop. Don’t forget about, you will also really hard code features into your template file folder that will be different to this web page, like a contact form, YouTube video and a Google Maps i Frame.
When you’ve set up your custom page template and then uploaded it to your theme directory, set up your web page making use of the WordPress editor. Any kind of articles you insert making use of the WYSIWYG will appear where ever the < ?php the_content( ) ; ?> tag was placed within the template. This page can use the default page.php template unless of course your change the Template choice under Attributes.
Choose the Template menu and then select the template file folder with the name you provided. Press the submit key and then notice your WordPress articles dynamically generated making use of the structure of your custom web page template.
Hope you all like this Tuts byCodiTuts.com, if yes then keep us supporting by sharing this post, Cheerful Coding .