WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Remove alt text from circles on homepage (6 posts)

  1. caramelr
    Member
    Posted 1 year ago #

    Hello, i've been trying everything to remove the alt text which displays when you hover over the circles on the homepage. I've been trying things in the content-image.php and content-home.php, I feel like i'm close but just can't quite work out the code.

    Using the firebug I see that these parts are referred to as 'post-thumbnail'.

    Does anyone have any idea how to to remove this? Adding alt text in the 'featured image' for the post doesnt do anything either

    Thanks!

  2. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    This is the title element applied to the link in content-home.php... it looks like this:

    title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>"

  3. caramelr
    Member
    Posted 1 year ago #

    Thanks Caroline, I tried removing that but it still shows the alt text

  4. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Ahh, sorry, I forgot something. It's also output on lines 16 and 31.

    Remove this part from those lines:

    , array( 'title' => esc_attr( get_the_title() ) )

  5. caramelr
    Member
    Posted 1 year ago #

    Perfect! Thank you very much!!! :)

  6. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic