• Hi, for the Hotel theme, I want to implement a current setting, so the current page has a different background colour to the rest of them. Code below for header.php:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?> <?php omega_attr( 'body' ); ?>>
    <?php do_action( 'omega_before' ); ?>
    <div class="<?php echo omega_apply_atomic( 'site_container_class', 'site-container' );?>">
    
    	<?php
    	do_action( 'omega_before_header' );
    	do_action( 'omega_header' );
    	do_action( 'omega_after_header' );
    	?>
    	<div class="site-inner">
    		<?php do_action( 'omega_before_main' );?>
    </div>
    </form>

    This is an extract of code for the overall css:

    a:hover,
    a:focus {
    	color: #008CBA;
    	text-decoration: none;
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘a:current in nav bar – different background colour for current page’ is closed to new replies.