Viewing 5 replies - 1 through 5 (of 5 total)
  • 3.Place this <?php if (function_exists(‘nivoslider4wp_show’)) { nivoslider4wp_show(); } ?> in your templates

    its says place this code in your templates but which particular template do i place it in?

    If you want to display this plugin in every page then place it in the active template at the exact location where you want to display.

    If you want to display only in a given page or post, just put the following code at the exact location where you want to display.

    <?php if (function_exists(‘nivoslider4wp_show’)) { nivoslider4wp_show(); } ?>

    This doesn’t really answer the question of where to place the code. The instructions say:

    Place this: <?php if (function_exists(‘nivoslider4wp_show’)) { nivoslider4wp_show(); } ?> in your templates

    But.. in your templates? Where? In the Edit Post/Page editor? Do I switch to HMTL view and paste the code there? Or do I go to Appearance / Editor and add the code to “page.php?” I’ve done that, added it to page.php like this:

    <?php global $theme; get_header(); ?>
    <?php if ( is_front_page() && function_exists(‘nivoslider4wp_show’) ) { nivoslider4wp_show(); } ?>
    <div id=”main”>

    <?php $theme->hook(‘main_before’); ?>

    which works but the slider is placed so there’s a blank space under the headline and the slider is right against the text of the page. Just looks bad, but there’s really no instructions telling me where, exactly, to put this code.

    Any help or examples would be appreciated.

    Hi, I can probably help you out. First, do you want this slider on your home page or every page?

    Well, I’ve got my WP pages set up to go to full width/no sidebars for many of the pages. I placed that slider code in the pages templates but since the code isn’t in the full width templates the slider doesn’t show, which is good. No reason to have the slider on every page. Just the home/welcome page would suffice. So that’s what I have. It’s working fine, except the placement isn’t where I’d like it to be. You can see the slider is almost right on top of the Welcome text.

    http://smechurch.org/smechurch/

    Should I place the code somewhere else?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Nivo Slider for WordPress] Where Do I Place This Code?’ is closed to new replies.