• Resolved maxwell398

    (@maxwell398)


    Hello,

    Thank you for your plugin, it is very useful.
    I would like to know how I can get the “alt” tag from WordPress and add it in the images of the slider ?

    think’s a lot

    Maxime

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maxwell398

    (@maxwell398)

    voici le code en question

    	$images = get_post_meta($slider_id, 'vdw_gallery_id', true);
    
    			if(isset($images)){
    
    				if($randomize_slides == true){shuffle($images);}
    
    				foreach($images as $image){
    
    					$html .= "
    
    					<img class='swiper-slide' src='".wp_get_attachment_url($image, 'large')."' />";
    
    				}
    
    			}
    
    Plugin Author digitalapps

    (@digitalapps)

    alt tags are possible if you are using image block inside a slide. but if you are using image as a background then its not possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add the alt tag in the slider’ is closed to new replies.