Okay
  Public Ticket #2028700
Homepage slider
Closed

Comments

  • Thebluetravellers started the conversation

    Hi, how can i add a homepage post slider with the blogging demo content?

    I don't see any options.

    Thank you.

    {"wp":{"use":false,"adminUrl":"","username":"","password":""},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}
  •  1,559
    Laborator replied

    Hi there,

    You can create a post-based slider using Revolution Slider and then add it to the homepage:


    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Thebluetravellers replied

    What if i don't have the homepage as a page?

  •  1,559
    Laborator replied

    You're right but there is a trick for this, firstly create a new page and add a slider to it, after you've done this step make sure you're using the Child Theme first then go to Appearance > Editor and under the functions.php (check article) file of your child theme add this code:

    add_action('kalium_blog_archive_before_content',function(){ 
        $post = get_post(4861);
        echo do_shortcode($post->post_content);
    },5);

    replace the 4861 value with the ID of the page you just created, you can get the ID here:

    medium
    (view large version)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Thebluetravellers replied

    Ok thank you!