• Hello. Under theme-> theme options I cab configure and activate the slider. Works very fine. In a child thme I adjusted css to my needs. Works fine too. But the slider is only showing on the start page.

    In the header.php I found this code:

    if ( is_home() || is_front_page() ) {
       			spacious_featured_image_slider();
    			}

    I think thats why its only shown in the font page/home page.

    My question: How have I to change the php code or can I just delete the condition (if/endif)

    Thanks Jo

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,
    just replace `if ( is_home() || is_front_page() ) {
    spacious_featured_image_slider();
    }`
    with this `
    spacious_featured_image_slider();
    `

    Thanks for the info 096.acc Just tried this and the first slider image appears on the internal pages but does not slide. This suits me fine though.

    If you want the slider to work, then just edit the Theme Functions (inc/functions.php) file and replace

    [ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]

    if ( is_home() || is_front_page() && of_get_option( 'spacious_activate_slider', '0' ) == '1' ) {
    		wp_enqueue_script( 'spacious_slider', SPACIOUS_JS_URL . '/spacious-slider-setting.js', array( 'jquery_cycle' ), false, true );
    	}

    for this

    //if ( is_home() || is_front_page() && of_get_option( 'spacious_activate_slider', '0' ) == '1' ) {
    		wp_enqueue_script( 'spacious_slider', SPACIOUS_JS_URL . '/spacious-slider-setting.js', array( 'jquery_cycle' ), false, true );
    	//}

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    distue, the problem with that solution is that when this theme is updated then those edits will get lost.

    Can you provide instructions that work with a child theme?

    Hi! anybody know how can i do to make my slider display my latest post automatically

    Hi, is there any update to the problem yet?

    @ Beck_luna,

    Sorry our theme hasn’t the feature you desired.

    @ BaMac and others,

    Our free version of theme doesn’t have the feature to display slider on every pages. If you need that feature than you can have pro version. https://themegrill.com/themes/spacious-pro/

    hi chhabi
    I want slider only on front page
    but when I assign 1 blank page as blog post ini setting – reading, this page also have slider.

    I don’t want this slider to appear on this page.

    How can I do it? you can check my page at https://appi-online.or.id/berita-artikel/
    I don’t want slider on this page

    Thanks

    update
    I just find the solution just check
    Check to disable slider in Posts Page
    on theme options

    Thanks

    Thank you distue!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Slider on every page’ is closed to new replies.