Support » Theme: Kindergarten » can't add a different slider on main page

  • I’ve deactivated the kindergarten slider and wanted to use a different slider instead. I’ve tried three sliders. I’m not sure where to add the php code (I’m rather new to WP), but I read somewhere that, to change the theme, it should be pasted in header.php. Here’s how that file looks like:

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">

    However, I get an error, or the page goes blank. I then tried to add the code in front-page.php, after get_header(). Nothing happens. The code that I need to paste is this:

    <?php
    echo do_shortcode('[smartslider3 slider=2]');
    ?>

    I tried this both when I deactivated the native slider and when I activated it. The slider works when I add it in a post, with shortcode.

    Can you tell me in what file, and in what place, I should add the code?

    Thx in advance.

Viewing 1 replies (of 1 total)
  • kma9090

    (@kma9090)

    I added mine in header.php beneath

    <div class=”clear”></div>
    <div class=”nav-foot”></div>
    </nav><!– #site-navigation –>

Viewing 1 replies (of 1 total)
  • The topic ‘can't add a different slider on main page’ is closed to new replies.