Advertisement
Aurangajeb

Add footer link through theme functions.php

Jan 31st, 2021
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. // Add Footer Link
  2. function wpregular_footerlink()
  3. {  
  4.     if((is_home()) || (is_front_page()))
  5.     {
  6.     ?>
  7.         <div id="footerlinkwpregular" style="text-align:center;"><p><a href="https://wpregular.com" target="_blank" style="font-size:10px;">WPRegular</a></p></div>
  8.        
  9.         <?php
  10.     }
  11. }
  12. add_action("wp_footer", "wpregular_footerlink");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement