WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Headers
Dynamic Headers with PressWork theme? (1 post)

  1. crazyregcomics
    Member
    Posted 2 years ago #

    Hi all. I'm using WordPress 3.2.1, and a theme called PressWork.

    I really want this plugin to work, but I cannot seem to get it going.

    Using the below line of code that is supplied to us from the plugin's instructions page...

    <?php if(function_exists('show_media_header')){ show_media_header(); } ?>
    

    ...I've added it to my header.php file, right at the very end of all the other code (because it will not appear centered anywhere else). This is my header.php code:

    <?php
    /**
     * The template for displaying the header.
     *
     * Displays all of the <head> section and everything up till <ul id="main-wrapper">
     * Includes all the action blocks for the header.
     *
     * @since PressWork 1.0
     */
     ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    <title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } if ( $paged > 1 ) { echo (' | Page '); echo $paged; } ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link href='http://fonts.googleapis.com/css?family=<?php echo str_replace(" ", "+", pw_theme_option("body_font")); ?>|<?php echo str_replace(" ", "+", pw_theme_option("headers_font")); ?>' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php if(pw_theme_option("toolbox")=="on" && current_user_can( "edit_theme_options" )) echo '<link rel="stylesheet" href="'.PW_THEME_URL.'/admin/css/toolbox-styles.css" type="text/css" media="screen" />'; ?>
    <?php pw_header_css(); ?>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php $favicon = pw_theme_option('favicon'); if(!empty($favicon)) echo '<link rel="shortcut icon" type="image/x-icon" href="'.$favicon.'" />'."\n"; ?>
    <meta name="viewport" content="width=device-width" />
    
    <?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>
    <?php wp_enqueue_script('pw_effects_js'); ?>
    <?php
    if(current_user_can('edit_theme_options')) {
    	wp_enqueue_style( 'farbtastic' );
    }
    ?>
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <?php pw_actionCall('pw_body_top'); ?>
    <div id="body-wrapper">
        <header id="header-main" role="banner"> <!-- begin header -->
    		<?php pw_actionBlock('pw_header'); ?>
        </header> <!-- end header -->
        <ul id="main-wrapper">
    
    <?php if(function_exists('show_media_header')){ show_media_header(); } ?>
    

    This works, BUT it screws with my sidebar. The sidebar gets moved to beneath the main content area. :(

    Other than that, the plugin is great. I just cannot use it unless I can get it to not mess with the sidebar. *sigh*

    I emailed the dev, but he is only willing to help if I pay $25 for his time. I may end up doing that, but it would be nice if there was more documentation on this.

    http://wordpress.org/extend/plugins/dynamic-headers/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by crazyregcomics
  • This topic is not resolved
  • WordPress version: 3.2.1