WordPress.org

Ready to get started?Download WordPress

Forums

How can I use Dynamic Header plugin in Suffusion? (4 posts)

  1. Valderobi
    Member
    Posted 4 years ago #

    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.

  2. Sayontan Sinha
    Member
    Posted 4 years ago #

    Modify the function suffusion_display_header() in actions.php

  3. Valderobi
    Member
    Posted 4 years ago #

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

  4. mbersche
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic