Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6022

    Hi,

    I would like to add links on the images:

    * of the slideshow;

    * of the three posts (and on the titles).

    http://biobrisk.com

    how do I do it?

    thanks a lot

    #52601

    Hi,

    no reply means impossible, difficult or… I just keep waiting?

    ;)

    Thanks a lot

    #52602

    Hey,

    excuse me for the delay, your post must have slipped through.

    If you selected a page where your slider gets the image you can open your header.php and find

    if ($my_query->have_posts()) :  while ($my_query->have_posts()) : $my_query->the_post();
    the_content();
    endwhile; endif;

    replace this by

    if ($my_query->have_posts()) :  while ($my_query->have_posts()) : $my_query->the_post();
    ?><a href="<?php the_permalink();?>"><?php
    the_content();
    ?></a><?php
    endwhile; endif;

    If you chose the option to “use posts” for filling the boxes you can open your index.php and at the bottom of the file replace

    <div class="info_box box<?php echo $counter; $counter++; ?>">
    <div class="box_image"><img src='<?php echo $preview_pic_mainpage; $preview_pic_mainpage =''; ?>' alt="" /></div>
    <span class="meta"><?php echo $punchline; $punchline='';?></span>
    <h2><?php the_title(); ?></h2>
    <?php the_content('Read more'); ?>
    <?php edit_post_link('Edit','', '' ); ?>
    </div>
    <?php endwhile; endif; ?>

    by

    <div class="info_box box<?php echo $counter; $counter++; ?>">
    <div class="box_image">
    <a href="<?php echo get_permalink(); ?>">
    <img src='<?php echo $preview_pic_mainpage; $preview_pic_mainpage =''; ?>' alt="" /></div>
    <span class="meta"><?php echo $punchline; $punchline='';?></span>
    <h2><?php the_title(); ?></h2>
    <?php the_content('Read more'); ?>
    </a>
    <?php edit_post_link('Edit','', '' ); ?>
    </div>
    <?php endwhile; endif; ?>

    Note: if you want to do it manually none of the above options work – I doubt you did it manually though, so it should work :)

    #52603

    Thanks a lot, no problem for the delay!

    :)

    I will try your solution, but I do not understand what do you mean for:

    “Note: if you want to do it manually none of the above options work – I doubt you did it manually though, so it should work :)”

    It is only the home page that I want to modify to let images be linked… I can go?

    Thanks again

    #52604

    Yes – the mods will affect the homepage only :)

    #52605

    first point works PERFECTLY: thanks a lot! :))

    second point… not! or at least not as I want.

    In few words: your suggestion changes all the post to be a link and the link is the post link (as I don’t want to).

    Request:

    I would like to put the link I want on each image and title for the three boxes (for a total of three different links).

    It is feasible?

    #52606

    Yes,

    you can open your index.php, you’ll have to select “edit by html” in your dashboard and then edit the part after

    //*if you did choose: "edit by html" you can now edit the following lines: *//

    #52607

    Thanks a lot, I juste tried and everything is working fine.

    Really thanks for your super support!

    ;)

    #52608

    Glad that Chris could help you :)

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘links on images’ is closed to new replies.