• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How can I add Alt Text to my Header Logo Image

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How can I add Alt Text to my Header Logo Image

This topic is: resolved

Tagged: alt text, Custom header, header image

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 11 months ago by juiceman.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 1, 2016 at 12:33 pm #182687
    juiceman
    Participant

    I'm using streamline Pro. and need to set some alt text for the logo image. Is there something I could set in functions.php?

    This is what is currently in functions:

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'header_image'    => '',
    	'header-selector' => '.site-title a',
    	'header-text'     => false,
    	'height'          => 40,
    	'width'           => 215,
    ) );

    An help greatly appreciated.

    Thanks

    April 2, 2016 at 9:53 am #182742
    Christoph
    Member

    Hi,

    long answer short, as long as you use a background image, an alt attribute is not meant to be added. You might be able to add an aria-label.
    Here are just some posts about it:

    http://stackoverflow.com/questions/4216035/css-background-image-alt-attribute
    http://stackoverflow.com/questions/11774984/how-to-give-alt-and-title-for-background-image
    https://www.christianheilmann.com/2009/02/25/so-how-do-you-add-alternative-text-to-background-images/

    Alternatively, you can use an HTML image instead:

    Adding in a Responsive HTML Logo/Image Header via the Customizer for Genesis


    https://sridharkatakam.com/inline-logo-in-genesis/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 3, 2016 at 12:11 am #182774
    Brad Dalton
    Participant

    You can add Alt Text to your image when you upload it to your Media Library in WordPress.


    Tutorials for StudioPress Themes.

    April 4, 2016 at 8:17 am #182877
    juiceman
    Participant

    @Christoph

    Thanks for the info, i did come across some of those links after I posted. Looks like that is the way to go.

    Thanks again!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble