WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display footer links only on certain pages/posts (3 posts)

  1. kiduka
    Member
    Posted 5 years ago #

    Hi

    I'm not much of a technical guy but I could do with some step by step instruction to resolve my problem.

    I have a link on the footer pointing to another website, and the thing with the footer is that, that link is displayed throughout the whole site. I just want to link to that other site from my home page without it becoming a site-wide link.

    Thanks!

  2. stvwlf
    Member
    Posted 5 years ago #

    in footer.php

    <?php if (is_front_page()) { ?>
    ============== (link goes here)
    <?php } ?>

  3. kiduka
    Member
    Posted 5 years ago #

    Thank you stvwlf, it worked like a charm :D

Topic Closed

This topic has been closed to new replies.

About this Topic