WordPress.org

Ready to get started?Download WordPress

Forums

IF clause to display a button on certain page only? (3 posts)

  1. vjstar
    Member
    Posted 6 years ago #

    Hi!

    I want to display a "contact me" button at the bottom of each page but on the contact page itself. What would be the code to do that?

    Here is the page where I don't want the display button to show: Modchip Montreal

    Thanks

  2. vjstar
    Member
    Posted 6 years ago #

    Found how...

    if (is_page['name of the uri']) == FALSE)
    {
    echo something
    }

  3. moshu
    Member
    Posted 6 years ago #

    ['name of the uri']
    Hmmm... Not exactly - name of the Page, aka title or slug, and not in brackets like this [..] but (...)

Topic Closed

This topic has been closed to new replies.

About this Topic