Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Adding logo and removing blog title/description « ThemeShaper Forums

ThemeShaper Forums » Thematic


Adding logo and removing blog title/description

(2 posts)
  • Started 3 years ago by rwheeler
  • Latest reply from wlanni
  • This topic is not resolved
  1. rwheeler

    So I am complete newbie here and am starting to lose the hair I have left. :-)

    I have experience creating basic XHTML/CSS websites but want to offer clients the ability to have a WordPress site to provide a CMS. I have started with Thematic as the theme and created a child theme from that. My question is and will probably be very simple to most people in here, how do I remove the blog title and description from my header and add my logo left aligned and centered vertically in the header area? Once I get that I can hopefully figure out how to then move the navigation bar to the right and add some social media links and search box in the upper right corner of the header.

    Any help or a push in the right direction would be greatly appreciated.

    Posted 3 years ago #
  2. wlanni

    Hello rwheeler!

    I know this has been answered, but maybe we haven't tagged the previous post well to have it show up in search.

    here's what you do:

    1. Copy the thematicsamplechildtheme directory and contents out of the thematic theme and into your wp-content/themes directory. Rename the directory, open the styles.css and rename the style. Then in your wp-admin set your new child theme to be the active theme.
    2. open your functions.php file in your new child theme.
    3. You'll want to remove the existing site title and tagline. In the blank space before the closing ?> php mark, add the following code:
      //remove WordPress site title, blog description
      function unhook_thematic_functions() {
    4. Next, you'll want to add in custom code to place your logo in the header area:
      //Add in custom branding
      function childtheme_logo() { ?>
      <div id='branding-logo'>
          	<a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?> &raquo; <?php bloginfo('description') ?>">
          		<img id="logo" src="<?php echo bloginfo('stylesheet_directory') ?>/images/IMAGENAME.png" alt="<?php bloginfo('name') ?>: <?php bloginfo('description') ?>" />
      <?php }
    5. OK. That's all fine and dandy, but what about adding social media and search into the header? I think the easiest way for you to deal with this is to add a custom widget area into your header, and then install a social media plugin, and use the search widget. Here's how to add a widget into the header:
      // This will create header widget area
      function my_widgets_init() {
             	'name' => 'Header Aside',
             	'id' => 'header-aside',
             	'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
             	'after_widget' => "",
      		'before_title' => "<h3 class=\"widgettitle\">",
      		'after_title' => "</h3>\n",
      add_action( 'init', 'my_widgets_init' );
      // adding the widget area to your child theme
      function my_header_widgets() {
      	if ( function_exists('dynamic_sidebar') && is_sidebar_active('header-aside') ) {
      	    echo '<div id="header-aside" class="aside">'. "\n" . '<ul class="xoxo">' . "\n";
      	    echo '' . "\n" . '</div><!-- #header-aside .aside -->'. "\n";
      add_action('thematic_header', 'my_header_widgets', 7);

    Hope that helps. I used the above to make work, and used Brian Freytag's Social Media Widget to get the social media buttons across the top.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183