WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
[resolved] How to add slider to Home page if used a static page? (9 posts)

  1. wxa
    Member
    Posted 5 months ago #

    How to add slider with posts to Home page if used a static page?

    Thank you!

  2. YajYolid
    Member
    Posted 4 months ago #

    Hi wxa,

    When I used meteor slideshow plugin and add it only on the hompepage I used this code on the header.php file

    <?php if ( is_front_page() ) {

    if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }

    } ?>

  3. wxa
    Member
    Posted 4 months ago #

    Hello Jay,

    I think that in Hueman the default Posts Slider is using Flex slider.

    Thank you! I will try it now.

  4. wxa
    Member
    Posted 4 months ago #

    This is not working. I want to show the default posts slider of the theme in frontpage (static page) and add also some other content with a page builder plugin that i have: visual composer.

    I need some help from the author, if possible, please.

    Thank you!

  5. wxa
    Member
    Posted 4 months ago #

    I am the only one that wants a static page on frontpage? :)

    Could i get please a little help adding the default posts slider of the theme in the frontpage using a static page?

    Thank you!

  6. noaneo
    Member
    Posted 4 months ago #

    hi,

    just put in template page.
    <?php get_template_part('inc/featured'); ?>

  7. Alexander Agnarson
    Member
    Theme Author

    Posted 4 months ago #

    Hi there, so first you would need to edit /inc/featured.php and remove the following from it:

    is_home() &&

    (On two locations)

    Then, go to /page-templates/child-menu.php and copy that file. Name it something new and change the header of the page template to your new template name.

    Then, inside of this new file, add:

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

    Right below where it says:

    <div class="pad group">

    And then select your newly created page template as template for the static frontpage.

    These changes would be done with a child theme.

  8. wxa
    Member
    Posted 4 months ago #

    I just love you Alexander! :) That works like a charm with the child theme. You've just made one random act of kindness today! i will try to make that also! I will definitely support you work on PayPal.

    Thank you!

  9. Alexander Agnarson
    Member
    Theme Author

    Posted 4 months ago #

    i will try to make that also!

    :D

    Thank you.

Reply

You must log in to post.

About this Theme

About this Topic