• Resolved nowhere-man

    (@nowhere-man)


    Hi,

    When I put my option one code [<?php if(function_exists(‘show_media_header’)){ show_media_header(); } ?>] into my header.php the images from wp_content appear above or below the original header. The original header remains and still has the title on it. The new image from wp_content is above the original header if code placed at top of header css (and converserly) the dynamic header image appears below the original header image. Any idea how to fix this? Here’s header.php in K2

    <?php
    // Prevent users from directly loading this theme file
    defined( ‘K2_CURRENT’ ) or die ( ‘Error: This file can not be loaded directly.’ );
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”http://purl.org/uF/2008/03/ http://purl.org/uF/hAtom/0.1/”&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”template” content=”K2 <?php k2info(‘version’); ?>” />

    <meta name=”google-site-verification” content=”vD2af3Ai150WJMRdQlsNaGJ4XSQHekOdjl-sZFNzR1o” />

    <title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>

    <link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(‘template_url’); ?>/style.css” />

    <?php /* Child Themes */ if ( K2_CHILD_THEME ): ?>
    <link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(‘stylesheet_url’); ?>” />
    <?php endif; ?>

    <?php if ( is_singular() ): ?>
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php endif; ?>

    <?php wp_head(); ?>

    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    </head>

    <body class=”<?php k2_body_class(); ?>”>

    <?php /* K2 Hook */ do_action(‘template_body_top’); ?>

    <div id=”page”>

    <?php /* K2 Hook */ do_action(‘template_before_header’); ?>

    <div id=”header”>

    <?php locate_template( array(‘blocks/k2-header.php’), true ); ?>

    <?php /* K2 Hook */ do_action(‘template_header’); ?>

    </div> <!– #header –>

    <script type=”text/javascript”>

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-6311544-3’]);
    _gaq.push([‘_trackPageview’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘http://www&#8217;) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    <hr />

    <?php /* K2 Hook */ do_action(‘template_before_content’); ?>

  • The topic ‘Dynamic Header in Plugin in K2 malfunctioning’ is closed to new replies.