• Resolved keepact

    (@keepact)


    if I use “if statement” with “!” it works but if I try to specify the page it does not work.

    Here is the simple code that I put in the functions.php file as a test:

    if ( is_front_page() ) {
    echo “ track “;
    } else {
    echo “ track “;
    }

    Href always redirects to the second link, even if I’m on the front page. I tried using “is_page” but the href also goes with the second link.

    Are there any extra code that the theme “releases”?

    Other than that, I loved the theme!

    Thanks in advance for the help!

    • This topic was modified 5 years, 10 months ago by keepact.
    • This topic was modified 5 years, 10 months ago by keepact.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘if statement not working’ is closed to new replies.