Dear Customers! We're out of the office from the 6th of October to the 11th of October. We sincerely apologize for the inconvenience. For WordPress 5.5.* related issues, please visit this article

Okay
  Public Ticket #1072069
Featured image lightbox
Closed

Comments

  •  2
    lencoint started the conversation

    Any way to stop the featured image in the blog posts being a lightbox (I think it's called!).

    We would like it to take you to the blog post when you click the image if possible, instead of opening the image.

  •  255
    Joanna replied

    Hi lencoint!

    Unfortunately there is not a way within the theme options at the moment, but, I can suggest it to the developer for a future theme update.

    Meanwhile, if you are happy to edit the theme's code I can show you which part to edit if that's any help?


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  •  2
    lencoint replied

    That would be great, I've edited bits of the php before so think I can manage it!  Thanks.

  •  255
    Joanna replied

    Hi lencoint,

    Ok great! You will need to edit this file: north\framework\functions\blog-functions.php

    Then you will need to change lines 409-411 where it says:

    <div class="single_item mp-gallery">
            <a href="<?php echo $imgurl[0]; ?>" title="<?php echo get_post_meta( get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true); ?>">
                <img src="<?php echo $imgurl[0]; ?>" alt="<?php echo get_post_meta( get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true); ?>">
    

    Change it to:

    <div class="single_item">
                <img src="<?php echo esc_url($imgurl[0]); ?>" alt="<?php echo esc_attr(get_post_meta( get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true)); ?>">
    

    Then save, upload and replace to the same directory in your server via ftp/hosting control panel.


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  •  2
    lencoint replied

    That's got it, thanks!  Will I have to do this every time I update my theme?  Sorry if this is a stupid question to you!

  •  255
    Joanna replied

    Hi lencoint,

    Yes unfortunately you will need to edit it each time

    And no, that's not a stupid question at all

    That part of the theme seems unlikely to change with each update so you should just be able to copy/paste the same code each time (unless we do add the option for it in the theme options, we'll see)


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)