• namnamir

    (@namnamir)


    Hi there,

    I need a static homepage with the slider. I did a search and found this solution which is not working with the new version of Hueman theme:
    A: https://www.ads-software.com/support/topic/how-to-add-slider-to-home-page-if-used-a-static-page/

    The developer explained a way to fix it here:
    B: https://www.ads-software.com/support/topic/flexslider-not-loading-after-upgrade/
    and here:
    C: https://www.ads-software.com/support/topic/error-in-show-slider-in-static-homepage/

    I have done all but it is not working. I think I have a problem with “page-template” stuff.
    Here are the things I have done:
    1- I have created a child theme, named x_theme.
    2- I have created a “functions” and “page-templates” in it. I copied the original files (“init-front.php” from “functions” and “child-menu.php” from “page-templates”) to the relative folders in child theme (x_theme).
    3- I have change “featured.php” according to the instruction in link C:

    Copy the new version of featured.php into a /parts directory in your child theme. In that file change the is_home() argument to is_front_page(). Then you can remove the featured.php file in your child theme /inc folder.

    I also changed “child-menu.php” content and renamed it to “home.php” according to the instruction in link A which is not clear to me:

    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.

    The other change I did is on “function.php” file in the root of the child theme (x_theme folder), I added function hu_scripts() as mentioned in links A and B:

    Copy the entire hu_scripts() function into your child theme functions.php file, then change the is_home() argument to is_front_page().

    4- I changed the setting of the home page from “Your latest posts” to “A static page” and assigned a page to it.

    5- I found it doesn’t work ?? Then I tried to add combine all the stuff mentioned in the links but nothing helped. I finally found that lack of my knowledge in either the programming is the problem or the structure of WordPress. I am almost sure the problem is in “page-templates” things, but no clue what it is exactly.

    Any idea?

  • The topic ‘Slider on Static Home Page’ is closed to new replies.