Wordpress As a Developer
- Making Theme:
- go to wp-content > themes
- make a brand-new directory or folder "Your_theme_name"
- make 3 new files in "your directory"
- index.php
- style.css [ this 2 files are mandatory ]
- 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 ):
মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন