Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8747
    ronjak
    Member

    I have a small slideshow I want to add to the header, specifically the right side where the search box is. The plug in says to put in this PHP code, but I am not sure where, I tried several places on the header.php file, but I can not get it in the right side.

    Add this piece of code to where ever in your website you want to place the slideshow:

    <?php do_action(‘slideshow_deploy’, ’71’); ?>

    website: http://jakubisin.com/southernAV/

    Header.php code:
    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id=”main”>
    *
    * @package Catch Themes
    * @subpackage Catch Everest
    * @since Catch Everest 1.0
    */
    ?><!DOCTYPE html>
    <!–[if IE 6]>
    <html id=”ie6″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if IE 7]>
    <html id=”ie7″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if IE 8]>
    <html id=”ie8″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if !(IE 6) | !(IE 7) | !(IE 8) ]><!–>
    <html <?php language_attributes(); ?>>
    <!–<![endif]–>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <title>
    <?php
    if ( defined( ‘WPSEO_VERSION’ ) ) {
    // WordPress SEO is activated
    wp_title();

    } else {

    // WordPress SEO is not activated
    wp_title( ‘|’, true, ‘right’ );
    }
    ?>
    </title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
    <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>

    <?php
    /**
    * catcheverest_before hook
    */
    do_action( ‘catcheverest_before’ ); ?>

    <div id=”page” class=”hfeed site”>

    <?php
    /**
    * catcheverest_before_header hook
    */
    do_action( ‘catcheverest_before_header’ ); ?>

    <header id=”masthead” role=”banner”>

    <?php
    /**
    * catcheverest_before_hgroup_wrap hook
    */
    do_action( ‘catcheverest_before_hgroup_wrap’ ); ?>

    <div id=”hgroup-wrap” class=”container”>

    <?php
    /**
    * catcheverest_hgroup_wrap hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * catcheverest_header_left 10
    * catcheverest_header_right 15
    */
    do_action( ‘catcheverest_hgroup_wrap’ ); ?>

    </div><!– #hgroup-wrap –>

    <?php
    /**
    * catcheverest_after_hgroup_wrap hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * catcheverest_header_menu 10
    */
    do_action( ‘catcheverest_after_hgroup_wrap’ ); ?>

    </header><!– #masthead .site-header –>

    <?php
    /**
    * catcheverest_after_header hook
    */
    do_action( ‘catcheverest_after_header’ ); ?>

    <?php
    /**
    * catcheverest_before_main hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * catcheverest_slider_display 10
    * catcheverest_homepage_headline 15
    */
    do_action( ‘catcheverest_before_main’ ); ?>

    <div id=”main” class=”container”>

    <?php
    /**
    * catcheverest_main hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * catcheverest_homepage_featured_display 10
    */
    do_action( ‘catcheverest_main’ ); ?>

    #8766
    Sakin
    Keymaster

    @ronjak: Ask more detail with the plugin author. The do_action is defining the action hook. We have our own action hooks that you can see it.

    It will be best if they provide the widget and you can simple add in any sidebar. In Catch Everest PRo theme there is sidear for header right as well. See the additional feature in Catch Everest Pro at http://catchthemes.com/theme-instructions/catch-everest-pro/

    But yes you can try to add the above hook in the file sidebar-header-right.php jsut above
    </div><!-- #header-right .widget-area -->

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘add slideshow to header’ is closed to new replies.