Title: Syntax error in Slider.php
Last modified: August 30, 2016

---

# Syntax error in Slider.php

 *  [Alexander22](https://wordpress.org/support/users/alexander22/)
 * (@alexander22)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-sliderphp/)
 * 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 13
 * Here 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 ”
    - <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: [http://culturetorch.com/](http://culturetorch.com/)

The topic ‘Syntax error in Slider.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bose/1.2.0.3/screenshot.png)
 * Bose
 * [Support Threads](https://wordpress.org/support/theme/bose/)
 * [Active Topics](https://wordpress.org/support/theme/bose/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bose/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bose/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [T_STRING](https://wordpress.org/support/topic-tag/t_string/)

 * 0 replies
 * 1 participant
 * Last reply from: [Alexander22](https://wordpress.org/support/users/alexander22/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-sliderphp/)
 * Status: not resolved