{"id":403,"date":"2017-03-06T12:26:47","date_gmt":"2017-03-06T12:26:47","guid":{"rendered":"https:\/\/www.vibidsoft.com\/blog\/?p=403"},"modified":"2025-04-18T11:01:13","modified_gmt":"2025-04-18T11:01:13","slug":"how-to-build-a-custom-wordpress-theme-from-scratch","status":"publish","type":"post","link":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/","title":{"rendered":"How to Build a Custom WordPress Theme from Scratch"},"content":{"rendered":"<h4>There are around 12 core files. Here is Overview of the main files you will be working with:<\/h4>\n<p>\u2022 Header.php &#8211; Contains everything you\u2019d want to appear at the top of your site.<br \/>\n\u2022 Index.php \u2013 The core file that load your theme, also act as the homepage.<br \/>\n\u2022 Functions.php \u2013 A file that can be used to configure the wordpress core,<br \/>\nWithout editing core files.<br \/>\n\u2022 Sidebar.php \u2013 Contains everything you\u2019d want to appear in sidebar.<br \/>\n\u2022 Footer.php \u2013 Contains everything you\u2019d want to appear at the bottom of your site.<br \/>\n\u2022 Archive.php \u2013 The template file used when viewing categories, dates, posts by author,etc.<br \/>\n\u2022 Single.php \u2013 The template file used when viewing the individual post.<br \/>\n\u2022 Comments.php \u2013 Called at the bottom of single.php file to enable the comments section.<br \/>\n\u2022 Page.php \u2013 Similar to single.php<br \/>\n\u2022 Search.php \u2013 The template file used to search display search results.<br \/>\n\u2022 404.php \u2013 The template file that display when a 404 error occurs.<br \/>\n\u2022 Style.css &#8211; All the styling goes here.<\/p>\n<p>Each of these files contains series of php template tag. By using these tags we can insert dynamic content.<\/p>\n<h4>\u2022 Configuring the stylesheet<\/h4>\n<p>All the details of a WordPress theme are contained within the stylesheet. At the top of your style.css add the following code.<\/p>\n<pre>\/*\nTheme Name: Vibidsoft\nTheme URI: http:\/\/www.vibidsoft.in\/\nDescription: Vibidsoft WordPress theme\nVersion: 1\nAuthor: Vibidsoft\nAuthor URI: http:\/\/www.vibidsoft.in\/\t\t\n*\/\n<\/pre>\n<h4>index.php<\/h4>\n<h5>Open the index.php, add this piece of code and save the file:<\/h5>\n<pre>&lt;?php get_header(); ?&gt;\n\n&lt;div id=\"container\"&gt;\n\n  &lt;?php if(have_posts()) : ?&gt;&lt;?php while(have_posts()) : the_post(); ?&gt;\n\n     &lt;div class=\"post\" id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n\n&lt;h2&gt;&lt;a href=\"&lt;?php the_permalink(); ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n          &lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n\n&lt;div class=\"entry\"&gt;\n\n &lt;?php the_content(); ?&gt;\n\n&lt;p class=\"postmetadata\"&gt;\n&lt;?php _e('Filed under&amp;#58;'); ?&gt; &lt;?php the_category(', ') ?&gt; &lt;?php _e('by'); ?&gt; \n&lt;?php  the_author(); ?&gt;&lt;br \/&gt;\n&lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt; \n&lt;?php edit_post_link('Edit', ' &amp;#124; ', ''); ?&gt;\n&lt;\/p&gt;\n\n&lt;\/div&gt;\n\n&lt;\/div&gt;\n\n&lt;?php endwhile; ?&gt;\n\n&lt;div class=\"navigation\"&gt;\n&lt;?php posts_nav_link(); ?&gt;\n&lt;\/div&gt;\n\n\n&lt;?php endif; ?&gt;\n\n&lt;\/div&gt;\n\n&lt;?php get_sidebar(); ?&gt;\n\n&lt;?php get_footer(); ?&gt;<\/pre>\n<p>The index-file now contains the code that calls to the header, sidebar and footer template files<\/p>\n<h4>header.php<\/h4>\n<h5>Open the header.php, add this piece of code and save the file:<\/h5>\n<pre>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;\n&lt;head profile=\"http:\/\/gmpg.org\/xfn\/11\"&gt;\n\n     &lt;title&gt;&lt;?php bloginfo('name'); ?&gt;&lt;?php wp_title(); ?&gt;&lt;\/title&gt;\n\n     &lt;meta http-equiv=\"Content-Type\" content=\"&lt;?php bloginfo('html_type'); ?&gt;; \n     charset=&lt;?php bloginfo('charset'); ?&gt;\" \/&gt;\t\n     &lt;meta name=\"generator\" content=\"WordPress &lt;?php bloginfo('version'); ?&gt;\" \/&gt; \n     &lt;!-- leave this for stats please --&gt;\n\n     &lt;link rel=\"stylesheet\" href=\"&lt;?php bloginfo('stylesheet_url'); ?&gt;\" \n     type=\"text\/css\" media=\"screen\" \/&gt;\n\n     &lt;?php wp_get_archives('type=monthly&amp;format=link'); ?&gt;\n     &lt;?php \/\/comments_popup_script(); \/\/ off by default ?&gt;\n     &lt;?php wp_head(); ?&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;div id=\"wrapper\"&gt;\n\n&lt;div id=\"header\"&gt;\n\n&lt;h1&gt;&lt;a href=\"&lt;?php bloginfo('url'); ?&gt;\"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;\/a&gt;&lt;\/h1&gt;\n&lt;?php bloginfo('description'); ?&gt;\n\n&lt;\/div&gt;<\/pre>\n<h4>footer.php<\/h4>\n<h5>Open the footer.php, add this piece of code and save the file:<\/h5>\n<pre>&lt;div id=\"footer\"&gt;\n&lt;p&gt;\nCopyright 2007 &lt;a href=\"&lt;?php bloginfo('url'); ?&gt;\"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;\/a&gt;\n&lt;\/p&gt;\n&lt;\/div&gt;\n\n&lt;\/div&gt;&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<h4>sidebar.php<\/h4>\n<h5>Open the sidebar.php, add this piece of code and save the file:<\/h5>\n<pre>&lt;div class=\"sidebar\"&gt;\n\n&lt;ul&gt;\n\n&lt;?php if ( function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar() ) : else : ?&gt;\n\n\t&lt;?php wp_list_pages('depth=3&amp;title_li=&lt;h2&gt;Pages&lt;\/h2&gt;'); ?&gt;\n\n\t&lt;li&gt;&lt;h2&gt;&lt;?php _e('Categories'); ?&gt;&lt;\/h2&gt;\n&lt;ul&gt;\n&lt;?php wp_list_cats('sort_column=name&amp;optioncount=1&amp;hierarchical=0'); ?&gt;\n&lt;\/ul&gt;\n\t&lt;\/li&gt;\n\n\t&lt;li&gt;&lt;h2&gt;&lt;?php _e('Archives'); ?&gt;&lt;\/h2&gt;\n&lt;ul&gt;\n&lt;?php wp_get_archives('type=monthly'); ?&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n\n&lt;?php get_links_list(); ?&gt;\n\n&lt;?php endif; ?&gt;\n\n&lt;\/ul&gt;\n\n&lt;\/div&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There are around 12 core files. Here is Overview of the main files you will be working with: \u2022 Header.php &#8211; Contains everything you\u2019d want to appear at the top of your site. \u2022 Index.php \u2013 The core file that&#8230; <a class=\"more-link\" href=\"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[103,1,120],"tags":[111,134,73,121,122],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-php","category-web-development","category-wordpress","tag-custom-programming","tag-oursource-wordpress-projects","tag-website-development","tag-wordpress","tag-wordpress-theme-development"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"msvalidate.01\" content=\"036E0F31A1AF639BC177F212AE7F6F11\" \/>\n\t<meta name=\"p:domain_verify\" content=\"147eaec3c09ba1af5e17b00fa12931da\" \/>\n\t<meta name=\"yandex-verification\" content=\"71876bdda9be7264\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Vibidsoft | Website and Mobile Apps Development Company\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Build a Custom Wordpress Theme from Scratch\" \/>\n\t\t<meta property=\"og:description\" content=\"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-03-06T12:26:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-04-18T11:01:13+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vibidsoft\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@vibidsoft\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Build a Custom Wordpress Theme from Scratch\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@vibidsoft\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#article\",\"name\":\"Build a Custom Wordpress Theme from Scratch\",\"headline\":\"How to Build a Custom WordPress Theme from Scratch\",\"author\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/#organization\"},\"datePublished\":\"2017-03-06T12:26:47+00:00\",\"dateModified\":\"2025-04-18T11:01:13+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#webpage\"},\"articleSection\":\"php, Web Development, WordPress, custom programming, oursource wordpress projects, website development, Wordpress, Wordpress theme development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/category\\\/web-development\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#listItem\",\"name\":\"How to Build a Custom WordPress Theme from Scratch\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#listItem\",\"position\":3,\"name\":\"How to Build a Custom WordPress Theme from Scratch\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/#organization\",\"name\":\"Vibidsoft\",\"description\":\"Website and Mobile Apps Development Company\",\"url\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/vibidsoft\",\"https:\\\/\\\/twitter.com\\\/vibidsoft\",\"https:\\\/\\\/www.instagram.com\\\/vibidsoft\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/vibidsoft\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea2037b2dd9c4abf919b1cf4cde65236be12ca27859d814a951d782c5aabc5d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#webpage\",\"url\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/\",\"name\":\"Build a Custom Wordpress Theme from Scratch\",\"description\":\"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/how-to-build-a-custom-wordpress-theme-from-scratch\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2017-03-06T12:26:47+00:00\",\"dateModified\":\"2025-04-18T11:01:13+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/\",\"name\":\"Vibidsoft\",\"description\":\"Website and Mobile Apps Development Company\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vibidsoft.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<script type=\"text\/javascript\">\n\t\t\t(function(c,l,a,r,i,t,y){\n\t\t\tc[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;\n\t\t\tt.src=\"https:\/\/www.clarity.ms\/tag\/\"+i+\"?ref=aioseo\";y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n\t\t})(window, document, \"clarity\", \"script\", \"swoqyedkfz\");\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Build a Custom Wordpress Theme from Scratch","description":"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.","canonical_url":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"msvalidate.01":"036E0F31A1AF639BC177F212AE7F6F11","p:domain_verify":"147eaec3c09ba1af5e17b00fa12931da","yandex-verification":"71876bdda9be7264","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#article","name":"Build a Custom Wordpress Theme from Scratch","headline":"How to Build a Custom WordPress Theme from Scratch","author":{"@id":"https:\/\/www.vibidsoft.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.vibidsoft.com\/blog\/#organization"},"datePublished":"2017-03-06T12:26:47+00:00","dateModified":"2025-04-18T11:01:13+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#webpage"},"isPartOf":{"@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#webpage"},"articleSection":"php, Web Development, WordPress, custom programming, oursource wordpress projects, website development, Wordpress, Wordpress theme development"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.vibidsoft.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}},{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/#listItem","position":2,"name":"Web Development","item":"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#listItem","name":"How to Build a Custom WordPress Theme from Scratch"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#listItem","position":3,"name":"How to Build a Custom WordPress Theme from Scratch","previousItem":{"@type":"ListItem","@id":"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}}]},{"@type":"Organization","@id":"https:\/\/www.vibidsoft.com\/blog\/#organization","name":"Vibidsoft","description":"Website and Mobile Apps Development Company","url":"https:\/\/www.vibidsoft.com\/blog\/","sameAs":["https:\/\/www.facebook.com\/vibidsoft","https:\/\/twitter.com\/vibidsoft","https:\/\/www.instagram.com\/vibidsoft\/","https:\/\/www.linkedin.com\/company\/vibidsoft\/"]},{"@type":"Person","@id":"https:\/\/www.vibidsoft.com\/blog\/author\/admin\/#author","url":"https:\/\/www.vibidsoft.com\/blog\/author\/admin\/","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/bea2037b2dd9c4abf919b1cf4cde65236be12ca27859d814a951d782c5aabc5d?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#webpage","url":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/","name":"Build a Custom Wordpress Theme from Scratch","description":"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.vibidsoft.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/#breadcrumblist"},"author":{"@id":"https:\/\/www.vibidsoft.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.vibidsoft.com\/blog\/author\/admin\/#author"},"datePublished":"2017-03-06T12:26:47+00:00","dateModified":"2025-04-18T11:01:13+00:00"},{"@type":"WebSite","@id":"https:\/\/www.vibidsoft.com\/blog\/#website","url":"https:\/\/www.vibidsoft.com\/blog\/","name":"Vibidsoft","description":"Website and Mobile Apps Development Company","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.vibidsoft.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Vibidsoft | Website and Mobile Apps Development Company","og:type":"article","og:title":"Build a Custom Wordpress Theme from Scratch","og:description":"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.","og:url":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/","article:published_time":"2017-03-06T12:26:47+00:00","article:modified_time":"2025-04-18T11:01:13+00:00","article:publisher":"https:\/\/www.facebook.com\/vibidsoft","twitter:card":"summary_large_image","twitter:site":"@vibidsoft","twitter:title":"Build a Custom Wordpress Theme from Scratch","twitter:description":"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.","twitter:creator":"@vibidsoft"},"aioseo_meta_data":{"post_id":"403","title":"Build a Custom Wordpress Theme from Scratch","description":"Explore core WordPress theme files like header.php, index.php, and style.css to structure and style your custom theme with dynamic content.","keywords":[{"label":"Wordpress custom theme development","value":"Wordpress custom theme development"},{"label":"Wordpress themes","value":"Wordpress themes"},{"label":"PHP Development","value":"PHP Development"},{"label":"build custom wordpress theme","value":"build custom wordpress theme"},{"label":"wordpress custom theme from scratch","value":"wordpress custom theme from scratch"},{"label":"vibidsoft","value":"vibidsoft"},{"label":"Wordpress development company india","value":"Wordpress development company india"},{"label":"wordpress development company","value":"wordpress development company"}],"keyphrases":{"focus":{"keyphrase":"Wordpress Theme","score":85,"analysis":{"keyphraseInTitle":{"title":"Focus keyphrase in SEO title","description":"Focus keyphrase found in SEO title.","score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"title":"Focus keyphrase in meta description","description":"Focus keyphrase found in meta description.","score":9,"maxScore":9,"error":0},"keyphraseLength":{"title":"Focus keyphrase length","description":"Good job!","score":9,"maxScore":9,"error":0,"length":2},"keyphraseInURL":{"title":"Focus keyphrase in URL","description":"Focus keyphrase used in the URL.","score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"title":"Focus keyphrase in introduction","description":"Your Focus keyphrase does not appear in the first paragraph. Make sure the topic is clear immediately.","score":3,"maxScore":9,"error":1},"keyphraseInSubHeadings":[],"keyphraseInImageAlt":[]}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":false},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-09-20 14:56:22","updated":"2025-08-18 09:15:49","focus_keyword":"Wordpress Theme","additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.vibidsoft.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/\" title=\"Web Development\">Web Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Build a Custom WordPress Theme from Scratch\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.vibidsoft.com\/blog"},{"label":"Web Development","link":"https:\/\/www.vibidsoft.com\/blog\/category\/web-development\/"},{"label":"How to Build a Custom WordPress Theme from Scratch","link":"https:\/\/www.vibidsoft.com\/blog\/how-to-build-a-custom-wordpress-theme-from-scratch\/"}],"_links":{"self":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":40,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":2308,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions\/2308"}],"wp:attachment":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}