ThemeShaper Forums » Thematic

[closed]

slideshow and logo image in header

(2 posts)
  • Started 9 years ago by NERPSDHH
  • Latest reply from Chris
  • This topic is not resolved
  1. NERPSDHH
    Member

    Dear Forum members:
    I am very new to WP, but have studied it enough to decide on Thematic to build a non-blog site.

    One of the first challenges is to add a slideshow (by CreativeClans.com) and an image (not a background) to the header. I'm trying to place the slideshow flushed left and the image flushed right. There is no need for a blog title. I think this can be done using the #branding div, but am stuck on how to alter it so that both elements fit well.

    I have checked the forums for a solution, but the closest I come up with are:
    http://forums.themeshaper.com/topic/insert-flaswf-into-branding#post-7184
    http://forums.themeshaper.com/topic/adding-flash-to-header#post-4355
    both of which are useful to an extent.

    I am using WP 2.8.4, and modifying Thematic via a child theme.

    Many thanks in advance for your help.

    Mikka

    Posted 9 years ago #
  2. Hi Mikka,

    try the following code in your child theme's functions.php:

    // First we remove the thematic_brandingopen() .. we're going to change it for the flash part.
    // And we remove thematic_blogtitle() and thematic_blogdescription 'cause both are no longer needed.
    function remove_branding() {
    		remove_action('thematic_header','thematic_brandingopen',1);
    		remove_action('thematic_header','thematic_blogtitle',3);
    		remove_action('thematic_header','thematic_blogdescription',5);
    }
    add_action('init', 'remove_branding');
    
    // We create #header_flash and wrap #header-flash and #branding #header-box
    function childtheme_brandingopen() { ?>
    	<div id="header_box">
    		<div id="header_flash"
    
    			<--- Here goes your code for the flash part --->
    
    		</div>
        	<div id="branding">
    <?php }
    add_action('thematic_header','childtheme_brandingopen',1);
    
    // Now we need to close #header-box
    function header_box_close() { ?>
    	</div>
    <?php }
    add_action('thematic_header', 'header_box_close', 9);

    .. and this one is for your style.css:

    #header_box {
    	clear: both;
    	margin: 0 auto;
    	overflow: hidden;
    	position: relative;
    	width: 960px;
    }
    
    #branding {
      float: right;
      width: 620px;
    /* Don't forget to add your background here */
    }
    
    /* Moves the new widgetized area to the right and levels it with #branding */
    #header-flash {
      float: left;
      width: 300px;
      padding: 88px 0 44px;
    }
    
    /* This will clear the floats and keeps the access bottom line
    from jumping into the air */
    #access {
      clear: both;
    }

    Chris

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.