Title: Featured Content Slider Help &#8211; PHP
Last modified: August 20, 2016

---

# Featured Content Slider Help – PHP

 *  [depruett](https://wordpress.org/support/users/depruett/)
 * (@depruett)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/)
 * I’m using a theme that has a built-in featured content slider. It has a text 
   overlay at the bottom that I’d like to disable, but that isn’t offered as an 
   option in the theme settings. I know a little about PHP, but not enough to be
   able to isolate that particular piece of code.
 * I’ve tried some other plug-ins as replacements (slideshow and content slider 
   plug-ins), but none of them integrate as well as the built-in one – except, again,
   I’m finding the text overlay feature really intrusive.
 * I have posted the code below. If there’s anyone proficient in PHP who could take
   a look, I’d be very grateful.
 * Thanks!
    David
 * ‘<?php $featured_category = get_theme_option(‘featured_category’); $featured_number
   = get_theme_option(‘featured_number’); ?>
 * <?php if(($featured_category == “Choose a category:”) || ($featured_number ==‘
   Number of post:’)) { ?>
 * <?php { /* nothing */ } ?>
 * <?php } else { ?>
 * <div id=”featured”>
    <div id=”featured-title”>Featured News</div> <div id=”Gallerybox”
   > <script type=”text/javascript”> function startGallery() { var myGallery = new
   gallery($(‘myGallery’), { timed: true, delay: 5000, showArrows: true, showCarousel:
   false, embedLinks: true }); document.gallery = myGallery; } window.onDomReady(
   startGallery); </script>
 * <div id=”myGallery”>
 * <?php
    $my_query = new WP_Query(‘cat=’. $featured_category . ‘&’ . ‘showposts
   =’. $featured_number . ‘&’ . ‘orderby=date’); while ($my_query->have_posts()):
   $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID();?
   >
 * <div class=”imageElement post-<?php the_ID(); ?>”>
    <?php $values = get_post_custom_values(“
   feat-img”); if (isset($values[0])) : ?> <img src=”<?php $values = get_post_custom_values(“
   feat-img”); echo $values[0]; ?>” class=”full” alt=”<?php the_title(); ?>” /> 
   <?php else : ?> <img src=”<?php echo get_featured_slider_image(); ?>” class=”
   full” alt=”<?php the_title(); ?>” /> <?php endif; ?> <h3>” title=”<?php the_title();?
   >”><?php the_title(); ?></h3> <p><?php the_featured_excerpt($excerpt_length=30);?
   ></p> ” title=”open image” class=”open”> </div><!– IMAGE ELEMENT POST <?php the_ID();?
   > END –>
 * <?php endwhile;?>
 * </div><!– MYGALLERY END –>
    </div><!– GALLERBOX END –> </div><!– FEATURED END–
   >
 * <?php } ?> ‘

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [rhender](https://wordpress.org/support/users/rhender/)
 * (@rhender)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450236)
 * Do you have a URL for reference? I may be able to help you then.
 *  Thread Starter [depruett](https://wordpress.org/support/users/depruett/)
 * (@depruett)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450242)
 * Thanks,
 * The URL is [http://www.darkcarnivalfilmfest.com](http://www.darkcarnivalfilmfest.com)
 *  [rhender](https://wordpress.org/support/users/rhender/)
 * (@rhender)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450257)
 * I took a look.
 * I would first try to add the following rule to the top of your stylesheet in 
   the WordPress dashboard. Like after your main rules like body etc…
 * .slideInfoZone {
    display: none; }
 * It may be as simple as that, so do that and see if it works.
 *  Thread Starter [depruett](https://wordpress.org/support/users/depruett/)
 * (@depruett)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450267)
 * That did it! Thanks so much.
 * David
 *  [rhender](https://wordpress.org/support/users/rhender/)
 * (@rhender)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450268)
 * Sure. No problem!
 * Glad it worked.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Featured Content Slider Help – PHP’ is closed to new replies.

## Tags

 * [Featured Content Slider](https://wordpress.org/support/topic-tag/featured-content-slider/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [rhender](https://wordpress.org/support/users/rhender/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/featured-content-slider-help-php/#post-2450268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
