WordPress.org

Support

Support » How-To and Troubleshooting » IF clause to display a button on certain page only?

IF clause to display a button on certain page only?

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Found how…

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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IF clause to display a button on certain page only?’ is closed to new replies.
Skip to toolbar