Home>Support>Showing slider with single posts

Showing slider with single posts

Is it possible to show the slider (I’m using Meta-slider) withe showing single posts? So, I want to not only add a slider to pages but also to posts.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Jorrit

    It is, but not easily. It involves setting up a child theme and using conditional PHP tags to say, if we’re displaying post ID “x” then use slider 1 and if we’re displaying post ID “y” then display slider 2. So it’s possible but has to be setup manually using PHP. If this is something you feel like diving into, let me know and I’ll advise the way forward.

  2. 9 years, 10 months ago Juan Manuel de Marco

    I would like to do so. Please advise

  3. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Please find a child theme here: https://siteorigin.com/wp-content/uploads/2014/11/vantage-child-conditional-slider.zip.

    Download and un-zip it. Edit header.php. Between lines 35 and 40 I’ve started you off. The first if statement will load a slider for a page. Change the ID to match the page you need a slider on and change the slider ID to match yours. You can find a page ID by checking the url when editing the page in WordPress. Copy lines 35 to 37 for each additional page you need a slider on. Below that you’ll find the same setup but for posts.

    Once done setting up, re-zip the folder and install via Appearance > Themes > Add New: Upload Theme. Activating a child theme will cause menu assignments and Customizer settings to be lost. Test your child theme before re-doing those settings.

  4. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Here is the Codex page on the conditional tags we’re using for this:

    http://codex.wordpress.org/Conditional_Tags

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More