• Resolved larryjames

    (@larryjames)


    I am using the free version. I love the plugin, except there are no alt tags. All my images have an alt tag in the media library. In the HTML there are no alt tags. What have I done wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a code error that Foo has never corrected. Try this to fix it.

    open ‘includes/class-foogallery-attachment.php’ and find:

    if ( ! empty( $this->alt ) ) {
        $attr['alt'] = $this->alt;
    }

    replace it with:

    # fixed: validation issue - missing alt-argument 
    if ( ! empty( $this->alt ) ) {
        $attr['alt'] = $this->alt;
    } else {
        $attr['alt'] = '';
    }
    # added: set title-argument 
    if ( ! empty( $this->title ) ) {
        $attr['title'] = $this->title;
    }
    Thread Starter larryjames

    (@larryjames)

    Thank you. I tried your code, but it did not work for me. I got an error message saying “This site is experiencing technical difficulties” ??

    phillcoxon

    (@phillcoxon)

    Hi @larryjames @jrcwp,

    I’ve just discovered this support request (apologies that we missed it earlier).

    I’m going to do some testing on this issue. Would you both please confirm you’re still experiencing this and if so what version of FooGallery you are using?

    We haven’t heard back from you regarding this so will assume you’ve resolved the issue and I’ll close this support request.

    Please open a new support request if we can help with anything else.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No ALT TAGs’ is closed to new replies.