• Resolved ibulka331

    (@ibulka331)


    Hello, I have an installed plugin on the site, I discovered a problem that I did not register alt and title in the downloaded icons, but they came from somewhere, and they weren’t what they were needed at all, they simply registered themselves, showed it in the source code. Perhaps the problem with the labels, but why he fills them, the most interesting thing is that all the icons have the same …

    https://prntscr.com/m4hsja
    https://prntscr.com/m4ht3z

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    It’s not from the plugin itself, but maybe from inside the core, or added by some plugin. You can check it by yourself that plugin adds nothing new to image https://github.com/zviryatko/menu-image/blob/master/menu-image.php#L318
    As I understand this alt is a title of the page where menu item link leads on.
    You can remove it by using some filter, like wp_get_attachment_image_attributes, see wordpress docs and tutorials on how to do it (you need to code a little).

    Thread Starter ibulka331

    (@ibulka331)

    I did a check by disabling each plug-in separately, but this did not help, and the headers that he opiates, and different everywhere, these headers are in the records and tags, but why he shows them and writes them in the alt and title attributes in your plugin, i can’t understand wordpress version 5.x

    Thread Starter ibulka331

    (@ibulka331)

    By the way, if I turn to the page of some other post, record, the text in the atl and title attributes of the icons in the menu changes

    Normally, alt should appear only when you type it in the media library (please re-check do your images have alt field filled in media library), but I bet that reason in some theme modification.

    Thread Starter ibulka331

    (@ibulka331)

    I reloaded icons, checked, empty everywhere

    Thread Starter ibulka331

    (@ibulka331)

    On other sites with the same theme, there is no such problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why is recording alt’ is closed to new replies.