ThemeShaper Forums » Power Blog


WP cycle plugin instead of image-header.jpg

(4 posts)
  • Started 11 years ago by kidslovemusic
  • Latest reply from d_rec
  1. Hi! Could you help me to place wp-cycle slideshow ( instead of image-header.jpg in Powerblog theme? I placed this code in my functions.php:

    function head_cycle() { ?>

    <?php wp_cycle(); ?>
    <?php }


    but I ended up with image-header.jpg in my header and wp-cycle slideshow below (not even placed in my header). How can I adjust it?

    many thanks & regards!

    Posted 11 years ago #
  2. I'll have a go at trying to answer this for a learning point of view(please correct me if wrong).

    // Take Away Default Thematic Header
    function new_header() {

    add_action('init', 'new_header')

    // Insert Custom Header
    function head_cycle() { ?>
    <?php wp_cycle(); ?>

    <?php }


    Posted 11 years ago #
  3. Hi! Thank you for your solution. I tried your code but I'm getting this error:
    Parse error: syntax error, unexpected T_FUNCTION in /Applications/MAMP/htdocs/.../functions.php on line 11

    My line 11 is:
    function head_cycle() { ?>

    I think there is some small mistake somewhere, I'm not familiar with PHP but im trying to solve it. Maybe you will have some ideas what is wrong? Many thanks!!!


    Posted 11 years ago #
  4. Sorry about that, missed one small bit of code and it goes pear shaped - I left the ; out after ('init', 'new_header') and it produced the error. The correct line is below.

    add_action('init', 'new_header');

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.