Have you wondered how some people have Completely different looking pages On their WordPress site or blog. In this tutorial we will show ‘how-you-can you create a custom page in WordPress Using the custom page template snippet. A custom page is helpful if you have to because a page that looks Completely different Than rest of your blog but still runs on the WordPress CMS. You can also use it as a homepage or a landing page.
To customize the design and styling for editing the page, HTML and CSS knowledge Would be helpful.
Will you start creating Creating a custom page by opening a blank file in your text editor and paste the following code at the very top:
<? Php / * Template Name: WebCoreStudioT1 * /?>
Once you have added the code, save the page as: blog [template name]. Php So it Will be blogwpbeginner.php for this example. Any other name it-you-can structure you like as long as it is a php file.
The above code is simply giving your template a name later That you will See that Recognize WordPress, so we are calling our template WebcoreStudioT1 but you-can call it whatever you like for example, archive, contact, landing page etc.
This page can-use all php pages Other markups as your can. If you need help-you-can use WordPress Theme Cheat Sheet for beginners. You-can start out by calling WordPress header and footer, or you-can go solo Completely by doing everything in HTML.
If you do not call header.php, then you must make sure to add all the header information Such as style.css and others.
Once you have completed editing this file save it and upload it into your theme directory (/ wp-content/themes/yourthemefolder /) where clause like single.php and index.php files are located.
Next you need to compromise to login to your WordPress admin panel and Add a New Page. Already since you have written down all the text and settings in the php file, simply name the page and leave the content area blank. Look on the right hand side, you see a box called compromise Attributes below the Publish button. Choose the template Using the drag-down button.
Add the Meta Information Such as Title, Description and such if you have the SEO plugin and Publish the page. Now this page Will be Using the template you specified.
But if you left the option for the content to be dynamic, then you need to compromise to add content through the admin panel.
This is a very helpful tutorial for designers Specially When using WordPress as a CMS.