=== Custom Page Theme - A Wordpress Theme Generator Plugin=== Contributors: Jeetendra Bajaj Donate link: Author URI: https://www.linkedin.com/in/jeetendra-bajaj-14020b14/ Plugin URI: https://github.com/jeetendrabajaj/custom-page-theme/ Tags: design, theme, custom page design, custom page theme, custom-page-theme, custom page template, page theme, design theme, auto designing, theme designing Requires at least: 4.1 Tested up to: 4.8 Stable tag: 1.0 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html == Description == Custom Page Theme is a plugin alternate of Custom Page Templating in Wordpress, that resolves all the below mentioned limitations of Custom Page Templating. Imagine a wordpress websites having various pages implemented with Custom Page Templats, now it's limitations are 1) All the styling, javascripts, images and font files for each Custom Page template will be saved in same css, js, images & fonts folders of Active Theme folder. 2) Removal of styling, javascripts, images and font files for the pages implemented with Custom Page Templats and have no more use is complex. 3) While upgradig Active theme special precaution required to maintain styling, javascripts, images and font files of Custom Page Templats. *** My Custom Page Theme plugin resolves all these above mentioned limitations **** = What does it do? = 1) The main idea behind this plugin is to seprate all the custom page templates (and their styling, javascripts, images and font files) from active theme selected. 2) This plugin also helps to write wordpress themes atuomatically and apply them on whole website or any particular area of website. = Disclaimer = However lot of studies has been done while making this plugin. Still as it is the first version of plugin, we will suggest it to first use it on some stagging installation of wordpresss. Take complete backup of your WordPress website before installing it on your deployed version or use it at your own risk but please do not forget to back up your files and databases before use. If you're new to WordPress or have a very limited technical background you may consider seeking out professional help your first time using the plugin. For any kind of assistance from our side, you can post your suggestions on our blog section. == Installation == 1. Upload `custom-page-theme` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Now in admin panel in left menu you will find a menu 'Custom Page Theme' with 2 sub menu 'All Custom Page Themes' & 'Add Custom Page Theme'. 4. 'All Custom Page Themes' will hold the list of all the Custom Page Themes already developed. also user can delete any of the theme from delete dropdown 5. 'Add Custom Page Theme' to add new theme == How it works?? == The Custom Page Theme plugin makes seprate themes that can be applied to any number of pages. This helps 1) The removal of any page it's styling, javascript files,font files & images when it has no more use. 2) While upgradig Active theme special precaution required to maintain styling, javascripts, images and font files of Custom Page Templats. == How to use?? == Once installed & activation on wordpress website. Under Admin Panel the plugin adds a main menu link "Custom Page Theme". Having 2 Submenues "All Custom Page Themes" & "Add Custom Page Theme". Custom Page Theme (Main menu item link - Added by Custom Page Theme plugin) | |- All Custom Page Themes (Submenu item link - Dispaly list of all Custom Page Themes been created and links to edit,delete & check the pages the theme is hooked.) |- Add Custom Page Theme (Submenu item link - To add/create a new Custom Page Theme) == Add Custom Page Theme == = Sample 1 = The Two mendatory files that always require for a WordPress theme are – style.css and index.php. 1) Click on "Add Custom Page Theme" submenu. 2) Enter the Title you require for your theme into Title field, example "FirstCPT". [Mendatory field] 3) Enter the Description you require for your theme into Description field, example "My First Theme developed in Custom Page Theme Plugin". [Mendatory field] 3) Make a file "index.php" then copy "

Hello World

