adding new slider

  • bdw357


    I would like to add a different slider to the top of my blog page. I’ve been given a small piece of code to insert at the top of the page for the new slider plugin but I’m not sure where to add it. I would like it to show in the same position as the graphene slider. Can you tell me where I should add my code? Sorry, I pretty new so I hope my question makes sense. If not let me know and I’ll try to explain better.


    Kenneth John Odle


    Please tell us what this code looks like it, where you got it from, and what the instructions are (or where on the web we can find them).



    Here is what the instructions say to do.

    Display a slideshow

    To display the slideshow, you can use any of the following methods.

    In a post/page: Simply insert the shortcode below into the post/page to display the slideshow:



    Kenneth John Odle


    So you are using a plugin, right?

    Anytime you see code in square brackets, like this [easingsliderlite], that’s called a shortcode and can be inserted anywhere in the content of a page or post (and in a few cases, in text widgets).

    Unfortunately, the blog page is dynamically generated, so there’s no content area for you to edit.

    If you are referring to this plugin, it may be possible with a child theme and an action hook. Link to site?



    Yes, that is the correct plugin. I figured that I could add the code to a page or post but just not sure how to add it to my main blog page. I would like to add it to the same location as the graphene slider. I considered creating a static front page but would rather not if I don’t have to. I also have the code below for adding it to a php file. I’m just not sure which file or where to add it.

    <?php if ( function_exists( “easingsliderlite” ) ) { easingsliderlite(); } ?>

    What is a child theme and action hook?

    Thanks for your help.


    Kenneth John Odle


    Forget the child theme; it turns out Graphene has a built-in action hook that will work just fine.

    You will need to install the WP PHP Widget.

    Next, go to Graphene Options >> Action Hooks Widget Areas, and click on header.php. In the list of action hooks that appear below it, tick the box next to graphene_before_content-main. Click “Save”.

    Next, go to your widgets page. Drag a PHP Widget to the “Graphene Before Content-main” widget area. In the editing area for that PHP widget, enter this code:

    if ( function_exists( "easingsliderlite" ) && is_home() ) { easingsliderlite(); } ;

    That should work; if not, let us know what kind of error you’re getting. My PHP is rusty.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.