Wordpress As a Developer



  • Making Theme:
      1. go to wp-content > themes
      2. make a brand-new directory or folder   "Your_theme_name"
      3. make 3 new files in "your directory" 
        1. index.php
        2. style.css [ this 2 files are mandatory  ]
        3. screenshot.png  [ this is the theme photo or icon. "screenshot.png" name & extension must be that.]

          style.css
          /*     Theme Name: Fictional University     Author: Nirjhor     Version: 1.0 */
theme setup done ....


we can found or new theme in "Appearance > Themes" section.



This is the brand new theme.. activated.


Some Theme page list what WordPress looks for:

No.
Page/File name
Works
1.
index.php
(*Must require.) Starter page and WordPress system set this page as default page for alternative all other pages if any page missing.
2.
style.css
(*Must require.) WordPress system search theme information ( theme name, author name, version ) from this file
3.
screenshot.png
(*Must require.) WordPress system shows this .png as theme icon or theme identify photo.
4.
page.php
Any new page will be powered by this page default.. [ if this page was missing then index.php ]
5.
single.php
Any single post detail will be like this page default.. [ if this page was missing then index.php ]
6.
functions.php
<?php
    function load_files()
    {
        wp_enqueue_style( "university_main_styles",get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', "load_files" );
?>

This page will have all system functions who can conversation with WordPress ownself.
*above codes  load the style.css file to the head section into header.php








  • Learn Some Functions ( built-in-function ): 



মন্তব্যসমূহ

এই ব্লগটি থেকে জনপ্রিয় পোস্টগুলি

SEO [Search Engine Optimization ] (সার্চ ইঞ্জিন অপ্টিমাইজেশান)

Web Scraping With PHP