Where to put the code in Willingness theme?
-
I am trying to replace the static picture with the slider I created. Where do I put the code in my theme? Here is my site https://www.robinsonandtoler.com
This is what my header.php looks like:
<header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </div><!--end site-branding --> <div id="bio-image"> <div class="logo main"> <img src="https://www.robinsonandtoler.com/wp-content/uploads/2013/12/header-image.png" alt="bio image" /> </div> <div class="logo sub"> <a href="https://www.trustedchoice.com/"> <img src="https://www.robinsonandtoler.com/wp-content/uploads/2013/12/tc-image.png" alt="tc image" /> </a> </div> <div id="header-right" class="header-sidebar"> <aside id="search-box"><!--start of #search-box --> <?php get_search_form(); ?> </aside><!-- end of #search-box --> </div><!--end of header right--> <!-- Custom Header code from custom-header.php --> <?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> </a> <?php } // if ( ! empty( $header_image ) ) ?> <!-- End Custom Header from custom-header.php --> <nav id="site-navigation" class="navigation-main" role="navigation"> <h1 class="menu-toggle"><?php _e( 'Menu', 'willingness' ); ?></h1> <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'willingness' ); ?>"><?php _e( 'Skip to content', 'willingness' ); ?></a></div> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav><!-- #site-navigation --> </header><!-- #masthead --> <div id="main" class="site-main">
Do I need to replace the custom header code, just some of it, or put the easing slider code somewhere else?
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Where to put the code in Willingness theme?’ is closed to new replies.