Change header in a slider header
-
Hi there,
I want to make the header a slider – Randomizing the slider isn’t what I want.
I did find the header.php file but not exactly sure what to change to make the header a slider instead of a static image.
Even if someone can let me know where to add in php code from a slider plugin in the header.php file.
The code is:
‘<header id=”masthead” class=”site-header row container” role=”banner”>
<div class=”site-branding col-md-12″>
<?php if((of_get_option(‘logo’, true) != “”) && (of_get_option(‘logo’, true) != 1) ) { ?>
<h1 class=”site-title logo-container”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
<?php
echo “<img class=’main_logo’ src='”.of_get_option(‘logo’, true).”‘ title='”.esc_attr(get_bloginfo( ‘name’,’display’ ) ).”‘></h1>”;
}
else { ?>
<h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo(‘description’) ?></h2>
<?php
}
?>
</div>
</header>’Thanks in advance!
- The topic ‘Change header in a slider header’ is closed to new replies.