Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Support request] Missing ALT tag for the navigation logo

Home Forums Support [Support request] Missing ALT tag for the navigation logo

Home Forums Support Missing ALT tag for the navigation logo

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #404468
    Lasse

    I’m having a hard time getting the image ALT tag onto the logo in my navigation.

    Is there a quick fix to this?

    The site i’m working on is http://www.malta-siden.dk

    #404599
    Tom
    Lead Developer
    Lead Developer

    Are you using a custom function for your navigation logo? The URL to the image isn’t currently set.

    By default, the navigation logo should have an alt tag.

    #404624
    Lasse

    There should be a logo now, sorry.

    I used this guide ti put the logo in the navigation https://docs.generatepress.com/article/navigation-logo/

    There is a alt tag but it’s empty.

    #404635
    Lasse

    I found a solution to the problem.

    I use the filter generate_navigation_logo_output to make the alt tag.

    But shouldn’t the alt tag stick to the logo by default when i change it in the media library?

    #405041
    Tom
    Lead Developer
    Lead Developer

    No need to use a function if you have GPP, just upload the navigation logo in Customize > Layout > Primary Navigation.

    #405184
    Lasse

    I did but no alt tag?

    #405296
    Tom
    Lead Developer
    Lead Developer

    I’m using the navigation logo here in the forum – you can see the alt tag in there.

    Make sure to remove any functions filtering the navigation logo if you’ll be using the Customizer option.

    #405621
    Lasse

    I just made a fresh install og GeneratePress on a new site and the problem is the same for me.
    I don’t know if it’s me thats making a mistake with something?

    The alt tag is set – http://prntscr.com/gyz9st
    But alt tag is missing – http://prntscr.com/gyzapo

    The new test site is grancanaria-siden.dk

    #405901
    Tom
    Lead Developer
    Lead Developer

    GP uses your site title as the alt tag – do you have that set? (Settings > General).

    It won’t use the alt for the image set in the Media Library, although maybe it should. I’ll look into that.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.