-
Author
Tagged: blog, image links, display type, posts page, blog link
-
April 14, 2015 at 23:07 #54460webmaster-swParticipant
Hi everyone
Quick questionI have my Posts page (Settings > Reading > Front page display > Static > Posts page) set to Display type: Standard (Theme Options > Blog > Display Type) and my post images are not links. All posts are set to Standard if you were thinking of invoking this: https://archived.seventhqueen.com/forums/topic/blog-image-link
What’s the php code swap I need to do to expand the title link to include the photo? I need the path, filename, full text of the original code, and full text of the final code.
Much appreciated!
April 15, 2015 at 16:57 #54598RaduModeratorHello,
Please provide a link, i need to see what template you use, after i will give you php code fir this.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 17, 2015 at 17:02 #54949RaduModeratorSorry, but your site is restricted for me.. see screenshot.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.April 24, 2015 at 04:33 #56012webmaster-swParticipantThat’s awkward.
I’m going to have to recommend a proxy then.Otherwise, thanks in advance for your help. I appreciate the effort.
July 20, 2015 at 23:45 #69170webmaster-swParticipantIf anyone is looking for the solution, here it is. I just copied the php from the text link above the image to the image.
The changes are made to the content.php file, which can be placed directly into the /Kleo-Child directory.
Original code (lines 38-40) :
COPY CODE<div class="article-media"> <?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' );?> </div>
New code:
COPY CODE<div class="article-media"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'kleo_framework' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' );?></a> </div>
July 21, 2015 at 16:18 #69286RaduModeratorThank you for posting the solution
Regards
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.