[Resolved] link function on featured images?

Home Forums Support [Resolved] link function on featured images?

Home Forums Support link function on featured images?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #965433
    Daniele

    Hi, yours is a very nice theme, but it lacks the function that allows you to put a link to the images in evidence! or am I wrong, why can’t I find it?

    Thank you,
    Daniele

    #965490
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’m not too sure I understand – can you explain a bit more?

    Let me know πŸ™‚

    #965530
    Daniele

    Hi Tom, in this wordpress discussion we talk about what I mean, but this is an integrated function in many themes..
    https://wordpress.org/support/topic/how-to-add-hyperlink-to-posts-featured-image/

    Thanks,
    Daniele

    #965913
    Daniele

    I’m talking about putting a link in the image shown above, at the top of each article πŸ™‚

    #966097
    Leo
    Staff
    Customer Support
    #966247
    Daniele

    Hi Leo,

    EXACT! The code must be inserted in the function.php file, right?

    Thanks,
    Daniele

    #966271
    Leo
    Staff
    Customer Support

    If you are referring to the function.php file in the child theme then yes:
    https://docs.generatepress.com/article/adding-php/

    #966349
    Daniele

    It would be nice to be able to make these changes through the theme, without having to create a child, in the “elements” section πŸ™‚

    #966402
    Leo
    Staff
    Customer Support

    You can use the Code Snippets plugin suggested in the article if you don’t want to use the child theme.

    I use Code Snippets most of the time for PHP.

    Filters cannot be used in Elements unfortunately.

    #967276
    Daniele

    Thanks Leo! The script works perfectly, and even the plugin is very convenient! Your assistance is always useful πŸ™‚

    Daniele

    #967278
    Leo
    Staff
    Customer Support

    Glad I could help πŸ™‚

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.