I'm trying to add a header image slider to my home page and I'm using the free Gateway Theme. When I paste the code into the header.php file both the new slider image and the old header image are shown on the page. How do I remove the old header image?
Here is the code from the header.php:
<?php
/**
* The header for template-home.php
*
* Displays all of the <head> section and everything up till <div id="content">
*
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<?php _e( 'Skip to content', 'gateway' ); ?>
<div class="bg-image bg-image-header bg-center-center">
<div class="site-branding">
<?php
$header_logo = get_theme_mod( 'header_logo', customizer_library_get_default( 'header_logo' ) ); if ( ! $header_logo ) { ?>
<h1 class="site-title">" rel="home" alt="<?php bloginfo( 'name' ); ?>"><?php bloginfo( 'name' ); ?></h1>
<h2><?php bloginfo( 'description' ); ?></h2>
<?php } else { ?>
"><img class="logo" src="<?php echo esc_url( $header_logo ); ?>" alt="">
<?php } ?>
</div><!-- .site-branding -->
</div><!-- .bg-image .bg-image-header .bg-center-center -->
<header id="masthead" class="site-header" role="banner">
<div class="stick">
<nav class="top-bar" data-topbar data-options="mobile_show_parent_link: true">
<ul class="title-area">
<li class="name">
<li class="toggle-topbar menu-icon"><span><?php _e('Menu','gateway'); ?></span>
<section class="top-bar-section">
<?php
$defaults = array(
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'right',
'depth' => 5,
'fallback_cb' => 'gateway_demo_header_nav', // located at 'inc/template-tags.php'
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s',
'walker' => new gateway_foundation_walker()
);
wp_nav_menu( $defaults );
?>
</section>
</nav>
<hr>
</div><!-- .sticky -->
</header><!-- .row #masthead -->
<div id="content" class="site-content">
https://wordpress.org/plugins/responsive-header-image-slider/
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 419 تاريخ : دوشنبه 18 مرداد 1395 ساعت: 12:42