[Resolved] PHP conditional statement and Add-on GP hooks

Home Forums Support [Resolved] PHP conditional statement and Add-on GP hooks

Home Forums Support PHP conditional statement and Add-on GP hooks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #226087
    Nadia

    Hi

    I am struggling getting this right. I would like to display a different slider on different pages. I have tried many solutions found on the knowledge base but none work.

    So far, for testing purposes, I have this very basic code in “Before Header Content”. But it displays the slider on all pages. Why?
    Note: “Excute PHP code” is not checked. Is it required? (When I enable it, I get a 500 server error – what is it for?)

    *******
    <?php if ( is_home() ) : ?>
    [metaslider id=43]
    <?php endif; ?>
    *******

    Thanks!

    #226135
    Nadia

    Hi

    After reading the support forum, I have managed to resolve the crash issue (by saving the permalink!) and enabled PHP, it seemed to work now.

    Problem solved!

    #226155
    Tom
    Lead Developer
    Lead Developer
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.