• Resolved bzwb

    (@bzwb)


    Hello Richie,

    Thanks for creating one of the best free themes available.

    Pls how do i add a custom slider to replace the categories slider on the blog homepage?

    Thanks a bunchy.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Richie KS

    (@rkcorp)

    best use plugin for this customization. and disable the built in slider in theme options.

    Thread Starter bzwb

    (@bzwb)

    Thanks…..but the challenge is adding the slider to the “virtual” blog page which is not in the list of pages.

    Any recommendations?

    Theme Author Richie KS

    (@rkcorp)

    add this to functions.php or wp-content/meso-custom-functions.php

    <?php
    function meso_add_custom_featured_slider() {
    if('page' == get_option( 'show_on_front' )) {
    $paged = get_query_var( 'page' );
    } else {
    $paged = get_query_var( 'paged' );
    }
    if( ( is_home() || is_front_page() || is_page_template('page-templates/template-blog.php')) ) {
    if ( !$paged ) {
    echo do_shortcode('[slider shortcode]'); //or echo $THE_SLIDER_FUNCTIONPHP;
    }
    }
    }
    add_action('bp_before_blog_entry','meso_add_custom_featured_slider');
    ?>

    check if the slider had shortcode or php functions.

    Thread Starter bzwb

    (@bzwb)

    Thanks ?? Will try it out.

    Thread Starter bzwb

    (@bzwb)

    Thanks a lot Richie…..It worked….I now have a slider above my blog posts. Thanks again ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add custom slider to homepage’ is closed to new replies.