Forum Replies Created
-
in reply to: Image Alt Tags missing on home page
I’m not a developer, so without very specific instructions, I’m not sure how to make the code updates. I need to know exact code to add, and which files to add them to.
in reply to: Image Alt Tags missing on home pageThat’s not our website. Our URL is metalpi.com and I’m still not seeing alt text. I really need this issue fixed.
in reply to: Image Alt Tags missing on home pageI updated my media.php file with code you supplied. When I inspect the images on the live site, I’m not seeing the alt text. Here’s the current code with your updates, please advise:
<?php
/**
* Shortcode attributes
* @var $atts
* @var $type
* @var $image
* @var $video
* @var $alignment
* @var $width
* @var $animation
* @var $link
* Shortcode class
* @var WPBakeryShortCode_Media
*/
$output = ”;
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );
$output = ‘<div class=”wpb_content_element media media_el animate_onoffset”>’;
$width_style=””;
if($alignment == ‘center’)
$width_style = ‘style=”width:’.$width.’px;position:relative; left:50%; margin-left:-‘.($width/2).’px;” ‘;
if($type == ‘image’){
if(isset($image)){
if(!empty($image)) {
if(strpos($image, “https://”) !== false){
$image = $image;
} else {
$bg_image_src = wp_get_attachment_image_src($image, ‘full’);
$image = $bg_image_src[0];
if(empty($image))
$image = codeless_img_placeholder();
$alt = get_post_meta(get_post_thumbnail_id(), ‘_wp_attachment_image_alt’, true);
}
}
if($link!=”#” && $link!=””)
else
$output .= ‘
‘;
$output .= ‘
‘;
}
}
if($type == ‘video’){
$output .= ‘<div class=”video_embeded” ‘.$width_style.’>’;
if(isset($video)){
global $wp_embed;
$output .= $wp_embed->run_shortcode(‘[embed class="animation_'.$animation.' video alignment_'.$alignment.' '.$width_style.'"]‘.trim($video).’[/embed]‘);
}
$output .= ‘</div>’;
}
$output .= ‘</div>’;
echo $output;
?>
in reply to: Image Alt Tags missing on home pageHello Mihaila – adding the 2 lines of code you supplied should allow the alt text to show for all images correct? What file does the code go into?
in reply to: Image Alt Tags missing on home pageHello. It looks like this answer to allowing alt text is specifically for this users images….portfolio square images etc. I’m using Specular and would like all images to have alt text. Please advise.
You should also let new customers know that you do this. Alt text is huge for SEO. I’ve had our site up for months without knowing that all my alt text is missing.
in reply to: Codeless slider mobile font sizesThat fixed it! Thank you so much. It might be a good idea to note this up front to new customers. The h1 text on mobile, is just way too small…at least for my liking. Pointing this out will save everyone a lot of time in the future.
Cheers,
Mark
in reply to: Codeless slider mobile font sizesI have added my wp credentials to my profile. Please take a look and let me know what you think about the custom css.
in reply to: Codeless slider mobile font sizesHello Mihaila. I added the custom CSS you sent. Still is not working. Any thoughts on why not?
in reply to: Codeless slider mobile font sizesHello. I’ve been messing around with this workaround for a few hours and I’m having no luck. Working on a holding site at trinityrebar.com – when I do as instructed above, I do not get larger type in the mobile slider.