#252 – Insert an image at the end of my articles

Posted in ‘weeblrAMP’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Wednesday, 26 October 2022 13:34 UTC
I have just changed the theme of my site and I want to insert an image with a link at the end of each of my articles.

On my main theme I managed to do it, but the AMP version does not insert my banner.

With my old theme, I had AMP widgets that appeared, but with my new theme I have no AMP widgets, so I can't customize as I can.
Wednesday, 26 October 2022 13:40 UTC

If you theme does not show the widgets, the only solution left is a template override. This is described in details on this page of the documentation.

Basically copy the original weeblrAMP file (footer.php seems appropriate) and append your custom HTML there.

Best regards

Wednesday, 26 October 2022 13:54 UTC
All right,
If I want to add an image with a clickable link at the end of each article (footer), can you give me an example of the code I need to insert in the footer.php?
Wednesday, 26 October 2022 13:57 UTC
In the footer i see that :
Wednesday, 26 October 2022 14:03 UTC

We do not offer a customization service but I assume you would just want to add a link with an image?

<a href="https://target.com" >
<img src="https://example.com/yourimage.jpg">

If you see this:



	get('footer'); ?>

You are not looking in the correct file. Please follow the instructions in the documentation, the folder you need to look in is /layouts/weeblramp/frontend/footer.php

Best regards
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.