• Resolved Rennelknat

    (@rennelknat)


    I want my featured image to be able to be clicked on to open my blog. Currently it is just opening to a larger picture. I have managed successfully to do this to two other blogs previously but can’t find or remember how it was done. I don’t use code, so it must have been something clickable and easy.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hey Rennelknat,

    The functionality of blog post it’s depends on theme that you are using,don’t worry you just do one thing go to your active child theme folder open content.php file and search <?php the_post_thumbnail(); ?> function and replace this with like this <a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(); ?></a>

    This will help you to open your blog post on click of featured images.

    Regards
    Anil

    Thread Starter Rennelknat

    (@rennelknat)

    Thanks Anil

    I have Jupiter theme.

    Sorry to be so dumb, however I don’t seem to see anything like content.php when I go to the theme.

    I click on appearance and to customise and it gives me a menu – Site Tab, Menus, Widget, Static Front page. Don’t think I am in the right place.

    Would you kindly direct me to the right spot?

    Thanks

    Hey Rennelknat,

    Go to the appearance menu and click editor option at right side you will see selected theme to edit option then select your active theme, it will display all template file’s.

    Now find content.php file and then,search this function<?php the_post_thumbnail(); ?> and replace this with,

    <a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(); ?></a>

    Make sure when your doing the changes there is no conflict between <?php ?> opening and closing tag’s.

    Be aware that if you edit your theme files directly like this, you’ll lose those changes if the theme is ever updated in the future, to fix bugs or security issues or to add new features. Better to use a child theme for this kind of customization.

    Thread Starter Rennelknat

    (@rennelknat)

    I’d like to screen shot, but have copied this instead. This is what I get after EDITOR then click on button on right SELECT and it stays as this. The is no content.php file or ability to search. Am in in the right place?

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    /*
    Theme Name:     Jupiter Child Theme
    Theme URI: 		https://themeforest.net/user/artbees
    Description:    Child theme for the Jupiter theme
    Author:         Your name here
    Theme URI: 		https://themeforest.net/user/artbees
    Template:       jupiter
    Version:        4.0.9
    */
    
    /*

    Sample : remove the comment and start adding your own custom CSS rules.

    body {
    	background-color:#fff;
    }
    
    */

    Yes, you are at the right place and also you have activated
    Jupiter Child Theme

    Now, see at right side Select theme to edit this drop down menu and follow the instruction as per my previous comment.

    Thread Starter Rennelknat

    (@rennelknat)

    Stephen thank you, I am working with a child theme.

    Thread Starter Rennelknat

    (@rennelknat)

    Hi Anvil.

    I am sorry to be so trying however,

    this is exactly the same result for ‘select theme to edit’.

    There is no content.php file

    Should I just remove the
    /* Sample……….. and put in the code you said?

    No, that is css file from your child theme if you place the PHP code there it will not works.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I want my featured image to be able to be clicked on to open my blog. Currently it is just opening to a larger picture.

    *Looks*

    Have you considered asking the theme vendor? For pro or commercial product support please contact the author directly on their site.

    https://artbees.net/themes/support/

    As the author is aware, commercial products are not supported in these forums. As you are their customer I am sure they will have no problem supporting you there.

    Making featured image clickable to the post requires some PHP. That’s a commercial theme and we don’t have access to that code. Don’t post the PHP here, we really don’t want that access either. ??

    Thread Starter Rennelknat

    (@rennelknat)

    Thanks Anil for all of your help

    I didn’t want to offend anyone, I thought it was a wordpress thing.

    Jan, I don’t understand about your comment “don’t post the PHP here, we really don’t want that access either” Do you mean what I posted earlier?

    I think I shall just remain having a picture that is un-clickable for all the trouble and time that it has taken to get nowhere.

    Thanks everyone.

    Thread Starter Rennelknat

    (@rennelknat)

    Jan, thank you. I went to the link for themes support you posted and checked out how they did a blog post, and can you believe it (most likely) it was ONE button shift to the left, that has caused this five hour dilemma.

    Thank you, thank you and good night.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Featured Image not opening to new post when clicked on’ is closed to new replies.