ThemeShaper Forums » Thematic

[closed]

Add a slideshow to a header

(2 posts)
  • Started 11 years ago by Colleen
  • Latest reply from ScottNix
  • This topic is not resolved
  1. Hi
    I have installed Satellite Slideshow on my wordpress website and would like to know how I put it into the header please? The code for the slide show is [satellite custom=1]. I have a thematic child theme set up on my site.

    This is what I already have in my functions php page.

    <?php

    //
    // Custom Child Theme Functions
    //

    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    // $args = array(
    // 'show_home' => 'Home',
    // 'sort_column' => 'menu_order',
    // 'menu_class' => 'menu',
    // 'echo' => true
    // );
    // return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');

    // Unleash the power of Thematic's dynamic classes
    //
    // define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    // define('THEMATIC_COMPATIBLE_POST_CLASS', true);

    // Unleash the power of Thematic's comment form
    //
    // define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);

    // Unleash the power of Thematic's feed link functions
    //
    // define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    function remove_title($posttitle) {
    if (is_page() || is_404()) {
    return '';
    } else {
    return $posttitle;
    }
    }
    add_filter('thematic_postheader_posttitle', 'remove_title');
    function childtheme_favicon() { ?>
    <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/favicon.ico">
    <?php }

    // favicon front-end
    add_action('wp_head', 'childtheme_favicon');

    // favicon back-end
    add_action('admin_head', 'childtheme_favicon');

    // favicon login-page
    add_action('login_head', 'childtheme_favicon');

    ?>

    regards Colleen

    Posted 11 years ago #
  2. The forum has moved to http://thematictheme.com/forums

    Although you are probably looking for something like this.

    function childtheme_add_slider_shortcode() {
        echo do_shortcode("[satellite custom=1]");
    }
    add_action('thematic_header', 'childtheme_add_slider_shortcode', 6);

    You will also see a "6" above which is the priority, the "odds - 1,3,5,7 and 9" are already taken, so you will have to move it around to where you want using even numbers.

    References
    http://themeshaper.com/thematic/guide/?page_id=10
    http://css-tricks.com/snippets/wordpress/shortcode-in-a-template/

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.