Syntax error in Slider.php
-
Hey everyone, Id really appreciate if someone could help me out here;
I went into the Slider php folder to see if I could get rid of the Description box under the Headline on the slider.I copied, and then deleted this :’><div class=’slider-caption container’I updated the file, refreshed the page and got an error that said :unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING
So i pasted back the line that i had previously deleted, and i must have pasted it incorrectly, because it did not return to the original format. Instead, my site is blank and says:
Parse error: syntax error, unexpected ‘slider’ (T_STRING), expecting ‘,’ or ‘;’ in /home2/alexander/public_html/wp-content/themes/bose/slider.php on line 13Here is the whole section:
<?php global $option_setting;
$count = 1;
if (isset($option_setting[‘slider-enable-on-home’])) :
if( $option_setting[‘slider-enable-on-home’] && (is_front_page() || is_home() )) :
if ( count($option_setting[‘slider-main’]) > 0 ) : ?><div id=”slider-wrapper”>
<div class=”container frame-c”>
<ul class=”bxslider”>
<?php
foreach ( $option_setting[‘slider-main’] as $slider ) {
if ($count > 5) { ; }
echo ”- <img src=’ “.$slider[‘image’]. ‘><div class=’slider-caption container'<div class=’slider-caption-title’>”.$slider[‘title’].”.$slider[‘description’].”</div></div>
“;
$count++;
}
?></div>
</div><?php endif;
endif;
endif;?>The error is somewhere on line 13 but I am totally stumped. Does anyone know whats wrong? Thanks so much for reading. Heres the link to my site: https://culturetorch.com/
- The topic ‘Syntax error in Slider.php’ is closed to new replies.