WordPress.org

Forums

Dynamic Headers
How to use Dynamic Headers with Headway Theme (3 posts)

  1. OLAWRawhide
    Member
    Posted 5 years ago #

    This is how I got the Dynamic Headers plug-in to work on the Headway theme the way I wanted it to work.

    I modified the core-layout.php (../wp-content/themes/headway-166/library/core/core-layout.php) file to add the Dynamic-Header code. Core-layout.php is the file that lays out the header area of the pages. I found the section with the blog name and tagline, and put it into a table.

    To make adding things to the middle section easier at a later time, I added 3 columns to the table. Column 1 has the blog name and tagline code. Column 2 has the "do_action('headway_after_tagline');" code for the "after tagline" hook. and Column 3 has the codeline for the Dynamic Headers plug-in.

    This way, anything I add to the "after tagline" hook will be in the middle column.

    Here's the section of modified code:

    echo '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top">';
    			echo '<div id="top" class="'.$header_link_class.' header-link-top clearfix"><a href="'.get_option('home').'" title="'.get_bloginfo('name').'" rel="home'.$nofollow['home'].'" class="'.$header_link_class_inside.'">'.$header_link_content.'</a>';
    			do_action('headway_after_header_link');
    			echo '</div>'."\n";
    
    			echo (headway_get_skin_option('show-tagline')) ? '<h1 id="tagline">'.get_bloginfo('description').'</h1>'."\n" : "\n";
    			echo '</td><td>';
    			do_action('headway_after_tagline');
    			echo '</td><td align="right" valign="top">';
    			if(function_exists('show_media_header')){ show_media_header(); }
    			echo '</td></tr></table>';

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

  2. 21clg
    Member
    Posted 4 years ago #

    Hello

    Have you tried this with the most recent version 2.06 of Headway ??

    Sorry, I am not a techie and dont understand what you are talking about above with the tables... would I HAVE to do that to my Headway core-layout.php file in order for DynamicHeaders to work?

    Thanks!

  3. mommygeekology
    Member
    Posted 4 years ago #

    This hack isn't required for it to work, looks like it's just how this user decided to implement it. You can do this without editing core files, just by hiding the normal header and inserting the DynamicHeader code using an Easy Hook in Headway.

    - Caitlin, Headway Support Gal

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dynamic Headers
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic