{"id":2246,"date":"2017-03-20T18:58:22","date_gmt":"2017-03-20T18:58:22","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=2246"},"modified":"2017-03-20T19:57:05","modified_gmt":"2017-03-20T19:57:05","slug":"wordpress-theme-development-tutorial-for-beginners","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/","title":{"rendered":"Beginner&#8217;s Guide to Developing a WordPress Theme"},"content":{"rendered":"<p>According to the WordPress Codex: <i>&#8220;A WordPress theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog.&#8221;<\/i> In simple words, a theme is just like a skin of your web page or website which allows you to modify the looks of your content.<\/p>\n<p>So, if you want to create a WordPress theme, I would say let&#8217;s start from scratch. This tutorial will help you build the simplest theme in WordPress. This tutorial will help you build the most rudimentary theme of your own and enables you to spawn them with your own feature.<\/p>\n<p><span class=\"note\">Note:<\/span> For this tutorial, you must have a thorough understanding of HTML and CSS, as both are essential building blocks for working with WordPress.You should also have a localhost environment set up on your computer in which you work in WordPress.<\/p>\n<h2>Let&#8217;s get started\u2026<\/h2>\n<p>The first thing you need to know is where WordPress store themes. You can find them on the directory <code>wp-content\/themes<\/code> in your install. You can also change the location of your themes by giving some commands in the <code>wp-config.php<\/code> but it is done very rarely.<\/p>\n<p>In order to create new themes you need to do some fairly easy things:<\/p>\n<ul class=\"bullet_disk_list\">\n<li>Create a new folder your install&#8217;s &#8220;Themes&#8221; directory and name it a bit unique, like <code>my-first-themes<\/code>.<\/li>\n<li>In this folder, create two files: <code>style.css<\/code> &amp; <code>index.php<\/code>\n<li>Open the stylesheet (style.css) and paste the following codes:\n<pre><span style=\"color:#5a525f;font-style:italic\">\/*\r\nTheme Name: My Awesome Theme\r\nTheme URI: http:\/\/www.codexworld.com\r\nAuthor: CodexWorld\r\nAuthor URI: http:\/\/www.codexworld.com\r\nDescription: The theme for my awesome site\r\nVersion: 1.0\r\nLicense: GNU General Public License v2 or later\r\nLicense URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.html\r\nText Domain: my-first-theme\r\n\r\nThis theme, like WordPress, is licensed under the GPL.\r\nUse it to make something cool, have fun, and share what you've learned with others.\r\n*\/<\/span>\r\n<\/pre>\n<\/li>\n<li>Now, these details will automatically populate the theme details section in the <b>Appearance &raquo; Themes<\/b> section in the backend of the WordPress. FYI, the text on the text domain must match the exact match of the name of the folder (in this case my-first-theme).<\/li>\n<\/li>\n<\/ul>\n<h2>Components of a WordPress Theme<\/h2>\n<p>The components of a WordPress theme are composed of 3 files at the very least.<\/p>\n<ul class=\"bullet_disk_list\">\n<li>index.php<\/li>\n<li>style.css<\/li>\n<li>functions.php<\/li>\n<\/ul>\n<p>Basically, we need to create 6 files for our sample practice theme.<br \/>\n<b>style.css<\/b><br \/>\nThis file contains the codes that will add style to our HTML structure. It also holds the basic information about the theme which includes theme&#8217;s name, Author, Description, Version, Filter Tags, and license declared.<\/p>\n<p><b>index.php<\/b><br \/>\nThis file contains the codes that make up the structure of the WordPress theme. This is the main template file. It acts as the reserve template when other templates are unavailable. This is the file where the WordPress loop is added.<\/p>\n<p><b>header.php<\/b><br \/>\nThis file contains the elements of a website like a document type, language attribute, website title, charset, metas and various links and more. It also contains the theme&#8217;s &#8220;header&#8221; and &#8220;main menu&#8221;. This file must have the <code>wp_head()<\/code> action hook because it is used for WordPress functions and plugins. This file is called by the index.php file and other templates by using the <code>get_header()<\/code> function.<\/p>\n<p><b>footer.php<\/b><br \/>\nAs by name, this file contains the footer part of your theme which includes links, theme info, and footer widgets if any. This file is called by the index.php file and other templates by using the <code>get_footer()<\/code> function.<\/p>\n<p><b>comments.php<\/b><br \/>\nit usually outputs the comment form and individual comments. This file can be called by adding <code>comments_template()<\/code> on templates that display single post or page.<\/p>\n<p><b>functions.php<\/b><br \/>\nThis file is very important as it contains custom functionality. Here, you can add various functions such as registering menus, registering dynamic sidebars and queuing styles and scripts.<\/p>\n<h2>Theme Design<\/h2>\n<p>Let&#8217;s make the design simple so that we can understand it properly. A blog with a single sidebar on the right will be idle for that. Also, it is very easy to design and even easier to add responsive properties later.<\/p>\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/wordpress-theme-development-tutorial-design-codexworld.png\" alt=\"wordpress-theme-development-tutorial-design-codexworld\" width=\"318\" height=\"377\" class=\"alignnone size-full wp-image-2248\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/wordpress-theme-development-tutorial-design-codexworld.png 318w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/wordpress-theme-development-tutorial-design-codexworld-253x300.png 253w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/wordpress-theme-development-tutorial-design-codexworld-200x237.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/wordpress-theme-development-tutorial-design-codexworld-194x230.png 194w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/div>\n<p><b>Header.php<\/b> &#8211; Let&#8217;s first describe the content of the <code>header.php<\/code>. The first code to enter is:<\/p>\n<pre>&lt;!<span style=\"color:#bf4f24\">DOCTYPE<\/span> html>\r\n&lt;<span style=\"color:#bf4f24\">html<\/span> <span style=\"color: #0000BB\">&lt;?php&nbsp;language_attributes<\/span><span style=\"color: #007700\">(&nbsp;);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">head<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">meta<\/span> <span style=\"color:#bf4f24\">charset<\/span>=<span style=\"color:#0b6125\">\"<span style=\"color: #0000BB\">&lt;?php&nbsp;bloginfo<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'charset'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\"<\/span> \/>\r\n&lt;<span style=\"color:#bf4f24\">title<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;wp_title<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'|'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">true<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #DD0000\">'right'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">title<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">link<\/span> <span style=\"color:#bf4f24\">rel<\/span>=<span style=\"color:#0b6125\">\"pingback\"<\/span> <span style=\"color:#bf4f24\">href<\/span>=<span style=\"color:#0b6125\">\"<span style=\"color: #0000BB\">&lt;?php&nbsp;bloginfo<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'pingback_url'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\"<\/span> \/>\r\n<span style=\"color: #0000BB\">&lt;?php&nbsp;wp_head<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\r\n&lt;\/<span style=\"color:#bf4f24\">head<\/span>>\r\n<\/pre>\n<p>Always make sure to add <code>wp_head();<\/code> just before the closing &lt;\/<span style=\"color:#bf4f24\">head<\/span>>. That action hook is needed to add and modify the contents of the <code>header.php<\/code>.<\/p>\n<p>After the &lt;<span style=\"color:#bf4f24\">head<\/span>> codes, the next part is the header where you will display site name and site description.<\/p>\n<p>Note that the terms &lt;<span style=\"color:#bf4f24\">head<\/span>> and Header are different things. The &lt;<span style=\"color:#bf4f24\">head<\/span>> is a part of the HTML document that is not visible on the browser and handles the site&#8217;s Title, Favicon, Meta, Stylesheets, Scripts and a lot more. The header is the part of a theme that is displayed at the very top where the Name and Description of the website are usually shown. It may also show a custom header image but that&#8217;s for another tutorial. For now, we&#8217;ll focus on the very basics of creating a WordPress theme.<\/p>\n<p>Now, we add container tag and opening body. Then we add the header title and description.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">body<\/span> <span style=\"color: #0000BB\">&lt;?php&nbsp;body_class<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"container\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"header\"<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"header-info-wrap\"<\/span>>\r\n            &lt;<span style=\"color:#bf4f24\">h1<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"site-title\"<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;bloginfo<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'name'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">h1<\/span>>\r\n            &lt;<span style=\"color:#bf4f24\">h4<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"site-description\"<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;bloginfo<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'description'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">h4<\/span>>\r\n        &lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<\/pre>\n<p><b>Now add The Menu on the <code>header.php<\/code><\/b><\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">nav<\/span> <span style=\"color:#bf4f24\">id<\/span> <span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"nav\"<\/span>>\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #0000BB\">&lt;?php&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wp_nav_menu<\/span><span style=\"color: #007700\">(&nbsp;array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'theme_location'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'menu-primary'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'container'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">false<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'fallback_cb'&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'wp_page_menu'&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;);\r\n<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\r\n&lt;\/<span style=\"color:#bf4f24\">nav<\/span>>\r\n<\/pre>\n<h2>The WordPress Loop<\/h2>\n<p>The WordPress loop is responsible for showing the website&#8217;s content Posts and Pages.<\/p>\n<pre><span style=\"color: #0000BB\">&lt;?php&nbsp;get_header<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;\r\n<br \/>&lt;?php&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">have_posts<\/span><span style=\"color: #007700\">()&nbsp;)&nbsp;:&nbsp;while&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">have_posts<\/span><span style=\"color: #007700\">()&nbsp;)&nbsp;:&nbsp;<\/span><span style=\"color: #0000BB\">the_post<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;\r\n<br \/><\/span>\u00a0\u00a0\u00a0\u00a0&lt;<span style=\"color:#bf4f24\">div<\/span>\u00a0<span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"post-<span style=\"color: #0000BB\">&lt;?php&nbsp;the_ID<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\"<\/span>&nbsp;<span style=\"color: #0000BB\">&lt;?php&nbsp;post_class<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&gt;<br \/>        &lt;<span style=\"color:#bf4f24\">h1<\/span>>\r\n            &lt;<span style=\"color:#bf4f24\">a<\/span> <span style=\"color:#bf4f24\">href<\/span>=<span style=\"color:#0b6125\">\"<span style=\"color: #0000BB\">&lt;?php&nbsp;the&nbsp;permalink<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\"<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;the_title<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">a<\/span>>\r\n        &lt;\/<span style=\"color:#bf4f24\">h1<\/span>><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #0000BB\">    &lt;?php&nbsp;the_content<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<br \/><\/span>\u00a0\u00a0\u00a0\u00a0&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<br \/><span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">endwhile;&nbsp;else:&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;\r\n<br \/><\/span>\u00a0\u00a0\u00a0\u00a0&lt;<span style=\"color:#bf4f24\">h2<\/span>>\u00a0Post\u00a0or\u00a0Page\u00a0not\u00a0Found!\u00a0&lt;\/<span style=\"color:#bf4f24\">h2<\/span>>\r\n<br \/><span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">endif;&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span><\/pre>\n<h2>The Post Navigation<\/h2>\n<p>This displays the &#8220;Older Posts&#8221; and &#8220;Newer Posts&#8221; links.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"bottom-navi\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">div<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;next_posts_link<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'&amp;laquo;&nbsp;Older&nbsp;posts'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">div<\/span>><span style=\"color: #0000BB\">&lt;?php&nbsp;previous_posts_link<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'Newer&nbsp;posts&nbsp;&amp;raquo;'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<\/pre>\n<p>So, now we have the header, menu, and content. Let&#8217;s move on to the sidebar that contains the widgets.<\/p>\n<h2>Configuring the Sidebar Widget<\/h2>\n<p><b>Register the Dynamic Sidebar<\/b><br \/>\nPlace the following code in the <code>functions.php<\/code> file:<\/p>\n<pre><span style=\"color: #0000BB\">&lt;?php<br \/>&nbsp;&nbsp;&nbsp;&nbsp;register_sidebar<\/span><span style=\"color: #007700\">(array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'name'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'sidebar'&nbsp;<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'id'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'sidebar_widgets'&nbsp;<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'before_widget'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;div&nbsp;id=\"%1$s\"&gt;'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'after_widget'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;\/div&gt;'&nbsp;<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'before_title'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;h4&gt;'&nbsp;<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'after_title'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;\/h4&gt;'&nbsp;<\/span><span style=\"color: #007700\">,&nbsp;)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/><\/span><span style=\"color: #0000BB\">?&gt;<\/span><\/pre>\n<p><b>Display the Widgets on the Sidebar<\/b><br \/>\nAdd this code in the <code>index.php<\/code> file:<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"sidebar\"<\/span> >\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">is_active_sidebar<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'sidebar_widgets'&nbsp;&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;)&nbsp;:&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\r\n        &lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"sidebar-widgets-wrap\"<\/span>>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #0000BB\">&lt;?php&nbsp;dynamic_sidebar<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'sidebar_widgets'&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\r\n        &lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">endif;&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>\r\n&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<\/pre>\n<h2>WordPress CSS Contents<\/h2>\n<p>The style sheet is important because it contains vital info about the theme like theme name, theme description, theme version and the theme author; also it dictates the looks of the theme.<\/p>\n<p><b>CSS Reset<\/b><br \/>\nThis ensures the consistency of your website in different browsers. <\/p>\n<pre><span style=\"color:#5a525f;font-style:italic\">\/* RESET *\/<\/span>\r\n<span style=\"color:#bf4f24\">html<\/span>,<span style=\"color:#bf4f24\">body<\/span>,<span style=\"color:#bf4f24\">h1<\/span>,<span style=\"color:#bf4f24\">h2<\/span>,<span style=\"color:#bf4f24\">h3<\/span>,<span style=\"color:#bf4f24\">h4<\/span>,<span style=\"color:#bf4f24\">h5<\/span>,<span style=\"color:#bf4f24\">h6<\/span>,<span style=\"color:#bf4f24\">p<\/span>,<span style=\"color:#bf4f24\">img<\/span>,<span style=\"color:#bf4f24\">ul<\/span>,<span style=\"color:#bf4f24\">ol<\/span>,<span style=\"color:#bf4f24\">li<\/span>,<span style=\"color:#bf4f24\">form<\/span>,<span style=\"color:#bf4f24\">fieldset<\/span> {\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    <span style=\"color:#691c97\">margin<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">list-style<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>:\r\n}\r\n<\/pre>\n<p><b>Theme Design<\/b><br \/>\nAfter the CSS Reset you can now add the CSS codes to alter your theme&#8217;s appearance.<br \/>\nThere are too many to list them all here but a good practice (in my opinion) is to start with the containers like the <code>body<\/code> and other major wrappers. In our sample theme, these are the <code>#container<\/code>, <code>#header<\/code>, <code>#content<\/code>, <code>#sidebar<\/code> and so on.<\/p>\n<pre><span style=\"color:#bf4f24\">body<\/span> {\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#333<\/span>;\r\n    <span style=\"color:#691c97\">font<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">normal<\/span> <span style=\"color:#811f24;font-weight:700\">13<span style=\"color:#794938\">px<\/span><\/span>\/<span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">arial<\/span>, <span style=\"color:#b4371f\">sans-serif<\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">#container<\/span> {\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">960<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#FFF<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#000<\/span>;\r\n    <span style=\"color:#691c97\">margin<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">auto<\/span> <span style=\"color:#811f24;font-weight:700\">30<span style=\"color:#794938\">px<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">h1<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">28<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h2<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">24<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h3<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h4<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">18<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h5<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">14<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h6<\/span>{<span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">12<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">h1<\/span>, <span style=\"color:#bf4f24\">h2<\/span>, <span style=\"color:#bf4f24\">h3<\/span>, <span style=\"color:#bf4f24\">h4<\/span>, <span style=\"color:#bf4f24\">h5<\/span>, <span style=\"color:#bf4f24\">h6<\/span> {\r\n    <span style=\"color:#691c97\">clear<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">both<\/span>;\r\n    <span style=\"color:#691c97\">line-height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<\/span>;\r\n}\r\n<\/pre>\n<p><b>Adding the Stylesheet<\/b><br \/>\nNow that you&#8217;ve created the <code>style.css<\/code> along with its contents, you&#8217;ll need to link it to your header template. The proper way to add your main stylesheet (<code>style.css<\/code>) is to add this code in your <code>functions.php<\/code>.<\/p>\n<pre><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">practice_theme_enqueue_styles<\/span><span style=\"color: #007700\">()&nbsp;{\r\n<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">wp_enqueue_style<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'style-main'&nbsp;<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">get_stylesheet_uri<\/span><span style=\"color: #007700\">(),&nbsp;array()&nbsp;);\r\n<br \/>}\r\n<br \/><\/span><span style=\"color: #0000BB\">add_action<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'wp_enqueue_scripts'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #DD0000\">'practice_theme_enqueue_styles'&nbsp;<\/span><span style=\"color: #007700\">);<\/span><\/pre>\n<p>Now, your theme is ready to use. Enjoy and if you face any difficulty please let me know through comments. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to the WordPress Codex: &#8220;A WordPress theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog.&#8221; In simple words, a theme is <\/p>\n","protected":false},"author":9,"featured_media":2253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[268,25],"class_list":["post-2246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-theme","tag-wordpress","cat-5-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Beginner&#039;s Guide to Developing a WordPress Theme - CodexWorld<\/title>\n<meta name=\"description\" content=\"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Beginner&#039;s Guide to Developing a WordPress Theme - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-20T18:58:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-20T19:57:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sarah Clarke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sarah Clarke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/\"},\"author\":{\"name\":\"Sarah Clarke\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/2e78718c93e457703910e4c2eb59e4cb\"},\"headline\":\"Beginner&#8217;s Guide to Developing a WordPress Theme\",\"datePublished\":\"2017-03-20T18:58:22+00:00\",\"dateModified\":\"2017-03-20T19:57:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/\"},\"wordCount\":1034,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/beginners-guide-to-developing-wordpress-theme-codexworld.png\",\"keywords\":[\"Theme\",\"WordPress\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/\",\"name\":\"Beginner's Guide to Developing a WordPress Theme - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/beginners-guide-to-developing-wordpress-theme-codexworld.png\",\"datePublished\":\"2017-03-20T18:58:22+00:00\",\"dateModified\":\"2017-03-20T19:57:05+00:00\",\"description\":\"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/beginners-guide-to-developing-wordpress-theme-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/beginners-guide-to-developing-wordpress-theme-codexworld.png\",\"width\":1200,\"height\":675,\"caption\":\"beginners-guide-to-developing-wordpress-theme-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/wordpress-theme-development-tutorial-for-beginners\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Beginner&#8217;s Guide to Developing a WordPress Theme\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/2e78718c93e457703910e4c2eb59e4cb\",\"name\":\"Sarah Clarke\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g\",\"caption\":\"Sarah Clarke\"},\"description\":\"Sarah Clarke is an experienced WordPress Developer, working at WordSuccor Ltd. She is expert in WordPress Theme Development and has a team of expert developers to assist her in every project.\",\"sameAs\":[\"https:\\\/\\\/www.wordsuccor.com\\\/\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/sarahclarkecodexworld\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Beginner's Guide to Developing a WordPress Theme - CodexWorld","description":"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/","og_locale":"en_US","og_type":"article","og_title":"Beginner's Guide to Developing a WordPress Theme - CodexWorld","og_description":"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.","og_url":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2017-03-20T18:58:22+00:00","article_modified_time":"2017-03-20T19:57:05+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","type":"image\/png"}],"author":"Sarah Clarke","twitter_card":"summary_large_image","twitter_creator":"@codexworldweb","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"Sarah Clarke","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/"},"author":{"name":"Sarah Clarke","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/2e78718c93e457703910e4c2eb59e4cb"},"headline":"Beginner&#8217;s Guide to Developing a WordPress Theme","datePublished":"2017-03-20T18:58:22+00:00","dateModified":"2017-03-20T19:57:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/"},"wordCount":1034,"commentCount":2,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","keywords":["Theme","WordPress"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/","url":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/","name":"Beginner's Guide to Developing a WordPress Theme - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","datePublished":"2017-03-20T18:58:22+00:00","dateModified":"2017-03-20T19:57:05+00:00","description":"WordPress theme development tutorial - Learn how to create a WordPress theme from scratch. This tutorial will help you build the simplest theme in WordPress.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","width":1200,"height":675,"caption":"beginners-guide-to-developing-wordpress-theme-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/wordpress-theme-development-tutorial-for-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Beginner&#8217;s Guide to Developing a WordPress Theme"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/2e78718c93e457703910e4c2eb59e4cb","name":"Sarah Clarke","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/378b3c9e83d80b6af79250410c754966ebf09612f35249e5a4cddbc465ebb70c?s=96&r=g","caption":"Sarah Clarke"},"description":"Sarah Clarke is an experienced WordPress Developer, working at WordSuccor Ltd. She is expert in WordPress Theme Development and has a team of expert developers to assist her in every project.","sameAs":["https:\/\/www.wordsuccor.com\/"],"url":"https:\/\/www.codexworld.com\/author\/sarahclarkecodexworld\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/03\/beginners-guide-to-developing-wordpress-theme-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-Ae","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=2246"}],"version-history":[{"count":4,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2246\/revisions"}],"predecessor-version":[{"id":2252,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2246\/revisions\/2252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/2253"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=2246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=2246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=2246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}