How to use Dynamic Headers with Headway Theme
-
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>';
https://www.ads-software.com/extend/plugins/dynamic-headers/
- The topic ‘How to use Dynamic Headers with Headway Theme’ is closed to new replies.