• Hello all,

    Iam using Creativex for my website.
    On my blogpage i can click on the post titels so i can read the posts. But its not very clear that only the post titel is clickable.
    So how can i also make the featured images and the sample text clickable.

    website:https://cspierings.com/blog/

    thanks and my regards,

    Adem D.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there.

    Hope you’re well.

    Looking at the code it seems that it will be in these files:

    tpl_blog.php

    change:

    <img src="<?php echo $thumb;?>" />

    To:

    <a href="<?php the_permalink();?>">
    <img src="<?php echo $thumb;?>" />
     </a>

    search.php
    archive.php

    change:

    change:

    <img src="<?php echo $wpcx_thumb;?>" />

    To:

    <a href="<?php the_permalink();?>">
     <img src="<?php echo $wpcx_thumb;?>" />
     </a>

    To change these you should make a child theme:

    https://codex.www.ads-software.com/Child_Themes
    https://premium.wpmudev.org/blog/create-wordpress-child-theme/

    You’ll probably also want the alt tags for images to improve accessibility:

    https://www.w3schools.com/tags/att_img_alt.asp

    https://accessibility.psu.edu/imageshtml

    As an example it could look like this:

    <img src="<?php echo $wpcx_thumb;?>" alt="<?php the_title();?>">

    That will then take the articles title as the alt tag. Just an example. ??

    Hope this helps.

    Have a fantastic day! ??

    Thread Starter ademdemirel

    (@ademdemirel)

    Hello Timothy,

    First of all thank you for your quick reply.
    Iam not that good with php yet. But i think i did evertything exaclty as you told.

    But it isn’t working yet, could you tell me what i am doing wrong?

    thank you and my kind regards,

    Adem D.

    I just looked at your site, looks like you have it now because they’re clickable for me.

    Everything good?

    Take care.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘posts not clickable in blog’ is closed to new replies.