how to make different pages in the same template


Author Message
ruth

Posted: 2/7/2015
Quote message 

HEY PEOPLE!!!

Anybody knows how to make diferent pages in the same template???I mean, in the home page put a witget, and a block like blogscroll (example) and in the contact page make this disapear at all, and doesn´t put the header, but yes put a menu diferent from the home page....I don´t know if you understand....make absolutely diferent pages included to the same theme.

I saw that in templates from themeforest, for example, you can drag and drop from the page in dashboard in wordpress the option to choose diferent types of pages,

Examples: full widht, portfolio, home

PEASEEEE HELP MEEEEEEE


 
Nicole

Posted: 2/7/2015
Quote message 

Hi Ruth,
I suppose that you may try to create different themes and assign them to different site pages with the help of specific plugins for WP
 
Help

Posted: 2/8/2015
Quote message 

It might help if you grasp that wordpress pages aren't just normal html pages, but made up from various dynamic sections which are combined to make a complete page.

For example
header.php
(the file that contains your header info & logo and usually your main
navigation
.
sidebar1.php
Your primary sidebar (usually on the left)

Sidebar2
Secondary sidebar if used in your theme

Index.php
This file displays your posts as a typical "blog" list

Page.php / Single-Post.php
This file displays the main content of your pages or posts

Footer.php
The file that controls what goes in your footer

Once you understand this and the relationship they have to your web pages you can have fun copying your page.php file for example. Then edit that to leave out the header, footer or navigation if you wanted. Or to display or not display the extra author/date/meta info. Or add some custom words, image or functions. You can then simply add a lttle bit of text to the start of your file which will convert it into a new template which you can then use. Upload it to your theme folder and you'll be able to use your new template in the wordpress template dropdown menu when creating a new page.

If you simply want various widgets to appear or not on different pages, you could try the widget logic plugin. It's very good but you will have to learn a little bit about conditional worpress logic eg. page_is('about') show or hide this widget...

Links:
The anatomy of a wordpress page:https://yoast.com/wordpress-theme-anatomy/

How to create a template: http://premium.wpmudev.org/blog/creating-custom-page-templates-in-wordpress/