Forums

[resolved] [Plugin: Dynamic Headers] Default theme (2 posts)

  1. dquelhas
    Member
    Posted 3 months ago #

    Hi there,

    I have successfully installed the Dynamic Headers plugin and all looks fine. It saves the settings, uploads the images, allows me to choose an image per page or post, etc..

    The problem I have is that in the installation notes they say that I should dump the code <?php show_media_header(); ?> in my theme file.

    So I have tried it in several pages and now it's sitting it in the header file (header.php) and the only thing it does is to duplicate my header image, as you can see in http://punchbag.dinisquelhas.com/

    What file should I edit in the default theme to insert this code snippet and make this very promising plugin to work?

    Thanks in advance,

    Dinis

  2. dquelhas
    Member
    Posted 3 months ago #

    Ok, I found a way to add the "dynamic headers" headers properly to the default theme with just a couple of changes:

    Under Appearance, choose editor.

    Start editing the header file (header.php).
    Find <body <?php body_class(); ?>> and place the <?php show_media_header(); ?> under it.

    Something like:

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

    Update the file.

    Now, start editing the css file (style.css).
    Find /* Begin Typography & Colors */.
    Find #header and add display: none; under this section.
    Then find /* Begin Structure */.
    Find #page and change margin: 20px auto; to margin: 0 auto;

    Update the file.

    This should put the headers in the right place.

    It brings a validation problem reported by the w3c validator, but I guess it's just a small change required from the plugin author:

    Line 28, Column 30: required attribute "type" not specified
    
    <script language="javascript">AC_FL_RunContent = 0;</script>

    Cheers,

    Dinis

Reply

You must log in to post.

About this Topic