ALT attribute in menu images

I have a few missing attributes in my WP Theme.I found images in header.php in example:class="articles"><

I have a few missing attributes in my WP Theme.

I found images in header.php in example:

class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/ikona_artykuly.png" />

ikona_artykuly.png has missing attribute.

Can I add alt attribute in this place?

class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/ikona_artykuly.png" alt="Artykuly" />

Will it be ok, or this is not the right place to add alt attribute?

Can you help?

Regards, Marceli

I have a few missing attributes in my WP Theme.

I found images in header.php in example:

class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/ikona_artykuly.png" />

ikona_artykuly.png has missing attribute.

Can I add alt attribute in this place?

class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/ikona_artykuly.png" alt="Artykuly" />

Will it be ok, or this is not the right place to add alt attribute?

Can you help?

Regards, Marceli

Share Improve this question edited Dec 29, 2019 at 15:54 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Dec 29, 2019 at 15:30 wordheawordhea 1
Add a comment  | 

1 Answer 1

Reset to default 0

Yes, you can add the alt attribute. But there is a catch.

When the theme is updated, all your changes or modification to the theme will be lost.

It is recommended to make those changes in the child theme. You can learn more about WordPress child theme here

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744872611a4598351.html

相关推荐

  • ALT attribute in menu images

    I have a few missing attributes in my WP Theme.I found images in header.php in example:class="articles"><

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信