• Hello! Thank you thank you thank you for this theme. It’s beautiful and I’ve loved using it.

    I’d love to be able to have additional sliders (with different slides or based on different categories) that look the same as the main slider. Is there a way I could accomplish this?

    Thanks so much!

    P.S. Since this is an awesome theme that’s so widely used, I’d love to suggest this as a feature request, but perhaps taking it a step further and introducing shortcodes that allow a slider to be embedded anywhere (widget/page/post/etc…) with a category parameter. I’d be happy to help test if anyone were willing to take that on!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi iueweb. It could be done, but it would take quite a bit of work. The built-in slider uses the Featured Posts options in Theme Options > Blog to display posts. You’d need to copy the existing /inc/featured.php file to a child theme, then modify it to retrieve a different set of posts. Personally I’d just use a plugin like Meta Slider. Easy to implement and lots of options.

    Thread Starter iueweb

    (@iueweb)

    Thanks bdbrown! In our case, I didn’t want to force users to manage slides separately from posts, so I worked my way through a solution provided by Alex on this thread (Thanks Alex!). However that thread was for duplicating the main slider with posts from the same featured category. I was hoping to create a slider for posts from a different category, and it was only a couple additional steps. I’ll include the whole process (modified from Alex’s) below:

    1) Create a child theme (download a sample one from Help dropdown in theme options)

    2) Copy over /inc/featured.php to the child theme and change the name to something new (in this example, I’ll use ‘featured-custom.php’). In this file, remove the two instances of:

    is_home() &&

    from the file.

    On line 10, you’ll need to change ‘ot_get_option(‘featured-category’)’ to the term ID# (let’s say 16) of the term you wish this slideshow to pull posts from. The line will look like:

    'cat' => 16

    * You can find the term ID# in the URL when editing the category.

    3) Copy over /page-templates/child-menu.php to the child theme. Name the php file something new, and also rename the template name at the top of the file to something you want.

    4) In this file, add:

    <?php get_template_part('inc/featured-custom'); ?>

    (change ‘featured-custom’ to whatever you called your file, but exclude ‘.php’) right below where it says:

    <div class="pad group">

    Now create a new page, select your newly created page template under ‘Template’ in the ‘Page Attributes’ panel . Your page should now have a slider featuring posts from your selected category.

    Hope that comes in handy!

    Thanks for the update and the info. Hadn’t seen that previous post. Glad you got it to work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additional Sliders’ is closed to new replies.