slider featured listings and events to show on all pages.
Hi there,
I need help on directory child theme, i want to show featured listings and events to show on all pages (slider). I am using vantage version 1.3.2
and wordpress Version 4.0.1.
Below is my header.php code.
<?php
// switch the type of the slider to display.
switch (get_option('enable_featured_main')) {
case "No Slider": break;
case "Listings slider": if ( is_front_page() ) {
get_template_part( 'featured', 'slider' );
}
else {}
?>
<?php break;
case "Events slider": ?>
<?php if ( is_front_page() ) {
get_template_part( 'events', 'featured' );
}
else {}
?>