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

  1. gjconker
    Posted 4 years ago #


    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?



  2. kjodle
    Posted 4 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:


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

Topic Closed

This topic has been closed to new replies.

About this Topic