• Hi everybody,
    i need to solve this problem. I’d like to change the post image link in the blog index page, i’d like that the post images point direct to the post.

    This is the site: https://www.leotorri.com/wordpress/?page_id=1069

    And this is the part of the code i’d like to change:

    <!– Begin each blog post –>
    <div class=”post_wrapper”>

    <?php
    if(!empty($image_thumb))
    {
    $small_image_url = wp_get_attachment_image_src($image_id, ‘blog’, true);
    ?>

    <br class=”clear”/>
    <div class=”post_img”>
    <ahrf=”<?php echo $image_thumb[0]; ?>” class=”img_frame”>
    <img src=”<?php echo $small_image_url[0]; ?>” alt=”” class=””/>

    </div>

    <?php
    }
    ?>

    I’ve change the word ahref to make you read my post correctly.

    Thank you very much and regards

    Manuel

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter manolino11

    (@manolino11)

    ok i’ll try and thanks

    Thread Starter manolino11

    (@manolino11)

    Ok i’ve disable all plug ins but it still not working…. i’ve noticed thar it works when opened in new window or tab..

    Plugins are still disabled

    It’s unbeliveable..

    sorry had work so the delay..

    in your header.php file you will find this code:

    <!-- Template stylesheet -->
    
    <!-- script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script -->
    <script src="<<<path>>>jquery.js"></script>

    comment out that js file inclusion and give it a try.
    <!-- <script src="<<<path>>>jquery.js"></script> -->

    if this works then revert back all changes made except <a href="<?php the_permalink(); ?>"> and removing jquery.js.
    and its for you to check why and where jquery.js is used and do the needful.

    cheers.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Changing the post thumbnail link onto blog index page’ is closed to new replies.