Forums

if homepage, then get_option homepage (1 post)

  1. sandraqu
    Member
    Posted 1 year ago #

    Hello. I would like to modify a file called "custom.js.php", which contains most JS functions for sliders and such, so that I can autoplay a slider if not on homepage.

    This page can read get_option(), and it was my hope that I could somehow pass an is_home() or page ID or page title to distinguish the homepage. is_home() returns true for all pages.

    Is there a way for me to do this in that page?

Topic Closed

This topic has been closed to new replies.

About this Topic