WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding a slider to my Header (2 posts)

  1. gjconker
    Member
    Posted 2 years ago #

    Hi,

    I'm new to this forum and PHP.

    Trying to add the Nivo slider to my Header. Nivo says "Place this: <?php if (function_exists('nivoslider4wp_show')) { nivoslider4wp_show(); } ?> in your templates". I'm trying to add it to my Graphene 1.6.1 header but since I know very little about PHP (at present), I don't know what line(s) of code to replace.

    Can someone help this noob?

    Thanks,

    Greg

  2. kjodle
    Member
    Posted 2 years ago #

    Hacking into core theme files is not recommended, because you will lose those changes at the next update (and Graphene gets updated regularly).

    Instead, try using the PHP widget plugin, and then adding that code to a Graphene action hook widget area. There's a bit of a learning curve this way, but this tutorial will help:

    http://blog.kjodle.net/2011/11/04/graphene-action-hook-widgets-an-easy-way-to-modify-your-blog/

    You won't lose your changes at the next update, either.

Topic Closed

This topic has been closed to new replies.

About this Topic