By Stephen Crewson on Thursday, 11 December 2014
Posted in General Issues
Likes 0
Views 0.9K
Votes 0
My goal is to add the blog title as an ALT tag to each blog image on the FrontPage Layout. I see that alt tags are already added to individual posts using the code:

alt="<?php echo $this->escape( $row->title );?>"


Can I add the same code for the FrontPage Layout and if so, what file might I be looking for.

Thanks in advance.

Steve
Hello Stephen,

We have missed it for the theme you are using (Polish). What I did was open this file: ../components/com_easyblog/themes/polish/blog.item.php and add the alt tag on line 60.
·
Friday, 12 December 2014 01:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Stephen Crewson,

I am sorry for the delay of this reply.

Em, may i know which version of EasyBlog you are using? I tested locally with latest EasyBlog and in frontpage, the blog image already has the blog title as the ALT tag for blog image. Please see http://screen.stackideas.com/2014-12-11_1025.png

Anyway, you can take a look at file 'JOOMLA/components/com_easyblog/themes/default/blog.item.php' at line around 67:


<?php if( $row->getImage() && $this->getParam( 'blogimage_frontpage') ){ ?>
<a href="<?php echo EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id='.$row->id); ?>" title="<?php echo $this->escape( $row->title );?>" class="blog-image float-l mrm mbm">
<img src="<?php echo $row->getImage()->getSource( 'frontpage' );?>" alt="<?php echo $this->escape( $row->title );?>" />
</a>
<?php } ?>


Let me know if you still having issue addding the ALT tag for your blog images in your frontpage. Or you can pass me your Joomla site the admin access and your ftp account so that I can take a look for you?

Please advise.
Sam
·
Thursday, 11 December 2014 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam, Thanks for the quick reply. Yes, you are correct, the ALT tags show up for the individual posts which is awesome for optimizing each page of a website. I'm looking at ALT tags for the FrontPage layout instead.

The following screen shots should provide a little more clarification.

Thanks,

Steve
·
Thursday, 11 December 2014 22:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stephan,

I believe Sam was referring to Frontpage layout which already has the alt tag for each image. You might want to provide us your backend and FTP so we can check this.
·
Friday, 12 December 2014 00:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nik, I just submitted a ticket.
·
Friday, 12 December 2014 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stephen,

Great, we will continue in the ticket.
·
Friday, 12 December 2014 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome Nik. Can I ask what the issue was and how to fix it. I have the same issue on other sites as well?
·
Friday, 12 December 2014 01:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks again Nik. I was looking at the default template rather than the individual templates. I am assuming the fresh installs have the ALT tag in them.
·
Friday, 12 December 2014 02:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stephen,

Yes, we will include it in the next release.
·
Friday, 12 December 2014 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post