WordPress.org

Ready to get started?Download WordPress

Forums

MesoColumn
[resolved] [Theme MesoColumn] Use Featured Slider on Static Front Page (7 posts)

  1. djrouge
    Member
    Posted 6 months ago #

    Hi,
    I use this theme on one of my sites with the Featured Slider enabled when set to using 'Your latest posts' on the front page.
    When I set the site to use a Static Front Page and choose a page, the Featured Slider does not show.

    Can anyone give any advice please?
    Much appreciated.

  2. Richie KS
    Member
    Theme Author

    Posted 6 months ago #

    try copy paste index.php and rename in front-page.php

  3. djrouge
    Member
    Posted 6 months ago #

    Thanks for the response.

    renamed index.php to front-page.php - then I get 'Archive for page - Continue Reading' with no slider or my page content.

    Just to experiment, I tried the following:
    renamed front-page.php to index.php but this made no change at all.

    Any other ideas would be much appreciated.

    Regards,
    Dj.

  4. Richie KS
    Member
    Theme Author

    Posted 6 months ago #

    this might be a long shot, havent tried it but try restore the index.php to its original one add this to functions.php

    function dez_add_slider_frontpage() {
    if(  is_front_page()  && get_theme_option('slider_on') == 'Enable'):
    get_template_part( 'lib/sliders/jd-gallery-slider' );
    endif;
    }
    add_action('bp_before_blog_home','dez_add_slider_frontpage');
  5. djrouge
    Member
    Posted 6 months ago #

    Hi,

    When I did this it took the site down / white screen.
    Had to restore it back to get it to come back on.

    Thanks for the suggestion though, I am willing to try anything and have not been able to fix it as yet - all of the answers I find on google are theme specific or don't work either but I'm always careful to back up any files that I alter so that I can restore them back to working and so not to confuse the issue further.

    Any help much appreciated.

    Dj.

  6. Richie KS
    Member
    Theme Author

    Posted 6 months ago #

    you need to properly add the code in functions.php before the bottom closing ?>

    tested them and works ok with frontpage activated.

  7. djrouge
    Member
    Posted 6 months ago #

    You are absolutely right, I'd copied the code into the wrong section and not before the bottom closing ?>

    I have done what you suggested in your last response and the slider is working exactly as intended.

    many thanks for your help and for the great theme.

Reply

You must log in to post.

About this Theme

About this Topic