ThemeShaper Forums » Power Blog

[closed]

WP cycle plugin instead of image-header.jpg

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

    function head_cycle() { ?>

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

    add_action('thematic_header','head_cycle');

    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 3 years ago #
  2. I'll have a go at trying to answer this for a learning point of view(please correct me if wrong).

    <?php
    // Take Away Default Thematic Header
    function new_header() {
    remove_action('thematic_header','thematic_blogtitle',3);
    remove_action('thematic_header','thematic_blogdescription',5);

    }
    add_action('init', 'new_header')

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

    <?php }

    add_action('thematic_header','head_cycle',3);

    Posted 3 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!!!

    Irena

    Posted 3 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 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.