Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------
- This is a section of the default header.php file, about 3/4 of the way down:
- ----------------------------------------------------------------------------
- <div class="container group">
- <div class="container-inner">
- <?php if ( ot_get_option('header-image') == '' ): ?>
- <div class="group pad">
- <?php echo alx_site_title(); ?>
- <?php if ( ot_get_option('site-description') != 'off' ): ?><p class="site-description"><?php bloginfo( 'description' ); ?></p><?php endif; ?>
- </div>
- <?php endif; ?>
- <?php if ( ot_get_option('header-image') ): ?>
- <a href="<?php echo home_url('/'); ?>" rel="home">
- <img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>">
- </a>
- <?php endif; ?>
- <?php if ( has_nav_menu('header') ): ?>
- ----------------------------------------------------------------------------------------------------------
- Here is the same section where I've commented out the original code and added a new container and heading:
- ----------------------------------------------------------------------------------------------------------
- <div class="container group">
- <div class="container-inner">
- <?php if ( ot_get_option('header-image') == '' ): ?>
- <div class="group pad">
- <!-- BEGIN default site title and description
- <?php echo alx_site_title(); ?>
- <?php if ( ot_get_option('site-description') != 'off' ): ?><p class="site-description"><?php bloginfo( 'description' ); ?></p><?php endif; ?>
- END default site title and description -->
- <!-- BEGIN custom heading -->
- <div class = "myHeading">
- <h1>This Is My Heading</h1>
- </div>
- <!-- END custom heading -->
- </div>
- <?php endif; ?>
- <?php if ( ot_get_option('header-image') ): ?>
- <a href="<?php echo home_url('/'); ?>" rel="home">
- <img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>">
- </a>
- <?php endif; ?>
- <?php if ( has_nav_menu('header') ): ?>
- ------------------------------------------------------------------
- You could then style the custom heading with something like this:
- ------------------------------------------------------------------
- .myHeading h1 {
- color: #fff;
- }
Advertisement
Add Comment
Please, Sign In to add comment