ThemeShaper Forums » Power Blog

[closed]

WP Cycle plugin in functions.php

(7 posts)
  • Started 5 years ago by Manuel
  • Latest reply from kevinsmith08
  1. Any clue how I could add the WP Cycle functionality to my functions.php for the header image in Powerblog?

    Right now I am using the rotate.php in the CSS from A List Apart for the header image (Example at my development site: http://vermietungaufsylt.com), but a jQuery fade would be much cooler.

    Posted 5 years ago #
  2. amygail
    Member

    Hey Manuel,
    I think this should work... (there may be a better way - but this is a start)

    function head_cycle() { ?>
    
     <?php wp_cycle(); ?>
     <?php }
    
    add_action('thematic_header','head_cycle');
    Posted 5 years ago #
  3. Whoops, totally missed that there was an reply. Thanks amygail, will try it out when I have the time. Thanks a lot! :)

    Posted 5 years ago #
  4. Just tried this function and it works perfectly. Thanks amygail!

    Posted 4 years ago #
  5. I am lost on the cycle plugin. I am trying to make the "featured design" scroll between several different designs, but I can't get the cycle to work. http://www.theotherkevinsmith.com Here is my functions.php file in my child theme:

    <?php

    function childtheme_scripts() {?>
    <?php echo "\n\t" ?>
    <script type="text/javascript" charset="utf-8" src="<?php bloginfo('stylesheet_directory'); ?>/library/scripts/jquery-1.3.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php bloginfo('stylesheet_directory'); ?>/library/scripts/jquery.cycle.all.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php bloginfo('stylesheet_directory'); ?>/library/scripts/jquery.easing.1.1.1.js"></script>
    <?php echo "\n" ?>
    <?php
    }
    add_action('wp_head', 'childtheme_scripts');

    ?>

    Please help, I am a JQuery dunce.

    Posted 4 years ago #
  6. Ok, I got the cycle plugin to work, but I only want it to show up on one page. But with this help, it shows up in the header of every page. Any ideas?

    Posted 4 years ago #
  7. Got it! Nevermind.

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.