New Landing How can we help? Themeforest Theme Support Clique Bad SEO Score: "alt" missing on all Portfolio thumbnails and tags

  • This topic has 6 replies, 2 voices, and was last updated 10 years by kotebo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Clique
  • #7121
    kotebo
    Member
    Post count: 16

    I’m trying to SEO my website and this theme scored REALLY badly on one SEO report simply because I chose to have the Portfolio page as my homepage and about 40 of my portfolios that are listed on it were getting mark up without alt attributes in the tag. Basically if I viewed source on my homepage I can see this (code missing alt tags for and ):

    <div class=”portfolio-item-details” style=”display: none; “><h1 class=”portfolio-item-title”>title is here</h1><h2 class=”portfolio-item-subtitle”>title is here</h2></div>

    So what I’d like to happen or what should have logically happened was that the images should take the alt titles I have defined already in the WP Media Manager. As for the links as well.
    Meaning:

    <img alt=(image title set for image in WP media Manager)
    <a alt= (image title set for image in WP media Manager)

    This is a very crucial and basic function of any theme or website.

    PS: I’m using the Yoast SEO plugin.

    #7124
    kotebo
    Member
    Post count: 16

    Attached is an image of the W3C validator report errors which such errors will affect SEO on this theme. Please show me how I can fix this. Well I assume it should have been built into the theme code in the first place.

    #7462
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    We have alt tags for portfolio images on the list for the next update. For anchor tags though, alt tags are invalid.

    – Ed

    #7463
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Here’s a replacement file for /includes/sf-functions.php with the alt tags added: http://cl.ly/PWHQ

    – Ed

    #7559
    kotebo
    Member
    Post count: 16

    Works, but now I get the following error message on the front-end of my portfolio page ( where the category filter sits next to the main menu ).

    “Warning: Missing argument 1 for sf_portfolio_filter(), called in /home/myfolder/public_html/myfolder/wp-content/themes/yourthemesfolder/header.php on line 209 and defined in /home/myfolder/public_html/myfolder/wp-content/themes/yourthemesfolder/includes/sf-functions.php on line 167 ”

    I’ll send you over my header.php in private.

    #7561
    kotebo
    Member
    Post count: 16
    This reply has been marked as private.
    #7563
    kotebo
    Member
    Post count: 16

    Nevermind Ed,

    I fixed the issue, I simply replaced line 167 of your attached sf-functions.php file

    from: function sf_portfolio_filter($parent_category) {

    to: function sf_portfolio_filter() {

    The portfolio page is looking a bit better for SEO now. Thanks Ed.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register