Create Custom Theme in WordPress
Posted By : Renu Yadav | 21-Nov-2017
In present time there are lots of things to learn in framework but in framework some time needs to create custom theme. Custom theme is not much difficult but not so easy. In wordpress we create custom theme easily. In custom theme we do not need to create over all theme from scratch. We simply copy the folder of preexisting theme of wordpress and give the name of your theme.
Wordpress
----- wp_content
----- theme
---- twentyfifteen
---- twentyseventeen
---- twentysixteen
---- Owntheme(copy twentyseventeen and rename it Owntheme)
In Owntheme theme you don't need to write the functionality of wordpress from scratch We don’t need to write the functionality of admin panel.Because of coping the theme folder,we have default functionality of theme.Owntheme folder have js and css default files which used by wordpress theme. In Owntheme folder you must create the Style.css and index.php file.When you login in admin panel,go to Appearance and select Owntheme from themes. After activate Owntheme theme,you can see the home page of website which show the index page of Owntheme folder. For Creating own pages of the theme you need to create folder page-templates.In this folder we create templates and after create templates you must select this template from admin panel.
In admin panel page section you first create the page and after create page you must select the template from Page Attributes Section and click on update button.For styling your pages you need to create own css file. You need to create css folder and save your style.css file in this folder. But don’t write the css of templates in style.css which created in the beginning with the index.php file.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Renu Yadav
Renu is an Associate Consultant -WordPress in Oodles. She likes watching movies and reading books.