Support » Plugin: Fade In Like Google » I added this code to make all pages…

  • Resolved JJNW


    I wanted all pages to do this fade in… would I be in the wrong to add this to line 47 && !is_page() ?

    So line 47 now looks like this if(!is_home() && !is_front_page() && !is_page()){ return;}

    Please advise if this is may be wrong?

    It seems to work just fine.

    If so, why didn’t you do it like this originally?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter JJNW


    Ah, yes, I see your plugin destroyed a few things I had going on…nothing to do with the extra code, he just he doesn’t like other plugins with jquery too.

    Plugin Author Scott Fennell



    Thanks for trying this plugin.

    You should learn about conditional tags a little. It will help you with this:

    Comment out the checks near line 36 and 46:

    if(!is_home() && !is_front_page()){ return;}

    And the fade effect would work on every page.

    The reason I didn’t do this originally is because I think it’s a little excessive to have it fade in on every single page load. I think people get the idea by the time they’re past the home page.

    My plugin didn’t destroy anything — it loads the same version of jQuery that ships with WP. If your other plugins have a problem with the core version of jQuery, then they’re at fault.

    Thread Starter JJNW


    New to WordPress, been using Drupal. Just started a few days ago on this WordPress thing. Learning curve is easy enough — until I try to get things done LOL I am not certain what the root issue is yet. Regarding for conditional “tags”, yeah, gotta get into those WordPress variables; in Drupal it would be called conditional “template variables”. Thanks for the plugin 🙂

    Plugin Author Scott Fennell


    Right on, best wishes. Welcome to WP!

    As always, when you’re not sure what the root issue is with something, disable plugins one by one and switch to a bundled theme such as twentythirteen until the pain goes away. Just like algebra class, isolate the variable!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I added this code to make all pages…’ is closed to new replies.