WordPress.org

Support

Support » How-To and Troubleshooting » How can I use Dynamic Header plugin in Suffusion?

How can I use Dynamic Header plugin in Suffusion?

  • Valderobi
    Member

    @valderobi

    Hi there!!

    I´m just started with WordPress. I´m trying differents themes, and I really liked the Suffusion Theme.
    I would like to have a dynamic header but I don´t find the way to do that with the Dynamic Header plugin (I have all my custom headers uploads in the directory).

    In other themes, I just copy the next code:

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

    in the header.php file, and it works, but with the Suffusion Theme, I can´t.
    Could anybody help me to put the code above in the right place, please? I read that maybe I must modify the action.php, but I don´t pretty sure.

    My blog is http://www.comicsen8mm.com if you want to see the actual header.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sayontan Sinha
    Participant

    @sayontan

    Modify the function suffusion_display_header() in actions.php

    Valderobi
    Member

    @valderobi

    Thanks, Sayontan!!!!!!!!!!!

    I tried to add the code mentioned above <?php if(function_exists(‘show_media_header’)){ show_media_header(); } ?>

    to the correct place here —– suffusion_display_header() in the actions.php file and it broke the file.

    Here is what is there now under that header area in the actions.php file

    function suffusion_display_header()

    { global $suf_sub_header_vertical_alignment, $suf_header_fg_image_type, $suf_header_fg_image; ?>

    <div id=”header” class=”fix”>

    <?php $header = $suf_header_fg_image_type == ‘image’ ? “<img src=’$suf_header_fg_image’ alt='”.get_bloginfo(‘name’).”‘/>” : get_bloginfo(‘name’);

    if ($suf_sub_header_vertical_alignment == “above”) { ?>

    <div class=”description”><?php echo bloginfo(‘description’);?></div>

    <div class=”blogtitle”>“><?php echo $header;?></div>

    <?php

    }

    else { ?>

    <div class=”blogtitle”>“><?php echo $header;?></div>

    <div class=”description”><?php echo bloginfo(‘description’);?></div>

    <?php

    Where should insert
    <?php if(function_exists(‘show_media_header’)){ show_media_header(); } ?>

    where in the code above? I put it at the beggining, end and in place of and none of those worked.

    I would love for this plugin to work with suffusion.

    thank you.
    Melissa

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I use Dynamic Header plugin in Suffusion?’ is closed to new replies.