WordPress.org

Ready to get started?Download WordPress

Forums

BNS Featured Category
[resolved] Make Featured Images link to the Post (14 posts)

  1. Kesava
    Member
    Posted 2 years ago #

    I am using this plugin to display certain posts on my home page, however only the title links to the post. I need to make it so that the featured image that is displayed also links to the post it is from.

    How can I do that?

    Thanks,

    Kesava

    http://wordpress.org/extend/plugins/bns-featured-category/

  2. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

    The current working version of the plugin has the featured images being handled around line 268.

    Each instance of the_post_thumbnail() could be wrapped in an appropriate anchor tag (see the code around line 250 as an example) and you should see the results you are looking for.

    I'll have a look at this as an enhancement to the plugin with a future update as well. Thanks for the idea!

  3. rawdolphe
    Member
    Posted 2 years ago #

    Very nice plugin, I am testing a few atm, would be great to have the image clickable/link to the post. Thanks.

  4. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

    @rawdolphe - Thanks to @Kesava's idea above, the next version of BNS-FC will have the Featured Images linked to the posts.

    Although I have not released it on the Plugin repository, yet, it is available at GitHub, https://github.com/Cais/bns-featured-category

    As far as I have tested the GitHub version is working fine ... I'll likely package it up and release it later in the week.

  5. rawdolphe
    Member
    Posted 2 years ago #

    Thanks a lot Edward, I'll check this out. It's great!

    Would be great if there was an option/tick box to remove Post Titles :P

  6. Kesava
    Member
    Posted 2 years ago #

    Thank you so much Edward!

    I just got the updated code from github and replaced the old code in that file and refreshed and every featured image is now linking to it's post.

    That is exactly what I wanted. :)

    I really appreciate it and think it made a lot of sense to have as a feature anyway.

  7. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

    Thank you both! Note I did not "beta" tag this GitHub version, please remember to check when the plugin is updated in Extend although I do not expect there to be any changes from now until then.

    @rawdolphe ...

    Would be great if there was an option/tick box to remove Post Titles

    ... as in only show, for example, Featured Images?! I'm sure it is possible although I do not know if the aesthetics of the idea would display well. I'll have to think on this idea.

  8. rawdolphe
    Member
    Posted 2 years ago #

    Hi Edward,

    Thanks for your question and for considering it.

    Yes, the option to remove/turn off (maybe via css = display: none; is a simple way?) the Post Titles and using Featured Images instead.

    This is for presentation/aesthetic reasons actually, and it's great for saving space.
    It looks quite nice to have the Featured Image on the left and nothing above, with the excerpt showing on the right, one is still able to fully customise the look of the excerpt, changing the post title etc... When they are all stacked up on top of each other it looks neat. Most plugins I have checked have this feature, but I'd love to see this on yours.

  9. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

    @rawdolphe - Thanks for the added description of the feature request; I'll definitely consider it, but it may not make it into the next release ... although the following release has a very good chance of seeing it.

  10. rawdolphe
    Member
    Posted 2 years ago #

    Thank you Edward,

    Do you know where I could manually add the following css code to not display Post Titles?

    display:none;

    Even as a temporary fix it would be great.

  11. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

    @rawdolphe - The exact CSS would most likely be relevant to the active theme on your site as there is currently no specific CSS container for the post title in the plugin.

  12. rawdolphe
    Member
    Posted 2 years ago #

    Hi Edward,

    Yes, I had a look and it's quite tricky, I even find it hard to style it individually without messing up other elements on the theme.

    So, right now I am looking inside your php file to see if I can comment something out...
    If you have any idea(s) please let me know. Thank you.

  13. Edward Caissie
    Theme Review Admin
    Plugin Author

    Posted 2 years ago #

  14. rawdolphe
    Member
    Posted 2 years ago #

    Thank you Edward!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.