• Resolved Gretchen Louise

    (@gretchenlouise)


    I’m trying to use a custom function to load box 9108 on any page but the front page.

    This code, however (adapted from https://kb.boxzillaplugin.com/advanced-box-rules/), is breaking the site:

    add_filter( 'boxzilla_load_box_9108', function( $load ) {
    return ! is_front_page();
    });

    I’d love some pointers in the right direction. Having a rule “is home page” or “is not home page” would be hugely helpful! Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Lap

    (@lapzor)

    You shouldn’t need custom code for that, you can use the standard conditions with “if URL is not /”.

    What do you mean with “breaking the site”?
    Where did you put that code and what was the exact error in the Apache/PHP log?

    Hope that helps. If you have any questions, please let us know!

    Thread Starter Gretchen Louise

    (@gretchenlouise)

    My apologies. Seems to have been an error generated by the theme editor. Adding that code via another method generated no error codes.

    And thank you! I’m glad the popup rules are in actuality that simple. Thank you so much!

    how not to appear on the home page

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load Box On All Pages But Home Page’ is closed to new replies.