Hello there,
Thank you for reaching out to us here.
Decrease the main slider’s height
1. Install and activate the TC Custom JavaScript plugin
2. Go To Appearance > Custom JavaScript
3. Paste the following code into the provided box
jQuery(function($) {
function headerDecrease() {
var slideHeight = $('#slideshow').height();
var newHeight = slideHeight - 150; //Replace 150 with the value you want
$('#slideshow').height(newHeight);
}
$(document).ready(headerDecrease);
$(window).on('resize',headerDecrease);
});
4. Update
Add next/previous arrows
1. Edit the inc/slider.php file. Find this line of code:
<div id="slideshow" class="header-slider" data-speed="<?php echo esc_attr($speed); ?>">
2. Then insert the following code underneath it:
<nav class="slides-navigation">
<a href="#" class="next"><i class="fa fa-angle-right"></i></a>
<a href="#" class="prev"><i class="fa fa-angle-left"></i></a>
</nav>
So it will look like:
<div id="slideshow" class="header-slider" data-speed="<?php echo esc_attr($speed); ?>">
<nav class="slides-navigation">
<a href="#" class="next"><i class="fa fa-angle-right"></i></a>
<a href="#" class="prev"><i class="fa fa-angle-left"></i></a>
</nav>
3. Apply the following CSS code into Additional CSS option:
.slides-navigation {
top: 50%;
margin: 0 auto;
position: absolute;
z-index: 3;
top: 46%;
width: 100%;
}
.slides-navigation a {
position: absolute;
font-size: 40px;
color: #fff;
}
.slides-navigation a.next {
right: 15px;
}
.slides-navigation a.prev {
left: 15px;
}
As you are editing the theme’s core file, you should take it at your own risk. The changes you have made there will be lost once the theme gets updated in the future. You should do adjustment/modification again.
Regards,
Kharis