{"id":722,"date":"2015-08-16T20:42:16","date_gmt":"2015-08-16T20:42:16","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=722"},"modified":"2016-04-22T16:38:58","modified_gmt":"2016-04-22T16:38:58","slug":"create-drupal-custom-theme-from-scratch","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/","title":{"rendered":"Create Drupal custom theme from scratch"},"content":{"rendered":"<p>This tutorial helps you to create Drupal 7 custom theme. Following our step by step tutorial you would be able to build your own drupal theme. Also we have created a simple Drupal responsive theme based on our Drupal custom theme making tutorial. At the end of tutorial you can download the custom Drupal 7 theme and it will helps a lot to creating your own Drupal theme.<\/p>\n<p>Let&#8217;s start Drupal 7 custom theme making tutorial.<\/p>\n<h2>Step 1) Create Theme Directory:<\/h2>\n<p>Create a directory with the theme name (<code>mytheme\/<\/code>) into the <code>sites\/all\/themes\/<\/code> directory.<\/p>\n<h2>Step 2) Logo &#038; Screenshot:<\/h2>\n<p>Insert screenshot.png and logo.png image into the <code>mytheme\/<\/code> directory.<\/p>\n<ul>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;screenshot.png is used for displaying the theme screen view into the theme listing page at the administration panel.<\/li>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;logo.png is used for displaying the site logo.<\/li>\n<\/ul>\n<h2>Step 3) Create .info File:<\/h2>\n<p>Create a <code>.info<\/code> file into the <code>mytheme\/<\/code> directory and this file name should be the theme directory name with <code>.info<\/code> extension (for example <code>mytheme.info<\/code>).<\/p>\n<ul>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;The <code>.info<\/code> file is a static text file for defining and configuring a theme.<\/li>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Each line in the <code>.info<\/code> file is a key-value pair with the key on the left and the value on the right, with an &#8220;equals sign&#8221; between them (e.g. <code>name = mytheme<\/code>). Semicolons are used to comment out a line. <\/li>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Some keys use a special syntax with square brackets for building a list of associated values, referred to as an &#8220;array&#8221;.<\/li>\n<\/ul>\n<p>Define the following contents (key-value pair) into the <code>mytheme.info<\/code> file.<\/p>\n<p><b>Basic info:<\/b><\/p>\n<pre>name = MyTheme\r\ndescription = MyTheme is a custom Drupal 7 theme by &lt;<span style=\"color:#bf4f24\">a<\/span> <span style=\"color:#bf4f24\">href<\/span>=<span style=\"color:#0b6125\">\"https:\/\/www.codexworld.com\"<\/span> <span style=\"color:#bf4f24\">target<\/span>=<span style=\"color:#0b6125\">\"_blank\"<\/span>>CodexWorld&lt;\/<span style=\"color:#bf4f24\">a<\/span>>&lt;<span style=\"color:#bf4f24\">br<\/span>>For any support related to this theme, please send email at info@codexworld.com\r\nversion = 1.0\r\ncore = 7.x\r\nengine = phptemplate\r\n<\/pre>\n<p><b>Regions:<\/b><br \/>\nThe block regions available to the theme are defined by specifying the key of &#8216;regions&#8217; followed by the internal &#8220;machine&#8221; readable name in square brackets and the human readable name as the value, e.g., <code>regions[theRegion] = The region name<\/code>.<br \/>\nIn Drupal 7 the following regions are assumed by default.<\/p>\n<pre>regions[header] = Header\r\nregions[highlighted] = Highlighted\r\nregions[help] = Help\r\nregions[content] = Content\r\nregions[sidebar_first] = Left sidebar\r\nregions[sidebar_second] = Right sidebar\r\nregions[footer] = Footer\r\nregions[page_top] = Page Top\r\nregions[page_bottom] = Page Bottom\r\n<\/pre>\n<p>You can also add your custom regions like the below.<\/p>\n<pre>regions[slider] = Slider\r\n<\/pre>\n<p><b>Features:<\/b><br \/>\nUsing of &#8220;features&#8221; we are able to enable or disable the display of certain page elements. The &#8220;features&#8221; keys control are displayed on the theme&#8217;s configuration page as check boxes. You can locate these settings at <code>Administer > Appearance > Settings > MyTheme<\/code>.<\/p>\n<p>In Drupal 7 the following features are added by default.<\/p>\n<pre>features[] = logo\r\nfeatures[] = name\r\nfeatures[] = slogan\r\nfeatures[] = node_user_picture\r\nfeatures[] = comment_user_picture\r\nfeatures[] = comment_user_verification\r\nfeatures[] = favicon\r\nfeatures[] = main_menu\r\nfeatures[] = secondary_menu\r\n<\/pre>\n<p>You can add your custom features like the below.<\/p>\n<pre>features[] = slider\r\n<\/pre>\n<p><b>Theme settings:<\/b><br \/>\nYou can use theme settings to set the features by default checked or unchecked in your theme. Settings are defined like the following: <\/p>\n<pre>settings[toggle_\"feature\"] = 1  to check setting\r\nsettings[toggle_\"feature\"] = 0  to uncheck setting\r\n<\/pre>\n<p>Default settings of Drupal 7 are:<\/p>\n<pre>settings[toggle_logo] = 1\r\nsettings[toggle_name] = 1\r\nsettings[toggle_slogan] = 1\r\nsettings[toggle_node_user_picture] = 1\r\nsettings[toggle_comment_user_picture] = 1\r\nsettings[toggle_comment_user_verification] = 1\r\nsettings[toggle_favicon] = 1\r\nsettings[toggle_main_menu] = 1\r\nsettings[toggle_secondary_menu] = 1\r\n<\/pre>\n<p>You can add your custom settings like the below.<\/p>\n<pre>settings[toggle_slider] = 1\r\n<\/pre>\n<p>Also you can set default value into settings.<\/p>\n<pre>settings[contact_phone] = 8888888888\r\nsettings[contact_email] = contact@codexworld.com\r\n<\/pre>\n<p>In any of your theme\u2019s PHP files, you can retrieve the value of settings by calling:<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #0000BB\">&lt;?php&nbsp;$contact_phone&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">theme_get_setting<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'contact_phone'<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<br \/>&lt;?php&nbsp;$contact_email&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">theme_get_setting<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'contact_email'<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span><\/span><\/pre>\n<p><b>Stylesheets:<\/b><br \/>\nSpecify your theme&#8217;s css files, also you could add additional stylesheets by calling <code>drupal_add_css()<\/code> in <code>template.php<\/code> file.<\/p>\n<pre>stylesheets[all][] = css\/style.css\r\nstylesheets[all][] = css\/bootstrap.min.css\r\n<\/pre>\n<p><b>Scripts:<\/b><br \/>\nSpecify JavaScript files to include into your theme.<\/p>\n<pre>scripts[] = js\/jquery.js\r\nscripts[] = js\/bootstrap.min.js\r\n<\/pre>\n<p>Our demo custom drupal theme&#8217;s .info file will look like the below.<\/p>\n<pre>name = CodexWorld\r\ndescription = CodexWorld is a custom drupal 7 theme by &lt;<span style=\"color:#bf4f24\">a<\/span> <span style=\"color:#bf4f24\">href<\/span>=<span style=\"color:#0b6125\">\"http:\/\/www.codexworld.com\"<\/span> <span style=\"color:#bf4f24\">target<\/span>=<span style=\"color:#0b6125\">\"_blank\"<\/span>>codexworld.com&lt;\/<span style=\"color:#bf4f24\">a<\/span>>&lt;<span style=\"color:#bf4f24\">br<\/span>>For any support related to this theme, please send email at contact@codexworld.com\r\nversion = 1.0\r\ncore = 7.x\r\nengine = phptemplate\r\n\r\n; Regions\r\nregions[header] = Header\r\nregions[highlighted] = Highlighted\r\nregions[help] = Help\r\nregions[slider] = Slider\r\nregions[content] = Content\r\nregions[sidebar_first] = Left sidebar\r\nregions[sidebar_second] = Right sidebar\r\nregions[footer] = Footer\r\n\r\n; Features\r\nfeatures[] = logo\r\nfeatures[] = name\r\nfeatures[] = slogan\r\nfeatures[] = favicon\r\nfeatures[] = main_menu\r\nfeatures[] = secondary_menu\r\n\r\n; Settings\r\nsettings[slider_display]  = 1\r\nsettings[slider_image_one]   = sites\/all\/themes\/codexworld\/images\/slider-image.png\r\nsettings[slider_image_two]   = sites\/all\/themes\/codexworld\/images\/slider-image.png\r\nsettings[slider_image_three] = sites\/all\/themes\/codexworld\/images\/slider-image.png\r\nsettings[contact_phone] = 8888888888\r\nsettings[contact_email] = contact@codexworld.com\r\n\r\n; Stylesheets\r\nstylesheets[all][] = css\/style.css\r\nstylesheets[all][] = css\/bootstrap.min.css\r\n\r\n; Scripts\r\nscripts[] = js\/jquery.js\r\nscripts[] = js\/bootstrap.min.js<\/pre>\n<h2>Step 4) Template files (.tpl.php):<\/h2>\n<p>These templates files are used for the (x)HTML markup. Some of the common templates files are<\/p>\n<pre>html.tpl.php\r\npage.tpl.php\r\nregion.tpl.php\r\nblock.tpl.php\r\nnode.tpl.php\r\ncomment-wrapper.tpl.php\r\ncomment.tpl.php\r\n<\/pre>\n<p>Create <code>template\/<\/code> directory into the <code>mytheme<\/code> directory and insert all the template files into this directory.<\/p>\n<p><code>html.tpl.php<\/code> file will look like the below.<\/p>\n<pre>&lt;!<span style=\"color:#bf4f24\">DOCTYPE<\/span> html>\r\n&lt;<span style=\"color:#bf4f24\">html<\/span> <span style=\"color:#bf4f24\">lang<\/span>=<span style=\"color:#0b6125\">\"en\"<\/span>>\r\n\r\n&lt;<span style=\"color:#bf4f24\">head<\/span>>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$head<\/span>; ?><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">title<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$head_title<\/span>; ?><\/span>&lt;\/<span style=\"color:#bf4f24\">title<\/span>>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$styles<\/span>; ?><\/span>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$scripts<\/span>; ?><\/span>\r\n&lt;\/<span style=\"color:#bf4f24\">head<\/span>>\r\n\r\n&lt;<span style=\"color:#bf4f24\">body<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$classes<\/span>; ?><\/span>\"<\/span> <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$attributes<\/span>;?><\/span>>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$page_top<\/span>; ?><\/span>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$page<\/span>; ?><\/span>\r\n    <span style=\"background:rgba(111,139,186,0.15)\">&lt;?php <span style=\"color:#693a17\">print<\/span> <span style=\"color:#234a97\">$page_bottom<\/span>; ?><\/span>\r\n&lt;\/<span style=\"color:#bf4f24\">body<\/span>>\r\n\r\n&lt;\/<span style=\"color:#bf4f24\">html<\/span>>\r\n<\/pre>\n<p>In the <code>page.tpl.php<\/code>(use for all pages)\/<code>page\u2014front.tpl.php<\/code>(use only for front page) for logo ability use <code>$logo<\/code>, site title <code>drupal_get_title()<\/code>, theme setting variables value use <code>theme_get_setting('variable_name')<\/code> and print the regions use <code><span style=\"color: #000000\"><span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">print&nbsp;<\/span><span style=\"color: #0000BB\">render<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$page<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'region_name'<\/span><span style=\"color: #007700\">]);&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span><\/span><\/code><\/p>\n<h2>Step 5) template.php File:<\/h2>\n<p>Conditional logic, data processing of the output, custom functions, overriding theme functions or any other customization of the raw output should be done here.<\/p>\n<h2>Step 6) Additional Theme Settings:<\/h2>\n<p>If you want to create custom settings section, you  should need to alter the theme-specific settings form. Create <code>theme-settings.php<\/code> file into your theme directory and alter theme-specific settings form into the <code>hook_form_system_theme_settings_alter()<\/code> function. Drupal custom theme&#8217;s settings page would like the below.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #0000BB\">&lt;?php<br \/><\/span><span style=\"color: #FF8000\">\/**<br \/>Extra&nbsp;Theme&nbsp;settings<br \/>*\/<br \/><\/span><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">codexworld_form_system_theme_settings_alter<\/span><span style=\"color: #007700\">(&amp;<\/span><span style=\"color: #0000BB\">$form<\/span><span style=\"color: #007700\">,&nbsp;&amp;<\/span><span style=\"color: #0000BB\">$form_state<\/span><span style=\"color: #007700\">)&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$form<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'codexworld_settings'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#type'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'fieldset'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#title'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'CodexWorld&nbsp;Theme&nbsp;Settings'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#collapsible'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">False<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#collapsed'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">False<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$form<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'codexworld_settings'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'contact_info'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#type'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'fieldset'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#title'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'Contact&nbsp;Info'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#collapsible'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">True<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#collapsed'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">True<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$form<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'codexworld_settings'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'contact_info'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'contact_email'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#type'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'textfield'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#title'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'Contact&nbsp;email'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#default_value'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">theme_get_setting<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'contact_email'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#description'&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"Enter&nbsp;the&nbsp;contact&nbsp;email.\"<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$form<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'codexworld_settings'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'contact_info'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'contact_phone'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;array(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#type'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'textfield'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#title'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'Contact&nbsp;Phone'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#default_value'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">theme_get_setting<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'contact_phone'<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'#description'&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">t<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"Enter&nbsp;the&nbsp;contact&nbsp;phone&nbsp;number.\"<\/span><span style=\"color: #007700\">),<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/>}<\/span><\/span><\/pre>\n<h2>Step 7) Enable Your Theme:<\/h2>\n<p>Login into the admin panel. Go to the <code>admin\/appearance\/<\/code> and click on the <b>Enable and set default<\/b> link under your newly created theme from the <b>DISABLED THEMES<\/b> section.<\/p>\n<h2>Step 8) Add Content:<\/h2>\n<p>Create blocks with respective content and assign the blocks with the respective regions or go to the blocks listing page and assign with the respective regions from here.<\/p>\n<p><span class=\"glyphicon glyphicon-saved\" style=\"font-size:24px;color:#FB4314;\"><\/span>&nbsp;The above steps are enough for creating a Drupal custom theme.<\/p>\n<h2>Demo Theme &#8211; CodexWorld<\/h2>\n<p>Based on this tutorial we have created a Drupal custom theme named <b>CodexWorld<\/b>. You can download this theme from the below <i>Download Source Code<\/i> link.<\/p>\n<p>After download the codexworld theme extract into the <code>sites\/all\/themes\/<\/code> directory. Go to the <code>admin\/appearance\/<\/code> and enable the <b>CodexWorld<\/b> theme.<\/p>\n<p>Now follow the below steps for importing the demo content.<\/p>\n<ul>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;<b>Create Blocks:<\/b><br \/>\nGo to the <code>admin\/structure\/block\/<\/code> and do the following steps. <\/p>\n<ul>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Left sidebar content &#8211; Click on the &#8220;Add block&#8221; link. Enter the &#8220;Block description&#8221;, &#8220;Block body&#8221;, choose &#8220;Full HTML&#8221; from &#8220;Text format&#8221; and choose &#8220;Left sidebar&#8221; region under the &#8220;CodexWorld&#8221; theme from &#8220;REGION SETTINGS&#8221; section. You can find the block body content into the <code>codexworld\/blocks\/sidebar-content.html<\/code> file.<\/li>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Header slider content &#8211; This block content have some PHP code, so you need to Enable the &#8220;PHP filter&#8221; module from Modules section first. Click on the &#8220;Add block&#8221; link. Enter the &#8220;Block description&#8221;, &#8220;Block body&#8221;, choose &#8220;PHP Code&#8221; from &#8220;Text format&#8221; and choose &#8220;Left sidebar&#8221; region under the &#8220;CodexWorld&#8221; theme from REGION SETTINGS section. You can find the block content into the <code>codexworld\/blocks\/slider.php<\/code> file.<\/li>\n<\/ul>\n<\/li>\n<li><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;<b>Homepage Content:<\/b><br \/>\nGo to the <code>admin\/content\/<\/code> and click on the &#8220;Add content&#8221; link. Enter the &#8220;Title&#8221;, &#8220;Body&#8221;, choose &#8220;Full HTML&#8221; from &#8220;Text format&#8221;, enter the URL alias (homepage) at the &#8220;URL path settings&#8221; section, select &#8220;closed&#8221; option into the &#8220;Comment settings&#8221; section and Save. You can find the Body content into the <code>codexworld\/blocks\/homepage-content.html<\/code> file.<\/li>\n<\/ul>\n<p>Navigate to the <code>Configuration > SYSTEM > Site information<\/code>. Go to the <b>FRONT PAGE<\/b> section and enter the Homepage URL alias (homepage) into the &#8220;Default front page&#8221; field &#038; Save configuration.<\/p>\n<p><span class=\"glyphicon glyphicon-saved\" style=\"font-size:24px;color:#FB4314;\"><\/span>&nbsp;Well done! demo Drupal theme installation and configuration is successfully completed. Now you can check Drupal custom theme at your Homepage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial helps you to create Drupal 7 custom theme. Following our step by step tutorial you would be able to build your own drupal theme. Also we have created a simple Drupal responsive theme <\/p>\n","protected":false},"author":1,"featured_media":723,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[42,43],"class_list":["post-722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-drupal","tag-drupal","tag-drupal-theme","cat-11-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>Create Drupal custom theme from scratch - CodexWorld<\/title>\n<meta name=\"description\" content=\"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.\" \/>\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\/create-drupal-custom-theme-from-scratch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Drupal custom theme from scratch - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-16T20:42:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-22T16:38:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"390\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\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\\\/create-drupal-custom-theme-from-scratch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Create Drupal custom theme from scratch\",\"datePublished\":\"2015-08-16T20:42:16+00:00\",\"dateModified\":\"2016-04-22T16:38:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/\"},\"wordCount\":953,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/create-drupal-custom-theme-from-scratch-by-codexworld.png\",\"keywords\":[\"Drupal\",\"Drupal Theme\"],\"articleSection\":[\"Drupal\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/\",\"name\":\"Create Drupal custom theme from scratch - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/create-drupal-custom-theme-from-scratch-by-codexworld.png\",\"datePublished\":\"2015-08-16T20:42:16+00:00\",\"dateModified\":\"2016-04-22T16:38:58+00:00\",\"description\":\"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/create-drupal-custom-theme-from-scratch-by-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/create-drupal-custom-theme-from-scratch-by-codexworld.png\",\"width\":390,\"height\":400,\"caption\":\"create-drupal-custom-theme-from-scratch-by-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-drupal-custom-theme-from-scratch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Drupal custom theme from scratch\"}]},{\"@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\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Drupal custom theme from scratch - CodexWorld","description":"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.","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\/create-drupal-custom-theme-from-scratch\/","og_locale":"en_US","og_type":"article","og_title":"Create Drupal custom theme from scratch - CodexWorld","og_description":"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.","og_url":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2015-08-16T20:42:16+00:00","article_modified_time":"2016-04-22T16:38:58+00:00","og_image":[{"width":390,"height":400,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Create Drupal custom theme from scratch","datePublished":"2015-08-16T20:42:16+00:00","dateModified":"2016-04-22T16:38:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/"},"wordCount":953,"commentCount":5,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","keywords":["Drupal","Drupal Theme"],"articleSection":["Drupal"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/","url":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/","name":"Create Drupal custom theme from scratch - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","datePublished":"2015-08-16T20:42:16+00:00","dateModified":"2016-04-22T16:38:58+00:00","description":"Drupal 7 custom theme development tutorial - Learn how to make your own Drupal theme from scratch. Step by step tutorial on Drupal custom theme development for beginners.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","width":390,"height":400,"caption":"create-drupal-custom-theme-from-scratch-by-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/create-drupal-custom-theme-from-scratch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Create Drupal custom theme from scratch"}]},{"@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\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/08\/create-drupal-custom-theme-from-scratch-by-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-bE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/722","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=722"}],"version-history":[{"count":9,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/722\/revisions"}],"predecessor-version":[{"id":1440,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/722\/revisions\/1440"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/723"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}