• when i opt to change the header in customisation, it places my custom header below the actual header. i was wondering how to replace the default title/tagline header with my own banner/title.

    the contents of header.php read as below

    <!DOCTYPE html><!-- HTML 5 -->
    <html <?php language_attributes(); ?>>
    
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    
    <?php // Get Theme Options from Database
    	$theme_options = dynamicnews_theme_options();
    ?>
    
    <div id="wrapper" class="hfeed">
    
    	<div id="header-wrap">
    
    		<header id="header" class="container clearfix" role="banner">
    
    			<div id="logo" class="clearfix">
    
    				<?php do_action('dynamicnews_site_title'); ?>
    
    				<?php // Display Tagline on header if activated
    				if ( isset($theme_options['header_tagline']) and $theme_options['header_tagline'] == true ) : ?>
    					<h2 class="site-description"><?php echo bloginfo('description'); ?></h2>
    				<?php endif; ?>
    
    			</div>
    
    			<div id="header-content" class="clearfix">
    				<?php get_template_part('inc/header-content'); ?>
    			</div>
    
    		</header>
    
    	</div>
    
    	<div id="navi-wrap">
    		<nav id="mainnav" class="container clearfix" role="navigation">
    			<h4 id="mainnav-icon"><?php _e('Menu', 'dynamicnewslite'); ?></h4>
    			<?php
    				// Get Navigation out of Theme Options
    				wp_nav_menu(array('theme_location' => 'primary', 'container' => false, 'menu_id' => 'mainnav-menu', 'echo' => true, 'fallback_cb' => 'dynamicnews_default_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0));
    			?>
    		</nav>
    	</div>
    
    	<?php // Display Custom Header Image
    		dynamicnews_display_custom_header(); ?>

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have exactly the same problem. Do I need to buy an upgrade. I do not need all the extra’s in the upgrade, only this one header problem although I think it isn’t header that I have to change but Logo?
    I tried to add my banner as a background image in the css, but it doesn’t show.
    The site I’m working on is: wp.brandweerverhalen.nl

    In the meantime I tried several options I found here in the forum.
    I still haven’t solved the problem.
    In my child-theme I inserted the following code (according to one suggestion here)
    #logo {
    width: 1340px;
    height: 160px;
    background-image: url(images/banner.jpg);
    background-size: 1340, 160px;
    This resulted in my banner being showed in the header section, but it has some serious padding which I cannot remove.
    Second problem: I wanted to keep the link to home in my image.
    Can anyone help me with this?
    wp.brandweerverhalen.nl

    I solved it by adding the following line in my child style.css
    #header {
    background: url(images/bannerbg.jpg);
    }
    The bannerbg.jpg is in my images directory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘using a custom header’ is closed to new replies.