Put slider on a specific page

  • 007me



    I want to place my slider in the blog page which is not in the front page but on another page here:


    I tried adding this code with the page ID of the blog which I took from the status bar when I opened it for editing:

    function graphene_display_slider(){
    if (is_page(466)){
    add_action('wp_footer', 'graphene_scrollable');
    function custom_enqueue_scripts(){
    if ( ! is_admin() ) { // Front-end only
    wp_enqueue_script( 'graphene-jquery-tools' ); // jQuery Tools, required for slider
    add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );

    What am I missing?




    Any response?


    Kenneth John Odle


    That’s because that page isn’t showing up with an id of 466.

    This is what your body tag looks like:

    <body class="rtl blog custom-background two_col_left two-columns">

    but it should look something like this:

    <body class="page page-id-27 page-template-default custom-background two_col_left two-columns">

    I’m not sure what your body tag is being rewritten. Maybe a plugin?



    I can’t tell, how can I check it?

    And where did you see it exactly?

    Isn’t there a way to find the page ID?

    When I edit it is says it’s 465

    This is the link to it in the control panel:



    Kenneth John Odle


    I just used my browser’s “View Source” function and then searched for <body



    So what do you suggest Kenneth?


    Kenneth John Odle


    Try disabling plugins to see if one of them is causing the issue.

    You are using the All in one SEO pack, which some users of WordPress have found troublesome. I might start with that one, or at least take a close look at its settings.



    Will do, thanks, I’ll update



    Turned off all plugins but it’s still the same:

    <body class="rtl blog custom-background two_col_left two-columns">

    Don’t think this is the case



    Anyone? Anything?

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

  • You must be logged in to reply to this topic.
Graphene Themes Forum