{"id":241,"date":"2018-12-30T16:39:56","date_gmt":"2018-12-30T16:39:56","guid":{"rendered":"http:\/\/localhost\/sov03\/?p=241"},"modified":"2020-11-06T02:19:03","modified_gmt":"2020-11-06T02:19:03","slug":"wp01-building-a-custom-theme","status":"publish","type":"post","link":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/","title":{"rendered":"WP01 &#8211; Building a Custom Theme"},"content":{"rendered":"<p>This series will focus on building a theme in WordPress (WP).&nbsp; It is based on notes taken while building this websites theme from scratch. While requirements for building themes differ across the various Web Content Management Systems (CMS), many of the principles outlined here are used by other popular content management systems also.<\/p>\n<p>WP comes with a few starter themes, and there are thousands of themes available for download on <a href=\"https:\/\/WordPress.org\"><u>WordPress.org<\/u><\/a>. When your needs extend beyond what any pre-existing <a href=\"https:\/\/wordpress.org\/themes\/\">themes<\/a> or&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/\">plugins<\/a> provide, you\u2019ll need to either customize an existing theme, or build a new theme from scratch.<\/p>\n<p>Building a theme from scratch has many advantages:<\/p>\n<ul>\n<li>It enables \u201clean and mean\u201d web development by letting you be selective about what is added.<\/li>\n<li>It helps to improve your understanding of how the CMS works.<\/li>\n<li>And promotes unique branding and design flexibility.<\/li>\n<\/ul>\n<p>If you decide to take the plunge and build your own WP theme, there are many excellent <a href=\"https:\/\/developer.wordpress.org\/themes\/getting-started\/\">getting started<\/a> aids available. This section will try to sift these down to some basic requirements. Before doing anything in WP, it helps to first go through the <a href=\"\/sov02\/wp02-before-you-begin\/\">standard requirements<\/a> for building any website. Also, you may want to check out these quick step pages.<\/p>\n<ul>\n<li><a href=\"http:\/\/localhost:8888\/sov02\/wordpress101\/\">WordPress101<\/a><\/li>\n<li><a href=\"http:\/\/localhost:8888\/sov02\/wp-custom-themes01\/\">WP-Custom-Themes01<\/a><\/li>\n<li><a href=\"http:\/\/localhost:8888\/sov02\/wp-child-themes01\/\">WP-Child-Themes01<\/a><\/li>\n<\/ul>\n\n\n<p class=\"has-text-align-right\"><a href=\"\/sov02\/wp02-before-you-begin\/\">Next: Before You Begin >><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This series will focus on building a theme in WordPress (WP).&nbsp; It is based on notes taken while building this websites theme from scratch. While requirements for building themes differ across the various Web Content Management Systems (CMS), many of the principles outlined here are used by other popular content management systems also. WP comes [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[16,30,31],"class_list":["post-241","post","type-post","status-publish","format-standard","hentry","category-web-cms","tag-cms","tag-web-cms","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WP01 - Building a Custom Theme - s-oneill.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WP01 - Building a Custom Theme - s-oneill.com\" \/>\n<meta property=\"og:description\" content=\"This series will focus on building a theme in WordPress (WP).&nbsp; It is based on notes taken while building this websites theme from scratch. While requirements for building themes differ across the various Web Content Management Systems (CMS), many of the principles outlined here are used by other popular content management systems also. WP comes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\" \/>\n<meta property=\"og:site_name\" content=\"s-oneill.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-30T16:39:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-06T02:19:03+00:00\" \/>\n<meta name=\"author\" content=\"sean o\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sean o\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\"},\"author\":{\"name\":\"sean o\",\"@id\":\"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a\"},\"headline\":\"WP01 &#8211; Building a Custom Theme\",\"datePublished\":\"2018-12-30T16:39:56+00:00\",\"dateModified\":\"2020-11-06T02:19:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\"},\"wordCount\":219,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a\"},\"keywords\":[\"CMS\",\"Web CMS\",\"Wordpress\"],\"articleSection\":[\"Web CMS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\",\"url\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\",\"name\":\"WP01 - Building a Custom Theme - s-oneill.com\",\"isPartOf\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/#website\"},\"datePublished\":\"2018-12-30T16:39:56+00:00\",\"dateModified\":\"2020-11-06T02:19:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/s-oneill.com\/sov02\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WP01 &#8211; Building a Custom Theme\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/s-oneill.com\/sov02\/#website\",\"url\":\"https:\/\/s-oneill.com\/sov02\/\",\"name\":\"s-oneill.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/s-oneill.com\/sov02\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a\",\"name\":\"sean o\",\"logo\":{\"@id\":\"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/image\/\"},\"description\":\"Web dev over 15 years.\",\"sameAs\":[\"http:\/\/s-oneill.com\"],\"url\":\"https:\/\/s-oneill.com\/sov02\/author\/s-oneill\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WP01 - Building a Custom Theme - s-oneill.com","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:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/","og_locale":"en_US","og_type":"article","og_title":"WP01 - Building a Custom Theme - s-oneill.com","og_description":"This series will focus on building a theme in WordPress (WP).&nbsp; It is based on notes taken while building this websites theme from scratch. While requirements for building themes differ across the various Web Content Management Systems (CMS), many of the principles outlined here are used by other popular content management systems also. WP comes [&hellip;]","og_url":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/","og_site_name":"s-oneill.com","article_published_time":"2018-12-30T16:39:56+00:00","article_modified_time":"2020-11-06T02:19:03+00:00","author":"sean o","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sean o","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#article","isPartOf":{"@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/"},"author":{"name":"sean o","@id":"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a"},"headline":"WP01 &#8211; Building a Custom Theme","datePublished":"2018-12-30T16:39:56+00:00","dateModified":"2020-11-06T02:19:03+00:00","mainEntityOfPage":{"@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/"},"wordCount":219,"commentCount":0,"publisher":{"@id":"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a"},"keywords":["CMS","Web CMS","Wordpress"],"articleSection":["Web CMS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/","url":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/","name":"WP01 - Building a Custom Theme - s-oneill.com","isPartOf":{"@id":"https:\/\/s-oneill.com\/sov02\/#website"},"datePublished":"2018-12-30T16:39:56+00:00","dateModified":"2020-11-06T02:19:03+00:00","breadcrumb":{"@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/s-oneill.com\/sov02\/wp01-building-a-custom-theme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/s-oneill.com\/sov02\/"},{"@type":"ListItem","position":2,"name":"WP01 &#8211; Building a Custom Theme"}]},{"@type":"WebSite","@id":"https:\/\/s-oneill.com\/sov02\/#website","url":"https:\/\/s-oneill.com\/sov02\/","name":"s-oneill.com","description":"","publisher":{"@id":"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/s-oneill.com\/sov02\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/a9217b5797251a243dfd504d7ad7d00a","name":"sean o","logo":{"@id":"https:\/\/s-oneill.com\/sov02\/#\/schema\/person\/image\/"},"description":"Web dev over 15 years.","sameAs":["http:\/\/s-oneill.com"],"url":"https:\/\/s-oneill.com\/sov02\/author\/s-oneill\/"}]}},"_links":{"self":[{"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":3,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/posts\/241\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/s-oneill.com\/sov02\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}