Results 1 to 4 of 4

Thread: Adding LayerSLider WP To The Eva Child Theme (replacing its default slider)

  1. #1
    Thread Starter
    Senior Member aglionep's Avatar
    Join Date
    Sep 2012
    Location
    United States
    Posts
    108
    Thanks
    3
    Thanked 4 Times in 4 Posts

    Adding LayerSLider WP To The Eva Child Theme (replacing its default slider)

    Hi everyone,

    I'm using the Eva child theme which uses the EasingSlider plugin to display the large homepage top slider. However with this slider I can only put images in the slides, no text, buttons, videos, etc. So I'm trying to replace it with the WP LayerSlider (great slider by the way). I see in the functions.php this code that I assume activates the EasingSlider:

    // Add Easing slider to the header
    function child_slider_init() {
    if (is_home()) {
    if (function_exists('easing_slider')){ easing_slider(); };
    }
    }

    add_action( 'appthemes_after_header', 'child_slider_init' );

    ?>

    I've uploaded and activated the LayerSlider plugin and in the LayerSlider documentation it says to add the following code to functions.php file(replacing your_theme and the path as necessary). So what I'm struggling with is basically how to combine the code above and this code to get it working. Any help super appreciated.

    <?php

    /**************************/
    /* Include LayerSlider WP */
    /**************************/

    // Path for LayerSlider WP main PHP file
    $layerslider = get_stylesheet_directory() . '/plugins/LayerSlider/layerslider.php';

    // Check if the file is available to prevent warnings
    if(file_exists($layerslider)) {

    // Include the file
    include $layerslider;

    // Activate the plugin if necessary
    if(get_option('<your_theme>_layerslider_activated' , '0') == '0') {

    // Run activation script
    layerslider_activation_scripts();

    // Save a flag that it is activated, so this won't run again
    update_option('<your_theme>_layerslider_activated' , '1');
    }
    }

  2. #2
    jobspex's Avatar
    Join Date
    May 2012
    Location
    United Kingdom
    Posts
    412
    Thanks
    24
    Thanked 45 Times in 40 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Senior Member aglionep's Avatar
    Join Date
    Sep 2012
    Location
    United States
    Posts
    108
    Thanks
    3
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jobspex's Avatar
    Join Date
    May 2012
    Location
    United Kingdom
    Posts
    412
    Thanks
    24
    Thanked 45 Times in 40 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUTORIAL] Child Theme : Unhook ( remove hook ) default appthemes functions
    By amine0272 in forum ClassiPress General Discussion
    Replies: 9
    Last Post: August 6th, 2013, 02:42 PM
  2. Replies: 11
    Last Post: February 2nd, 2013, 10:35 AM
  3. Adding jquery scripts to a Classipress child theme
    By ybpress in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: January 31st, 2012, 10:39 AM
  4. [SOLVED] style-default.css into Child Theme
    By cgervereau in forum JobRoller General Discussion
    Replies: 16
    Last Post: July 11th, 2011, 06:54 PM
  5. Child Theme - logout redirection to default theme issue
    By cgervereau in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 1st, 2010, 01:48 AM