• here’s the header…

    <body <?php body_class(); ?>>
    	<div id="page" class="hfeed site">
    		<header id="masthead" class="site-header" role="banner">
    
    			<a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    
                                    <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
    				<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    
    			</a>

    after <header id="masthead" class="site-header" role="banner"> i want to include and if/else statement.

    IF the page is the HOME page i want to:

    <?php
        echo do_shortcode("[metaslider id=54]");
    ?>

    otherwise i want to continue “ELSE” with the code that’s already in place.

    thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘using twentythirteen – need to hack header with "if/else"’ is closed to new replies.