- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 04.10.19, 19:40
- Opened by: dominique matonnier
- Closed by: Marek
- Closed on: 29.10.19, 17:21
- Reason: Closed
- Comment: Glad to help!
Ticket #15788 - SEO ALT and title on image to the site (SEO Meta)
Hi Marek,
I am working for SEO on the site and I have some questions:
I would like to put personalised Alt and Title on image from revolution slider and for all images managed by the widget on the homepage, How to do that?
I would like also added Title on the website Logo, How to do that? and also on the flag for language
Thanks
Dom
Comments
you have to edit theme’s code, there is no such option through back office
Hi Marek,
I have to open each TPL to add manually the alt and title? but the homepage is managed by widget? where I need to search the right code? can you tell me where I can search?
You can change attributes for logo in the file /themes/alysum/templates/_partials/logo.tpl
As for images, if you want to add specific attributes for uploaded image, there is no way to do that, but we can add this option. I only need to know which widget do you use
Ok thanks Marek, here below the widgets we are using in our site:
Widget Banner
Single Image
Product list
ps language selector
Concerning revolution slider we put ALT and TITLE but there is only teh ALT who appears
I have also a strange behavior concerning some images who appears when I check the SEO, please see the image002.jpg attached the grey image seems to come from alysum template
the second image is a question if we can have the langague selector not in drop down list but with the 3 flag aligne and visible like the image001.jpg attached.
Thanks
Dom
image001.jpg
I just added attributes option for the banner widget https://take.ms/IB2ba
Hi Marek,
Thanks to added attribut to the banner widget, I made test but the alt and title are not filled in the source page:
the result is no title and no alt.
See image attached.
do you have some additional cache enabled? Because all works fine in my installation, but not in your’s
Hi MAREK,
No, I didn’t put any cache on BO
Dom
if I edit the file /sof/modules/pspagebuilder/classes/widget/banner.php I don’t see any changes in the front page. So it looks like a cache issue. I have test out that file in our localhost and all works fine
Hi Marek,
Yesterday evening I deleted the cache from /sof/var/cache: Dev and Prod and the issue is the same here below is the code from page source:
begin module:pspagebuilder/views/templates/front/widgets/widget_banner.tpl –>
<!– begin /home/giusypopub/sof/modules/pspagebuilder/views/templates/front/widgets/widget_banner.tpl –>
<div class=”widget-images relative block relative banner-03 block-borderbox title_left”>
Please see attached PDF Thanks
Dom
Here are two files which works correctly for us. Please upload them to your server
Hi Marek,
It’s works well now thanks. You said please tell me which widgets you want to add these attributs, here is the list where I want to add attributes:
Widget-Banner —> Done
Single Image
Product list
ps language selector
Logo
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
I have another question I have in the home page html code 2 stranges link for images who doesn’t existe in the site:(<img
<img
Thanks
Dom
There is no sense to add that for “Product list” and “ps language selector”, you can change attributes directly in the code
Hi Marek,
ok and what about the rest of widgets that I listed and my question about the image: https://via.placeholder.com/353x199
Dom
Here are updated files
Ok Thanks Marek
You are welcome
Dear Marek,
all the widgets works well now thanks, but I discovered that theere is no multilanguages fonctionalities for Alt and Title attributes, could you add this?
Thanks
Dom
Where to edit image.php and logo.php?
Hello, Sorry but I don’t understand? your questions
Dom
In the folder /modules/pspagebuilder/classes/widget
Hi, Dominique.
Please check out miltilanguage now
Thanks Marek it’s works now
you are welcome