gjconker
Member
Posted 1 year 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
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.