• Hello guys and thank you for a good looking theme.

    I’m working on setting up a new website with your theme and one of the issues I have so far is showing a slider on the static front page.

    I found a solution by changing tweaking a function on the slider.php

    //Define all Variables.
    if ( get_theme_mod('aldehyde_main_slider_enable' ) && is_front_page() ) : 
    
    	$count_x = $count = get_theme_mod('aldehyde_main_slider_count');
    
    		?>

    As you can see I only replace the part of the code “home_page” with “front_page”

    However I did this to the parent theme but I want to do it on my child theme so it doesn’t get affected with an update.

    Can you guys help me write the correct function (replacement) function for my child theme?

    here is the link to the site I’m building.

    http://northportsoccer.com/

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Antonio,

    You can read this tutorial https://codex.wordpress.org/Child_Themes that can help you a lot.

    Then you just need to add your code in child theme.

    Best regards,

    Madalin

    Thread Starter Antonio Bonilla

    (@antonio-bonilla)

    Thank you for your reply Madalin.

    I’m not good at writing codes so let me ask you can my code be exactly the same as the one on the parent theme except the changes?

    Or it has to be a new code with the replacing tag to replace the original code?

    Hey Antonio,
    How were you able to get your “home” page to show up on your static front page?

    Whenever I set my “static front page”, it makes the slider disappear completely. I would like the static front page to show the slider AND my home page content. Thanks for your help.

    Here is the site I’m building with Aldehyde:

    http://guard-nc.org/

    Thread Starter Antonio Bonilla

    (@antonio-bonilla)

    Do you have a child theme for your website?

    If you haven’t create a child theme first so whatever changes you make don’t get loss whenever the Aldehyde theme gets updated.

    after you create a child theme do the following:

    1. copy the slider.php from the Aldehyde theme to your child theme folder.
    2. in the child theme silder.php make the following change to the code:
    replace home_page
    with front_page

    And that’s it.

    Let me know if you need any more help.

    I made a child theme but I don’t have a slider.php file. I have one called “slider-nivo.php” but there isn’t “home_page” anywhere in that file….

    Does anyone else have this problem? I don’t have a slider.php file, instead it is “slider-nivo.php file….

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Slider for front page’ is closed to new replies.