adsense

How to Register a Sidebar in a Header in a WordPress Blog





1. Connect to your WordPress site using an FTP application.
2. Go to your WordPress theme's folder and copy the files 'function.php' and 'header.php' into your computer.

3. Open 'function.php' in Notepad and add the following code:register_sidebar(array('name' => 'Header Widget','id' => 'header-widget','before_widget' => '
','after_widget' => '
','before_title' => '
','after_title' => '
'));Save your file.
4. Open 'header.php' in Notepad and add the following code in the section of the header where you want widgets to appear:
Save your file.
5. Upload the files back in your WordPress theme folder via FTP.

Comments

0 Responses to "How to Register a Sidebar in a Header in a WordPress Blog"

Post a Comment

Popular Posts

About