How To Make Simple Basic WordPress Theme From Scratch For Beginner

Before you make wordpress theme from scratch. You must know basic about html , css , php and javascript.
Just know the basic only is enough for learning purpose. But if you still don’t know the basic , just try it first and try improve later.
Actually to make simple wordpress theme basic which work , you only need 2 files :
1. index.php
2. style.css
Because it’s only introduction for wordpress theme code for very beginner programmer .
So i only will make that 2 file .
First you need to make folder /wp-content/themes/mysimplebasic
and create 2 files index.php and style.css
Just file index.php like this :

    if ( have_posts() ) :
        while ( have_posts() ) : the_post();
            echo '<div class="msb-post">';
                    '<header class="entry-header"><h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">',
                echo '<div class="entry-summary">';
                echo '</div>';
            echo '</div>';
    else :
        echo "There is no post";

And create style.css like this :

Theme Name: MySimpleBasic
Theme URI:
Description: Very Simple Basic WordPress Theme For Beginner
Author: WPAmaNuke
Author URI:
Version: 1.0.1
Tags: one-column
Text Domain: mysimplebasic
Domain Path: /languages/
License: GNU General Public License v2 or later
License URI:

That’s it. You just create very basic wordpress theme.

Related Post

Be the first to comment

Leave a Reply

Your email address will not be published.