Home › Forums › Aside WordPress Theme › Blog list thumbnails link to post
- This topic has 20 replies, 3 voices, and was last updated 11 years, 9 months ago by
STrajkovski.
-
AuthorPosts
-
June 2, 2014 at 8:23 am #3532
Johnny
Participantbsundman:
Hi, I like theme but i would like the featured images for posts on the homepage (and all other pages) to link to the actual post instead of a lightbox of that image. I think this is a big user experience issue, as some users may not know to click on the post title to view the full post. How would I go about doing that? Thanks.Hi, please open file functions/pagebuilder/modules/blog.php and find this:
<a href="<?php echo $thumb_src_full[0]; ?>" class="lightbox liqd-gallery-img" rel="post<?php the_ID(); ?>" title="<?php the_title(); ?>">
update it to:
<a href="<?php the_permalink(); ?>" class="liqd-gallery-img" rel="post<?php the_ID(); ?>" title="<?php the_title(); ?>">
BestJune 3, 2014 at 4:27 am #3539bsundman
ParticipantThanks for the quick reply! That did exactly what I want but just for the portfolio posts and not standard posts. Could you please add a fix for the standard posts as well? Thanks again!
June 3, 2014 at 6:04 am #3540Johnny
ParticipantHi, same file and find other 3 ‘a’ tags with the class ‘lightbox’, remove word ‘lightbox’ and update
href="<?php echo $thumb_src_full[0]; ?>"
to
href="<?php the_permalink(); ?>"
BestAugust 20, 2014 at 5:15 am #4279STrajkovski
ParticipantI did the above, but now the featured images are very large (probably increased in size by 300%), and a small ‘eye’ icon is shown under the title of the blog post.
August 20, 2014 at 10:35 am #4282Johnny
ParticipantHi, please make sure you updated the accurate scripts. this does not relate to images.
Thank youAugust 20, 2014 at 11:04 am #4283STrajkovski
ParticipantThanks for your prompt response. When you say “other 3 ‘a’ tags with the class ‘lightbox’, remove word ‘lightbox’”, do you mean simply delete the word Lightbox from between the inverted comas? I’m pretty confident I updated the correct scripts, but I’ll give it another try.
August 20, 2014 at 11:56 am #4285STrajkovski
ParticipantI restored the original blog.php file and went through the steps above, but I got the same result.
Any other ideas?
August 21, 2014 at 6:46 am #4294Johnny
ParticipantHi, paste your page url here please, I will check it later,
Thank youAugust 21, 2014 at 11:11 pm #4295STrajkovski
ParticipantThis reply has been marked as private.August 22, 2014 at 11:48 am #4302Johnny
ParticipantHi, paste your page url here please. I need to determine whether the page comes from blog.php.
Thank youAugust 23, 2014 at 11:36 am #4319STrajkovski
ParticipantThis reply has been marked as private.August 24, 2014 at 1:55 am #4324Johnny
ParticipantHi, please paste you page url which you want the lists link to posts rather than to lighbox. only a site url I can determine nothing.
Thank youAugust 24, 2014 at 10:41 am #4332STrajkovski
ParticipantThis reply has been marked as private.August 24, 2014 at 1:48 pm #4333Johnny
ParticipantHi, I have checked your page and confirmed it is comes from blog.php. please make sure update the script according to the first post of this thread. if still not working please manage clear your server/browser caches.
Thank youAugust 25, 2014 at 4:33 am #4335STrajkovski
ParticipantOkay, thanks.
I just re-tried it, and worked out my issue. Sorry for wasting your time. It worked. However, for the benefit of everyone else, in the last ‘a href’ line of code which contains the word ‘lightbox’, only remove the word ‘lightbox, not all of the text within the inverted comas (that is: ‘lightbox ux-hover-wrap’).
Also, I must note that the preview/thumbnail of my blog post featured images is now roughly 300% again, as I mentioned earlier.
August 25, 2014 at 5:01 am #4336STrajkovski
ParticipantFurther to my comment above, altering these settings (which you advised on earlier) does not affect the size of the image preview now.
Hi, please try update styles/pagebuild.css line 1683 or about:
.blog-item-img{…height:200px;…}
to
.blog-item-img{…height:auto;…}
BestAugust 25, 2014 at 7:39 am #4339Johnny
ParticipantHi, maybe your blog.php layout has broken. see attached image please.
Thank youAugust 25, 2014 at 11:52 pm #4355STrajkovski
ParticipantI’m not sure what I’m looking at when I read that code. How can I fix that? What should it look like?
August 26, 2014 at 12:43 am #4359Johnny
ParticipantHi, have you ever changed blog.php? please make sure modified a tag with the right format something like this:
<a href="..." class="...">
BestAugust 26, 2014 at 3:31 am #4361STrajkovski
ParticipantYes, of course I have modified the blog.php. I’ll check the a ref tags and see if i can find any which don’t match…
August 26, 2014 at 4:23 am #4362STrajkovski
ParticipantI found the issue. I added an extra > on the end, and it fixed the size of the images. Thanks for being patient with me.
-
AuthorPosts
- You must be logged in to reply to this topic.
