{"id":331,"date":"2014-05-19T13:17:12","date_gmt":"2014-05-19T13:17:12","guid":{"rendered":"http:\/\/www.momizat.com\/theme\/goodnews-demo\/?p=331"},"modified":"2025-10-17T11:48:05","modified_gmt":"2025-10-17T06:18:05","slug":"wordpress-tutorial-how-to-create-a-wordpress-themes","status":"publish","type":"post","link":"https:\/\/phpyouth.com\/blog\/wordpress-tutorial-how-to-create-a-wordpress-themes\/","title":{"rendered":"Create A WordPress Themes"},"content":{"rendered":"<p>WordPress themes are the most used and popular blogging platform on the web. Its flexibility, usability, and customizability are why people regard WordPress highly. Another reason is WordPress&#8217;s huge array of themes; you can create almost anything, from online magazines to advanced e-commerce businesses. WordPress themes. You can either get themes for free or pay for them. Of course, you get what you pay for, yet don\u2019t be too eager to spend your money on something you might not even need. If you\u2019re just starting with WordPress, I suggest reading Choosing a WordPress Theme: Free or Premium? After that, you might consider whether you really want to pay for that premium theme. WordPress themes. If the answer is no, continue reading and check out these 80 professional, beautiful, and free WordPress themes from 2012, the best free themes that can be found!<\/p>\n<p>If you started with an HTML ( + CSS) website, you don\u2019t have to throw it all away when moving to WordPress. You can convert your HTML into WordPress and run your (now more powerful) website on the dynamic WordPress platform.<\/p>\n<p>Or maybe that\u2019s not the case. Perhaps you are just wondering how to convert a client\u2019s HTML design into a fully-fledged WordPress theme. Or maybe you would like to learn basic WordPress (+ PHP) programming from the more familiar HTML side.<\/p>\n<p>Whatever the reason you are here today, this WordPress tutorial will introduce you to the basics of creating a WordPress theme from HTML. So, get a code editor (I use and recommend <a title=\"Notepad++ Editor\" href=\"http:\/\/notepad-plus-plus.org\/\" target=\"_blank\" rel=\"noopener nofollow\">Notepad++<\/a>, and <a title=\"SublimeText Editor\" href=\"http:\/\/www.sublimetext.com\/\" target=\"_blank\" rel=\"noopener nofollow\">SublimeText<\/a> is another great option) and a browser ready, then follow this simple guide to the end.<\/p>\n<p>&nbsp;<\/p>\n<h3>Naming Your WordPress Theme<\/h3>\n<p>First things first, we have to give your theme a unique name, which isn\u2019t necessary if you\u2019re building a theme for your website only. Regardless, we need to name your theme to make it easily identifiable upon installation.<\/p>\n<p><strong>General assumptions at this point:<\/strong><\/p>\n<ul>\n<li>You have your index.html and CSS stylesheet ready. If you don\u2019t have these files, you can <a title=\"Download Sample Files\" href=\"http:\/\/www.wpexplorer.com\/wp-content\/uploads\/testtheme.zip\" target=\"_blank\" rel=\"noopener nofollow\">download mine<\/a> for illustration purposes<\/li>\n<li>You have a working WordPress installation with at least one theme, e.g., Twenty Fourteen<\/li>\n<li>You have already created a theme folder where you\u2019ll be saving your new WordPress theme<\/li>\n<\/ul>\n<p>Let\u2019s get back to naming your WordPress theme. Open your code editor and copy-paste the contents of your stylesheet into a new file and save it as <strong>style.css<\/strong> in your theme folder. Add the following information at the very top of the <strong>newly-created style.css<\/strong>:<\/p>\n<div id=\"highlighter_912627\" class=\"syntaxhighlighter \">\n<div class=\"lines\">\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\n<pre>\/*Theme Name: Your theme's name\nTheme URI: Your theme's URL\nDescription: A brief description of your theme\nVersion: 1.0 or any other version you want\nAuthor: Your name or WordPress.org's username\nAuthor URI: Your web address\nTags: Tags to locate your theme in the WordPress theme repository\n*\/<\/pre>\n<\/div>\n<div class=\"line alt1\"><strong>Do not leave out the (\/*\u2026*\/) comment tags. <\/strong>Save the changes. This info tells WordPress the name of your theme, the author, and complementary stuff like that. The important part is the theme\u2019s name, which allows you to choose and activate your theme via the WP dashboard.<\/div>\n<div class=\"line alt1\"><\/div>\n<\/div>\n<\/div>\n<h3>Breaking Up Your HTML Template into PHP Files<\/h3>\n<p><strong>This tutorial further assumes you have your HTML template arranged left to right: header, content, sidebar, footer. If you have a different design, you might need to play with the code a bit. It\u2019s fun and super easy.<\/strong><\/p>\n<p>The next step involves creating four PHP files. Using your code editor, create index.php, header.php, sidebar.php, and footer.php, and save them in your theme folder. All the files are empty at this point, so don\u2019t expect them to do anything. For illustration purposes, I am using the following index.html and CSS stylesheet files:<\/p>\n<p><strong>INDEX.HTML<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre>&lt;!DOCTYPE html&gt;  \n&lt;head&gt;\n        &lt;meta charset=\"UTF-8\"&gt;\n        &lt;title&gt;How To Convert HTML Template to WordPress Theme - WPExplorer&lt;\/title&gt;\n        &lt;link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"style.css\"\/&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;div id=\"wrap\"&gt;\n            &lt;header class=\"header\"&gt;\n                &lt;p&gt;This is header section. Put your logo and other details here.&lt;\/p&gt;\n            &lt;\/header&gt;&lt;!-- .header --&gt;\n            &lt;div class=\"content\"&gt;\n                &lt;p&gt;This is the main content area.&lt;\/p&gt;\n            &lt;\/div&gt;&lt;!-- .content --&gt;\n            &lt;div class=\"sidebar\"&gt;\n                &lt;p&gt;This is the side bar&lt;\/p&gt;\n            &lt;\/div&gt;&lt;!-- .sidebar --&gt;\n            &lt;footer class=\"footer\"&gt;\n                &lt;p&gt;And this is the footer.&lt;\/p&gt;\n            &lt;\/footer&gt;&lt;!-- .footer --&gt;\n        &lt;\/div&gt;&lt;!-- #wrap --&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>CSS STYLESHEET<\/strong><\/p>\n<div id=\"highlighter_618261\" class=\"syntaxhighlighter \">\n<div class=\"lines\">\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\n<pre>#wrap{margin: 0 auto; width:95%; margin-top:-10px; height:100%;}\n.header{width:99.8%; border:1px solid #999;height:135px;}\n.content{width:70%; border:1px solid #999;margin-top:5px;}\n.sidebar{float:right; margin-top:-54px;width:29%; border:1px solid #999;}\n.footer{width:99.8%;border:1px solid #999;margin-top:10px;}<\/pre>\n<\/div>\n<div class=\"line alt1\"><\/div>\n<\/div>\n<\/div>\n<p>You can grab both codes if you have nothing to work with. Just copy-paste them into your code editor, save them, create the four PHP files we just mentioned, and get ready for the next part. Open your newly-created (and empty) <strong>header.php<\/strong>. Log in to your existing WordPress installation, navigate to <strong>Appearance \u2013&gt; Editor, <\/strong>and open <strong>header.php<\/strong>. Copy all the code between the &lt;head&gt; tags and paste it into your header.php file. The following is the code I got from the header.php file in the Twenty Fourteen theme:<\/p>\n<div class=\"syntax-highlighter-wrap\">\n<div id=\"highlighter_465877\" class=\"syntaxhighlighter \">\n<div class=\"lines\">\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\n<pre>&lt;head&gt;\n    &lt;meta charset=\"&lt;?php bloginfo( 'charset' ); ?&gt;\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width\"&gt;\n    &lt;title&gt;&lt;?php wp_title( '|', true, 'right' ); ?&gt;&lt;\/title&gt;\n    &lt;link rel=\"profile\" href=\"http:\/\/gmpg.org\/xfn\/11\"&gt;\n    &lt;link rel=\"pingback\" href=\"&lt;?php bloginfo( 'pingback_url' ); ?&gt;\"&gt;\n    &lt;!--[if lt IE 9]&gt;\n    &lt;script src=\"&lt;?php echo get_template_directory_uri(); ?&gt;\/js\/html5.js\"&gt;&lt;\/script&gt;\n    &lt;![endif]--&gt;\n    &lt;?php wp_head(); ?&gt;\n&lt;\/head&gt;<\/pre>\n<\/div>\n<div class=\"line alt1\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Then open your <strong>index.html<\/strong> file and copy the header code (i.e., the code in the &lt;div class= \u201cheader\u201d&gt; section) to your header.php just below the &lt;head&gt; tags as shown below:<\/p>\n<div class=\"syntax-highlighter-wrap\">\n<div id=\"highlighter_943435\" class=\"syntaxhighlighter \">\n<div class=\"lines\">\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\n<pre>&lt;html&gt;\n    &lt;head&gt;\n        &lt;meta charset=\"&lt;?php bloginfo( 'charset' ); ?&gt;\"&gt;\n        &lt;meta name=\"viewport\" content=\"width=device-width\"&gt;\n        &lt;title&gt;&lt;?php wp_title( '|', true, 'right' ); ?&gt;&lt;\/title&gt;\n        &lt;link rel=\"profile\" href=\"http:\/\/gmpg.org\/xfn\/11\"&gt;\n        &lt;link rel=\"pingback\" href=\"&lt;?php bloginfo( 'pingback_url' ); ?&gt;\"&gt;\n        &lt;link rel=\"stylesheet\" href=\"&lt;?php bloginfo('stylesheet_url'); ?&gt;\" type=\"text\/css\" \/&gt;\n        &lt;!--[if lt IE 9]&gt;\n        &lt;script src=\"&lt;?php echo get_template_directory_uri(); ?&gt;\/js\/html5.js\"&gt;&lt;\/script&gt;\n        &lt;![endif]--&gt;\n        &lt;?php wp_head(); ?&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;header class=\"header\"&gt;\n        &lt;p&gt;This is header section. Put your logo and other details here.&lt;\/p&gt;\n    &lt;\/header&gt;<\/pre>\n<\/div>\n<div class=\"line alt1\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Then add\u2026<\/p>\n<div id=\"highlighter_251044\" class=\"syntaxhighlighter \">\n<div class=\"lines\">\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\n<pre>&lt;link rel=\"stylesheet\" href=\"&lt;?php bloginfo('stylesheet_url'); ?&gt;\" type=\"text\/css\" \/&gt;<\/pre>\n<\/div>\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\"><\/div>\n<div class=\"line alt1\">\u2026anywhere between the &lt;head&gt; tags in the header.php file to link your stylesheet. Remember also to put the &lt;html&gt; and &lt;body&gt; opening tags in the header.php as shown above. Save all changes.<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.hostg.xyz\/aff_c?offer_id=6&amp;aff_id=115521&amp;url_id=35&amp;file_id=1399\" target=\"_blank\" rel=\"noopener nofollow\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/media.go2speed.org\/brand\/files\/hostinger\/6\/EN-970x250.jpg?resize=970%2C250&#038;ssl=1\" width=\"970\" height=\"250\" border=\"0\" alt=\"\"><\/a><img decoding=\"async\" style=\"position: absolute; visibility: hidden;\" src=\"https:\/\/www.hostg.xyz\/aff_i?offer_id=6&amp;file_id=1399&amp;aff_id=115521&amp;url_id=35\" width=\"0\" height=\"0\" border=\"0\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress themes are the most used and popular blogging platform on the web. Its flexibility, usability, and customizability are why people regard WordPress highly. Another reason is WordPress&#8217;s huge array of themes; you can create almost anything, from online magazines to advanced e-commerce businesses. WordPress themes. You can either get themes for free or pay [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4366,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[55,59,63],"class_list":["post-331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-themes","tag-tutorial","tag-wordpress"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2014\/05\/How-to-Create-a-Custom-WordPress-Theme-e1475050552348.png?fit=900%2C468&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8zepR-5l","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":4580,"url":"https:\/\/phpyouth.com\/blog\/wordpress-tipton\/","url_meta":{"origin":331,"position":0},"title":"WordPress New Release 4.9 &#8220;Tipton&#8221;","author":"RK Jajoria","date":"November 16, 2017","format":false,"excerpt":"WELCOME TO WORDPRESS 4.9 Version 4.9 of WordPress, named \"Tipton\" in honor of jazz musician and band leader Billy Tipton, is available for download or update in your WordPress dashboard. New features in 4.9 will smooth your design workflow and keep you safe from coding errors. Major Customizer Improvements, Code\u2026","rel":"","context":"In &quot;Tutorial&quot;","block_context":{"text":"Tutorial","link":"https:\/\/phpyouth.com\/blog\/category\/tutorial\/"},"img":{"alt_text":"WordPress TIPTON 4.9","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/11\/TIPTON.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/11\/TIPTON.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/11\/TIPTON.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":5093,"url":"https:\/\/phpyouth.com\/blog\/wordpress-5-2-3-features\/","url_meta":{"origin":331,"position":1},"title":"What&#8217;s New in WordPress 5.2.3","author":"RK Jajoria","date":"September 6, 2019","format":false,"excerpt":"WordPress has released new updates, including important features for website owners. Let\u2019s explore what\u2019s new in WordPress version 5.2.3. 1. PHP Error Protection Firstly, This administrator-focused update will let you safely fix or manage fatal errors without requiring a developer. It features better handling of the so-called \u201cwhite screen of\u2026","rel":"","context":"In &quot;version&quot;","block_context":{"text":"version","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/version\/"},"img":{"alt_text":"WordPress 5.2.3","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/09\/WordPress-5.2.3.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/09\/WordPress-5.2.3.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/09\/WordPress-5.2.3.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":6364,"url":"https:\/\/phpyouth.com\/blog\/top-5-wordpress-page-builders\/","url_meta":{"origin":331,"position":2},"title":"Top 5 WordPress Page Builders to Elevate Your Website","author":"RK Jajoria","date":"November 27, 2022","format":false,"excerpt":"WordPress is the world\u2019s most popular content management system (CMS). It\u2019s free, easy to use, and perfect for small businesses starting their first website. Beginners often find it simple to learn web design basics and create great pages using the built-in WordPress page builder However, after learning the basics of\u2026","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"WordPress Page Builders to Elevate Your Website","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/WordPress-Page-Builders-to-Elevate-Your-Website.webp?fit=1100%2C650&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/WordPress-Page-Builders-to-Elevate-Your-Website.webp?fit=1100%2C650&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/WordPress-Page-Builders-to-Elevate-Your-Website.webp?fit=1100%2C650&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/WordPress-Page-Builders-to-Elevate-Your-Website.webp?fit=1100%2C650&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/WordPress-Page-Builders-to-Elevate-Your-Website.webp?fit=1100%2C650&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4447,"url":"https:\/\/phpyouth.com\/blog\/add-multiple-css-classes-in-wordpress\/","url_meta":{"origin":331,"position":3},"title":"How to Add Multiple CSS Classes in WordPress","author":"RK Jajoria","date":"March 27, 2019","format":"image","excerpt":"CSS plays an important role in UI\/UX Today, we will learn how to add multiple CSS classes using functions. This helps you design each WordPress post differently using specific classes. STEP I:- First, define the classes as an array in the functions.php file inside your\u00a0child-theme folder. It's very simple. For\u2026","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/08\/Add-multiple-css.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/08\/Add-multiple-css.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/08\/Add-multiple-css.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":4443,"url":"https:\/\/phpyouth.com\/blog\/4-vital-monthly-wordpress-maintenance-tasks\/","url_meta":{"origin":331,"position":4},"title":"4 Vital Monthly WordPress Maintenance Tasks","author":"RK Jajoria","date":"July 16, 2018","format":false,"excerpt":"Hello Friends, today we will learn about 4 Vital Monthly WordPress Maintenance tasks which we need to do regularly. But first, we need to understand why WordPress maintenance is important. We think that once our\u00a0 WordPress website is completed and live, our work is over, but that's not true. If\u2026","rel":"","context":"In &quot;Maintenance&quot;","block_context":{"text":"Maintenance","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/maintenance\/"},"img":{"alt_text":"wordpress maintenance","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-maintenance.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-maintenance.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-maintenance.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":4690,"url":"https:\/\/phpyouth.com\/blog\/increase-wordpress-memory-limit-using-php-ini\/","url_meta":{"origin":331,"position":5},"title":"Increase WordPress Memory Limit using php.ini","author":"RK Jajoria","date":"April 12, 2018","format":"image","excerpt":"If you want to Increase WordPress Memory Limit using php.ini, and you have access to your website\u2019s root directory, you can easily do this by editing the php.ini file. Simply add or update this line in your php.ini file to set the memory limit to 256MB: If you already have\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/phpyouth.com\/blog\/category\/tutorial\/php\/"},"img":{"alt_text":"memory_limit 256M","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media\/4366"}],"wp:attachment":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}