Support » Plugins » How to add "alt text" in slider??? PLEASE HELP!!!

  • Hi all,
    I have been searching everywhere to find out how to get Alt text working on the slider (the “Evolution” theme from TemplateSquare.com) Can someone PLEASE help me?
    The “slider.php” looks like this:

    <?php
    $sliderarrange = get_option('templatesquare_slider_arrange');
    $sliderdisabletext = get_option('templatesquare_slider_disable_text');// cycle slider text
    $sliderdisablenav = get_option('templatesquare_slider_disable_nav');// cycle navigation
    ?>
    <div id="slideshow">
    <ul id="slider">
    	<?php
    
        query_posts("post_type=slider&post_status=publish&showposts=-1&order=" . $sliderarrange);
        while ( have_posts() ) : the_post();
    
        $prefix = 'ts_';
        $custom = get_post_custom($post->ID);
        $cf_slideurl = (isset($custom[$prefix."slider-url"][0]))?$custom[$prefix."slider-url"][0] : "";
        $cf_slidertext = (isset($custom[$prefix."slider-text"][0]))?$custom[$prefix."slider-text"][0] : "";
        $cf_thumb = (isset($custom[$prefix."thumb"][0]))? $custom[$prefix."thumb"][0] : "";
    
        $output="";
        $output .='
    <li>';
    
        if($cf_slideurl!=""){
        $output .= '<a href="'.$cf_slideurl.'">';
        }
    
        //slider images
        if(has_post_thumbnail( get_the_ID()) || $cf_thumb!=""){
                if($cf_thumb!=""){
                    $output .= '<img src="'.$cf_thumb.'" alt="" />';
                }else{
                    $output .= get_the_post_thumbnail($post->ID,'slider-home-image');
                }
        }
    
        if($cf_slideurl!=""){
        $output .= '</a>';
        }
    
        //slider text
        if($sliderdisabletext!=true){
            if($cf_slidertext!=""){
                if($cf_slideurl!=""){
                $output .= '<div class="slidertext"><h1><a href="'.$cf_slideurl.'">'.get_the_title().'</a></h1>'.$cf_slidertext.'</di>';
                }else{
                $output .= '<div class="slidertext"><h1>'.get_the_title().'</h1>'.$cf_slidertext.'</di>';
                }
            }
        }
    
        $output .='</li>
    ';
    
        echo $output;
    
        endwhile;
        wp_reset_query();
        ?>
    
    <?php if($sliderdisablenav!=true){ ?>
    <div id="cycle-prev"></div>
    <div id="cycle-next"></div>
    <?php } ?>
    </div><!-- end slideshow -->

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    Forum Moderator

    I’m sorry but as you appear to be using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not have access to, nor do we support, commercial products here.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add "alt text" in slider??? PLEASE HELP!!!’ is closed to new replies.