" and paste into "index.php". [Mendatory file] 4) Make a file "style.css" then copy "h1{color:red}" and paste into "style.css". [Mendatory file] 5) Submit the form. 6) In "All Custom Page Themes" page an instance will be created, that represents the Custom Page Theme you just have created. 7) Go to "Pages" => "Add New" and make a page. 8) Insert the title and description that you require. 9) In Right panel you can see a widget titled as "Custom Page Theme", holding a dropdown of all the themes you have in website along with the theme you just have created. 10)Select your theme (here for example FirstCPT) 11)Publish the page. 12)And now you can view your page = Sample 2 (Little Complex Custom Page Theme) = The above "Sample 1" however will create a Custom Page Theme and a page applied this Custom Page Theme as Layout, but if you view the page you can see that the content of page only holds the html holds in "index.php" file and apply the styling from "style.css", but the description field content is missing. By inserting a simple shortcode "" into "index.php" file below the heading tag, we can solve this issue. The Two mendatory files that always require for a WordPress theme are – style.css and index.php. 1) Click on "Add Custom Page Theme" submenu. 2) Enter the Title you require for your theme into Title field, example "FirstCPT". [Mendatory field] 3) Enter the Description you require for your theme into Description field, example "My First Theme developed in Custom Page Theme Plugin". [Mendatory field] 3) Make a file "index.php" then copy "

Hello World

" and paste into "index.php". [Mendatory file] 4) Make a file "style.css" then copy "h1{color:red}" and paste into "style.css". [Mendatory file] 5) Submit the form. 6) In "All Custom Page Themes" page an instance will be created, that represents the Custom Page Theme you just have created. 7) Go to "Pages" => "Add New" and make a page. 8) Insert the title and description that you require. 9) In Right panel you can see a widget titled as "Custom Page Theme", holding a dropdown of all the themes you have in website along with the theme you just have created. 10)Select your theme (here for example FirstCPT) 11)Publish the page. 12)And now you can view your page = Sample 3 (More Complex Custom Page Theme) = The above "Sample 2" takes content from the page and apply the layout of the Custom Page Theme, we have created. Similarly we have a wide range of shortcuts that helps us to add Menu, Banner, Archive widget, Callender widget, Search Widget, RSS widget, Meta widget, Recent Comments widget etc. Recent Comments : Search widget: Callender widget: Meta widget: The above shortcodes are few of all, designer can put the place shortcodes in "index.php" file on the locations they want, design them through style.css file. and upload the "index.php" file. = Sample 4 (For very Complex Custom Page Theme) = if designer have "index.php" file holding additional css, javascript, fonts and images The Two mendatory files that always require for a WordPress theme are – style.css and index.php. 1) Click on "Add Custom Page Theme" submenu. 2) Enter the Title you require for your theme into Title field, example "FirstCPT". [Mendatory field] 3) Enter the Description you require for your theme into Description field, example "My First Theme developed in Custom Page Theme Plugin". [Mendatory field] 3) Make a file "index.php" then copy "

Hello World

" and paste into "index.php". [Mendatory file] 4) Make a file "style.css" then copy "h1{color:red}" and paste into "style.css". [Mendatory file] 5) Inside "Upload Supportive JS files" section, add the additional javascript file that supports the theme. To enque the javascript file Wordpress asks a lable to represent that javascript file, so in our system, In "File Title*" field insert the title to lable the javascript file and then in second column "Choose File" select the javascript file. Multiple files can be added by clicking on "Add More JS" button above. 6) Inside "Upload Supportive CSS files" section, add the additional css file that supports the theme. To enque the css file Wordpress asks a lable to represent that css file, so in our system, In "File Title*" field insert the title to lable the css file and then in second column "Choose File" select the css file. Multiple files can be added by clicking on "Add More CSS" button above. 7) Supporting Font Files can be added from "Upload Supportive Font Files", it can be Multiple, but wordpress don't ask to label them so we have not used the "File Title*" field for font files 8) Supporting images Files can be added from "Upload Supportive Images", it can be Multiple, but wordpress don't ask to label them so we have not used the "File Title*" field for font files 9) Submit the form. 10) In "All Custom Page Themes" page an instance will be created, that represents the Custom Page Theme you just have created. 11) Go to "Pages" => "Add New" and make a page. 12) Insert the title and description that you require. 13) In Right panel you can see a widget titled as "Custom Page Theme", holding a dropdown of all the themes you have in website along with the theme you just have created. 14) Select your theme (here for example FirstCPT) 15) Publish the page. 16) And now you can view your page