• Resolved Mohsin Alam

    (@mohsinworld)


    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)
  • Hi @mohsinworld,

    The functionality you are looking for is available with Astra Pro. With Astra Pro’s Custom Layouts you can put custom code at a particular location on the page and even restrict execution of this code for specific pages.

    Can you please open up a support ticket from here so that we can help you further.

    Regards,
    Anjali

    Thread Starter Mohsin Alam

    (@mohsinworld)

    Thanks for your confirmation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Code in Footer Bar’ is closed to new replies.