Forum Replies Created

Viewing 1 replies (of 1 total)
  • Disregard the former ideas they do not work. Change two lines of code in functions/simplecatch_functions.php essentially just adding “|| is_page()”.

    //Enqueue Slider Script only in Front Page
    	if ( is_home() || is_front_page() ) {

    to

    //Enqueue Slider Script only in Front Page
    	if ( is_home() || is_front_page() || is_page() ) {

    and

    // If the page is home or front page
    	if ( is_home() || is_front_page() ) :

    to

    // If the page is home or front page
    	if ( is_home() || is_front_page() || is_page() ) :

    “is_page()” can specify a particular page by id as well if you would like to only show the slider on another specific page. ie.

    is_page(42);
    // When Page 42 (ID) is being displayed.

    is_page(‘Contact’);
    // When the Page with a post_title of “Contact” is being displayed.

    is_page(‘about-me’);
    // When the Page with a post_name (slug) of “about-me” is being displayed.

Viewing 1 replies (of 1 total)