Alt tags and text to code ratio

January 2013 WordPress Theme
GK User
Fri Nov 21, 2014 10:10 pm
I received repeatedly warnings for missing ALT tags. Despite all pics have alt tags.I s it possible this to be attributed to the generated thumbnails
for example - http://economix.bg/wp-content/themes/Ne ... nsp-22.png
How to assign a tag to this png? It should be important in terms of SEO...

The other problem is that text to code ratio is too low - 6%
What do you suggest to do?
User avatar
Junior Boarder

GK User
Mon Nov 24, 2014 9:20 am
Hi,

Please edit News/gavern/widgets.nsp.php file and change this fragment:
Code: Select all
if($this->wdgt_config['article_image_pos'] == 'left' && $this->wdgt_config['article_image_order'] == 1) {
                   return apply_filters('gk_nsp_art_image', '<div class="gk-nsp-image-wrap"><a href="'.$art_url.'" class="gk-image-link"><img src="'.$new_path.'" alt="" class="gk-nsp-image" '.$style.' height="'.$this->wdgt_config['article_image_h'].'" width="'.$this->wdgt_config['article_image_w'].'" /></a></div>');
                } else {
                   return apply_filters('gk_nsp_art_image', '<a href="'.$art_url.'" class="gk-responsive gk-image-link" '.$style.'><img src="'.$new_path.'" alt="" class="gk-nsp-image gk-responsive" height="'.$this->wdgt_config['article_image_h'].'" width="'.$this->wdgt_config['article_image_w'].'" /></a>');
                }


into:
Code: Select all
if($this->wdgt_config['article_image_pos'] == 'left' && $this->wdgt_config['article_image_order'] == 1) {
                   return apply_filters('gk_nsp_art_image', '<div class="gk-nsp-image-wrap"><a href="'.$art_url.'" class="gk-image-link"><img src="'.$new_path.'" alt="'. $this->wdgt_results[$i]->post_title .'" class="gk-nsp-image" '.$style.' height="'.$this->wdgt_config['article_image_h'].'" width="'.$this->wdgt_config['article_image_w'].'" /></a></div>');
                } else {
                   return apply_filters('gk_nsp_art_image', '<a href="'.$art_url.'" class="gk-responsive gk-image-link" '.$style.'><img src="'.$new_path.'" alt="'. $this->wdgt_results[$i]->post_title .'" class="gk-nsp-image gk-responsive" height="'.$this->wdgt_config['article_image_h'].'" width="'.$this->wdgt_config['article_image_w'].'" /></a>');
                }

around line 981. I've also add this modification into the next theme update.
Regarding the text to code ratio - it will be difficullt, because frontpage of this theme is based on widgets (mostly NSP), which generates a lot of code, you can try to add more texts i.e. in text widgets.
User avatar
Moderator


cron