Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

  • 8 years, 1 month ago mbettenhausen
    Participant

    Expired

    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.

    8 years, 1 month ago mbettenhausen
    Participant

    Expired

    in reply to: Image Alt Tags missing on home page

    That’s not our website. Our URL is metalpi.com and I’m still not seeing alt text. I really need this issue fixed.

    8 years, 1 month ago mbettenhausen
    Participant

    Expired

    in reply to: Image Alt Tags missing on home page

    I 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://&#8221;) !== 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!=””)

    $output .= ‘‘;

    else

    $output .= ‘‘;

    $output .= ‘'.$alt.'‘;

     

    }

    }

     

    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;

    ?>

    8 years, 1 month ago mbettenhausen
    Participant

    Expired

    in reply to: Image Alt Tags missing on home page

    Hello 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?

    8 years, 1 month ago mbettenhausen
    Participant

    Expired

    in reply to: Image Alt Tags missing on home page

    Hello. 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.

    8 years, 6 months ago mbettenhausen
    Participant

    Expired

    in reply to: Codeless slider mobile font sizes

    That 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

    8 years, 6 months ago mbettenhausen
    Participant

    Expired

    in reply to: Codeless slider mobile font sizes

    I have added my wp credentials to my profile. Please take a look and let me know what you think about the custom css.

    8 years, 6 months ago mbettenhausen
    Participant

    Expired

    in reply to: Codeless slider mobile font sizes

    Hello Mihaila. I added the custom CSS you sent. Still is not working. Any thoughts on why not?

    8 years, 6 months ago mbettenhausen
    Participant

    Expired

    in reply to: Codeless slider mobile font sizes

    Hello. 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.

Viewing 9 posts - 1 through 9 (of 9 total)

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password