I was wondering if anyone can help me to get this code working…?
<?php if (is_front_page() && get_option('of_slider_on_off') == 'true' ) { ?>
<?php require('featured-slider.php'); ?>
<?php }elseif (is_front_page() && get_option('of_slider_on_off') == 'false' ) { ?>
<?php require('featured-countdown.php'); { ?>
<?php }else {
echo '';
}
?>
You had an extra bracket (commented) that you didn’t need. Also no need for the repeated php tags.
If you use a proper IDE with syntax highlighting e.g. NetBeans, you will find such problems get underlined in red so you won’t get stuck.