• Hello there! I’m having trouble figuring out how to change the number of slides in my slider. I wanted only 4 slides, but I have 5 so far. Is there something I can change in the codes or do I need to come up with a new code myself? All help is appreciated. Thanks!

    (My website address is oomphify.com)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Chiara,

    open wordpress dashboard
    click on appearance and select editor
    on the right hand side find and click on slider.php
    look for the following:

    $slider_cat_id = max_magazine_get_option( 'slider_category');
    	//if no category is selected for slider, show latest posts
    	if ( $slider_cat_id == 0 ) {
    		$post_query = 'posts_per_page=8';
    	} else {
    		$post_query = 'cat='.$slider_cat_id.'&posts_per_page=8';

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    CHANGE the following —- ‘post_per_page= ‘; to show a 4

    I have mine set at 8 as shown above and default is 5.

    Make sure you then click update file to save changes.
    REMEMBER any changes to original theme will be overwritten when updated. Checkout CHILD THEMES for advice on how to stop this overwrite happening.

    I am using Andy’s Theme, Dark Dreams and cannot seem to find the “posts_per_page” and I seem to be stuck on 5 images for the slider. Would anyone know where I can find the code to change this?

    tyia

    – sharyn

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I change the number of slides?’ is closed to new replies.