• Hi,
    I want to make my carousel to a category carousel. I want that carousel just showing one post per category: I have six categorys and I want to let the theme show one latest post of a category.

    How is that possible?

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

    Sorry for the delays.
    To move the category as carousel, its better if you create a child theme first then modifying the related file within the child theme.

    Let me know if you are ready on using child theme.

    Hello , i’m interested to do that on my child theme.Can you explain how to do that please?

    Thread Starter kmpsia

    (@kmpsia)

    Thank you for answering.

    How can I change the carousell in the child theme?

    Hi,

    Sorry for late reply.
    Please follow the steps below to change the carousel on displaying post per category:

    1. create a child theme and activate it
    2. create “inc” directory under the child theme
    3. download this file: carousel.php and put it under “inc” directory
    4. open functions.php on the parent theme and change this line:
    require get_template_directory() . '/inc/carousel.php';
    to:
    // require get_template_directory() . '/inc/carousel.php';

    5. open functions.php on the child theme and add this line:
    require get_template_directory() . '/inc/carousel.php';

    6. Go to your site and open customize > carousel > set the number of “Enter the number of posts you want to show” to 1

    7. save and reload your site.

    Hi,
    sorry.. for the 5th point should be:
    require get_template_directory() . '-child/inc/carousel.php';

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to bring just one post per category into the carousel’ is closed to new replies.