How to integrate custom theme in wordpress ?


Q:-1  How to theme integration in Wordpress?
Ans:-Theme integration:-
STEP:-1   Firstely download any theme on net.
STEP:-2   After the theme download open wordprees and goto wp-content folder and open this folder .
STEP:-3   Now open themes folder and create the new folder .
STEP:-4   After creating the new folder include images and css file in this folder from download theme.
STEP:-5   Now change the name of css file.The standard name of css  file is style.css .
STEP:-6       Now make index.php file in theme folder in which we integrate theme .
STEP:-7     Now open css file and write below text in comment .
/*
Theme name:facebook
Theme URI:http://facebook.com
Author: money
version:1.0
Description: full response theme
Author URI: http://hardwarezone.com
*/


STEP:8   Now copy content from download theme into integratin theme from index.php file.
STEP:-9  Now check that theme is implement or not check detail.
STEP:-10  Now take print screen download theme (index.html)and save the file and give name screenshot.png it,s standard name of the wordpress.
STEP:-11  Now activate integrate theme and open this theme in local host.



Qns:-2 How to give title name to theme integration?
Ans:-2 <title><?php bloginfo(‘name’)  ?> </title>


Qns:-3   How to give title name to theme integration?
Ans:-3  Firstely goto dashboard.After the dashboard goto setting and the setting goto general .Now  we can do change theme tilte.


Qns:-4how to make header file and include header file?
Ans:-4Make header file:-copy header content from index file into download theme and paste into new file this file save header.php name and this file is save in theme integration folder.
        Include header file:-      <?php  get_header();?>
Qns:-5how to make footer file and include footer file?
Ans:5-Make footer file:-copy footer content from index file into download theme and paste into new file this file save footer.php name and this file is save in theme integration folder.
        Include footer file:-      <?php  get_footer();?>


Qns:-4how to make side bar file and include side bar file?
Ans:-Make side bar file:-copy side bar content from index file into download theme and paste into new file this file save footer.php name and this file is save in theme integration folder.
        Include footer file:-      <?php  get_ side bar ();?>



Qns:-5  How to make side bar in theme integration in Wordpress?
Ans:-5
STEP:-1   Fristley make function.php file intheme integration  folder.
STEP:-2  Write below text in Index.php file.
<?php


// register sidebars
function theme_widgets_init()
{
    register_sidebar(array(
    'name' => "Right Sidebar",
    'id' => "sidebar_1",
    'before_widget' => "<div id='sidebar' >",
    'after_widget' => "</div>",
    'before_title' => "<h3>",
    'after_title' => "</h3>"
    ));
   
   
    register_sidebar(array(
    'name' => "Left Sidebar",
    'id' => "sidebar_2",
    'before_widget' => "<div id='sidebar' >",
    'after_widget' => "</div>",
    'before_title' => "<h3>",
    'after_title' => "</h3>"
    ));
}


// hooks for load widgets and sidebars
add_action('widgets_init', 'theme_widgets_init');



?>      
STEP:4  Go to appearence press enter.Go to widgets press enter.Now show side bar in the right side of the page that we are makeing.it,s show in below print screen.
STEP:5now drag and drop any plugin for example calender in side bar and give title and click on the save button.


Qns:-6how to make dyanicm side bar in wordpress?
Ans:6-Ffirstly comment all data in header.php file after the commenting include below data in header.php file.
<?php
if(is_active_sidebar('sidebar_2'))
{
    dynamic_sidebar('sidebar_2');
}
?>                    

Students Tech Life