• Resolved laschullery

    (@laschullery)


    I am trying to add a slider to the big title area.

    I’m using the plugin Easy Slider “lite” and
    <?php if (function_exists(‘easing_slider’)){ easing_slider(); }; ?>

    I really could use some guidance on if this is right and if so where do I add the code into?

    Here is an example more or less of what I am trying to achieve
    http://agaperiding.org/

    Any help would be greatly appreciated!

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

    You need to add it in zerif-pro/sections/big_title.php file.

    Don’t forget to use a child theme for this task 🙂

    Regards,
    Hardeep

    Thread Starter laschullery

    (@laschullery)

    HI Hardeep,
    Thank you for your quick response. I worked with placing it in the big_title.php file prior to posting my initial query with no success. The slider either posted above the header line or showed up below but as it’s own area instead of behind the text and buttons. Here is the code below for the big_title.php. if it is appropriate to go here could you advise where?

    <?php
    echo ‘<div class=”container”>’;
    $zerif_bigtitle_title = get_theme_mod(‘zerif_bigtitle_title’,’To add a title here please go to Customizer’);
    if(isset($zerif_bigtitle_title) && $zerif_bigtitle_title != “”):
    echo ‘<h1 class=”intro-text”>’.$zerif_bigtitle_title.'</h6>’;
    endif;
    $zerif_bigtitle_redbutton_label = get_theme_mod(‘zerif_bigtitle_redbutton_label’,’One button’);
    $zerif_bigtitle_redbutton_url = get_theme_mod(‘zerif_bigtitle_redbutton_url’,’#’);
    $zerif_bigtitle_greenbutton_label = get_theme_mod(‘zerif_bigtitle_greenbutton_label’,’Another button’);
    $zerif_bigtitle_greenbutton_url = get_theme_mod(‘zerif_bigtitle_greenbutton_url’,’#’);
    if( (isset($zerif_bigtitle_redbutton_label) && $zerif_bigtitle_redbutton_label != “” && isset($zerif_bigtitle_redbutton_url) && $zerif_bigtitle_redbutton_url != “”) ||
    (isset($zerif_bigtitle_greenbutton_label) && $zerif_bigtitle_greenbutton_label != “” && isset($zerif_bigtitle_greenbutton_url) && $zerif_bigtitle_greenbutton_url != “”)):
    echo ‘<div class=”buttons”>’;
    if (isset($zerif_bigtitle_redbutton_label) && $zerif_bigtitle_redbutton_label != “” && isset($zerif_bigtitle_redbutton_url) && $zerif_bigtitle_redbutton_url != “”):
    echo ‘‘.$zerif_bigtitle_redbutton_label.’‘;
    endif;
    if (isset($zerif_bigtitle_greenbutton_label) && $zerif_bigtitle_greenbutton_label != “” && isset($zerif_bigtitle_greenbutton_url) && $zerif_bigtitle_greenbutton_url != “”):
    echo ‘‘.$zerif_bigtitle_greenbutton_label.’‘;
    endif;
    echo ‘</div>’;
    endif;
    echo ‘</div>’;
    echo ‘<div class=”clear”></div>’;
    ?>

    Hi try to replace the entire file with either:

    <div class="container">
    <?php if (function_exists('easing_slider')){ easing_slider(); }; ?>
    </div>

    or

    <?php if (function_exists('easing_slider')){ easing_slider(); }; ?>

    Tell me if any of these is getting the job done 🙂

    Regards,
    Hardeep

    its not working

    Hi,

    What’s happening when you post this code? 🙂

    Regards,
    Hardeep

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding Slider to Big Title Area’ is closed to new replies.