HOME / BLOG / BLOG-POST

How to create header and footer in wordpress?

create header and footer in wordpress

HomeHow to create header and footer in wordpress?
How to create header and footer in wordpress?
Developer's BlogThursday, January 02, 2020
create header and footer in wordpress



Header

function sandeep_code_just_after_body(){
 
 echo "<div class='top-header'>".get_bloginfo('name')."</div>";
 
}
add_action("wp_head","sandeep_code_just_after_body");


                                                  Footer

function sandeep_code_for_footer(){
 
 echo "<div class='main-footer'></div>";
 
}
add_action("wp_footer","sandeep_code_for_footer");

 


about authors

Sandip Das

Web Developer

Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.



POST COMMENTS

Leave a Reply

Your email address will not be published. Required fields are marked *