Tips

I just started my new project.

Need to:

Hide title post

 .entry-title {
       display:none;
}

Replace Title WebSite with Logo

 ou have to edit the header.php file to do this. For these changes to persist even after updating the theme create a Child Theme first. Activate it and copy wp-content/themes/tonic/header.php to wp-content/themes/tonic-child/header.php
Edit this copied header.php file go to line 45 and hard code your image

<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="mylogo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>

WIDGET On Header Area

 
In functions.php:
//add a widget area in the header as described by TomHart
if ( function_exists ('register_sidebar') )
register_sidebar( array(
  'name' => __( 'Header Widgets Area', 'twentythirteen' ),
  'id' => 'sidebar-header',
  'description' => __( 'Header widgets area for my child theme.' ,  'twentythirteen' ),
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h3 class="widget-title">',
  'after_title' => '</h3>',
) );
and in header.php:
<?php if ( !function_exists('dynamic_sidebar') ||
!dynamic_sidebar('Header Widgets Area') ) :
 endif; ?>

Comments

Popular Posts