This question already has an answer here:
- Layout Overrides: Intro Image Link 2 answers
i use the menu item type "category blog". For the articles in my Category i set a Intro Image which will be shown on the left side of the blog entry. At the moment it is only possible to open the full article when you click on the title of the blog entry.
Now, what i want is, that i can click on the title AND the intro image to open the full article! Is that possible? And how can i achieve it?
Additional information: i use joomla version 3.3.6 and the afterburner2 template with gantry framework.
Thanks for any help!
Edit #2 (Findings after first Response)
Thanks for your reply Anibal!
Okay, generally i think i understand what to do, but it doesn't work the way i want :)...
I tried the following before i want to add the Article-Link to the image:
First i edited the file "intro_image.php" at the location templates/my_template/html/layouts/joomla/content.
I changed Line 18 to
echo 'class="caption test"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"';
After that i excepted, when i inspect the site with developer tools, that i will find an img-Tag with the additional class "test". But i cant't find it. I think that was the override-variant!?
In the next step i changed the file "intro_image.php" at the location layouts/joomla/content in the same way, but after that I still could not detect any changes when i inspect the site again.
That's the first problem. With that changes, i only want to ensure that i'm on the correct place for my changes.
In the article i also set a caption, so that the edited line should be processed!
The second problem i will have:
You say, that i have to edit line 41 to reach my needs, but i'm not sure in which way. Can you give one more example please? Sorry, but i still at the beginning of my php/joomla career ;)...