test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • citroen1968a Friend
    #205227

    Hi,

    when i look at the uber business template and use then blog=> masthead => picture

    i could not find there the alttext for the picutre (see attachment)

    how can I solved that issue.

    thanks


    1. business-template-masthead
    phong nam Friend
    #565557

    Hi citroen1968a,

    The picture of JA Masshead is the css background image, its not an img element so ATL tag is not needed

    <blockquote>CSS background images which are by definition only of aesthetic value – not visual content of the document itself. If you need to put an image in the page that has meaning then use an IMG element and give it an alternative text in the alt attribute.</blockquote>

    and
    <blockquote>images in CSS are only visual extras, not page content, hence they never need alternative text. “Rounded corner” or “blue-yellow gradient” does not help anybody as alternative text – on the contrary, it annoys the end users.</blockquote>

    Source: http://christianheilmann.com/2009/02/25/so-how-do-you-add-alternative-text-to-background-images/

    However, if you still want to add the ATL tag for css background image(JA Mass), you can do that via ja/templates/uber/html/mod_jamasshead/default.php

    Thank you

    citroen1968a Friend
    #565586

    Hi Leo,

    it is not that what i want it is what google like for blind people,
    for sofar is a know.

    https://support.google.com/webmasters/answer/114016?hl=en
    http://blog.raventools.com/alt-title-text-optimized-images/

    Thanks

    phong nam Friend
    #565657

    Hi there,

    I know you are talking about atl tag for SEO but please note JA Masthead used CSS BACKGROUND IMAGE, not IMG(<img />) tag. Take a look your screenshot above you will see the source code like so

    <div class"masthead-bg" style"background-image: url('your_background.jpg')">

    Here the similar question related to this case https://wordpress.org/support/topic/adding-alt-information-to-a-background-image-of-a-ltdivgt-

    The background css image used in masshead position for presentational purpose only. it should not be essential for understanding the content or functionality of the page that’s why ALT tag is not needed.

    Final, Pragmatic uses of IMG and when to use CSS background-image http://stackoverflow.com/questions/492809/when-to-use-img-vs-css-background-image/1469139#1469139

    Have a nice weekend

    LEO

    citroen1968a Friend
    #565670

    Hi Leo,

    Thanks for explanation, it is clear now.
    have a nice weekend to

    Gerhard

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  citroen1968a 9 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum