Portfolio Fancy Thumbnail Image Alt Text Missing

Home Forums Jevelin Theme Portfolio Fancy Thumbnail Image Alt Text Missing

Home Forums Jevelin Theme Portfolio Fancy Thumbnail Image Alt Text Missing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • sanjeet
    Participant

    Hi I have a portfolio fancy widget on a page. However the image alt is missing when the page loads.

    However I was doing a few fixes in the parent theme and it worked. But I do not want that, as it is not recommended.

    I wanted to do the same edits in the child theme, but it does not work.

    The image alt text gets empty again.

     

    My theme is version 4.6.0

     

    In the parent theme I had edited the line number 271 in the file

    wp-content/themes/jevelin/framework-customizations/extensions/shortcodes/shortcodes/portfolio-fancy/views/view.php

    I changed the line 271 from

    " alt="" />
    
    to
    
    
    " alt="<?php echo get_post_meta(get_post_thumbnail_id(get_the_ID()), '_wp_attachment_image_alt', true); ?>" />
    
    Can you please help.
    
    Sanjeet

    sanjeet
    Participant

    as a workaround I have directly edited the parent theme file, though it is not recommended. This is temporary until we come up with a solution.

     

    Sanjeet

    Hi Sanjeet,

     

    I hope you are well today and thank you for your question.

     

    To change it in the child theme, you have to overwrite the below whole portfolio fancy element directory.

     

    /jevelin/framework-customizations/extensions/shortcodes/shortcodes/portfolio-fancy/

     

    Best regards,
    Shufflehound team

    sanjeet
    Participant

    Hi thank you for your reply.

    Initially I had done that, edited the parent theme file and when it worked, I copied the whole directory from parent theme to child theme

    /jevelin/framework-customizations/extensions/shortcodes/shortcodes/portfolio-fancy/

    to the child theme directory

    /jevelin-child/framework-customizations/extensions/shortcodes/shortcodes/portfolio-fancy/

    and then i deleted the modified line in the parent theme file view.php

    saved all changes and then refreshed the site, it still shows an empty alt tag

    I have attached the screenshots for your reference.

    Any help is greatly appreciated

     

    Attachments:
    You must be logged in to view attached files.

    I have tested it on my test site using the child theme and it is working fine for me.

     

    Could you please refer the attached child theme which is working fine?

    Attachments:
    You must be logged in to view attached files.

    sanjeet
    Participant

    I tried your child theme, and it still does the same thing…empty alt tag. I tried to see what was different in your child theme after that but found out that they had exactly the same code.

    It seems that the Unyson framework does not look for the child overwrites, but only looks for shortcodes in the parent theme folders.

    When it didn’t work I tried to check if it could be any plugins that could cause a conflict with the theme code. The plugins I have installed are:

    • Contact Form 7
    • Slider Revolution
    • Unyson
    • WPBakery Page Builder
    • Yoast SEO

    I even tried deactivating Yoast SEO and it still had the same issue.

    I guess it’s ok for now that I modify the parent theme as long as it works.

    Sanjeet

    The shared child theme changes are working fine for me.

     

    Have you activated the child theme on your site?

     

    Would you mind if I log in to your site and do some troubleshooting? If this is ok then could you please temporarily share me your site admin login details privately by adding them in the box having text “Enter your private content here (only you and forum moderators will be able to see it)”?

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