PHP Code in Footer Bar
-
Add Developer Link on Homepage Only
<?php if ( is_front_page() ) { ?> | Developed by: <a href="https://mohsinalam.com" target="_blank">Mohsin Alam</a><?php } ?> <?php if ( is_home() ) { ?> | Developed by: <a href="https://mohsinalam.com" target="_blank">Mohsin Alam</a><?php } ?>
I tried each code to put my link as developer credit on a homepage only, but it didn’t work. The developer credit link inset on every page! Is my code correct or need any correction? How can I execute the developer link on the homepage only? Thanks
Note: The code I put in Customizer > Footer > Footer Bar.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Code in Footer Bar’ is closed to new replies.