Support » Theme: Travel Lite » How can I make the featured images clickable?

  • hi! I would like to ask how can I make those 6 boxes, the featured images to be clickable? thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • good question, same problem
    anybody out there?

    yeah. it would be perfect if the images are clickable and redirects to the designated page 😀

    I agree. I am new to php. From what I can tell the link(s) could be added in featured-box.php. But I need help with code as it relates to this theme so that each of the 3 (or 6) images can have their own link to a URL unique to that image. Any help would be greatly appreciated!

    Does someone has been able to find a solution?
    Thank you!

    open featured-box.php find <?php foreach (range(1, 3) as $fboxn) { ?>

    chang 3 to 6 and save.

    2. open options.php find // Front Page Fearured Images $options[] = array(
    ‘desc’ => ‘<span class=”featured-area-title”>Featured Boxes</span>’,
    ‘type’ => ‘info’);

    foreach (range(1, 3 ) as $fbsinumber)

    change 3 to 6 save.
    you can do same for Fearured content

    There is lots of customization required for featured images clickable. I suggest first create child themes otherwise you can do like follows…

    1. Take backup of featured-box.php then open this file.

    2. comment out all code between
    <div class=”featured-boxs”>

    3. if you have three/6 featured image then you have to repeat following code three/6 time

    <span class=”featured-box”>
    <h2><?php echo of_get_option(‘featured01-title’ . 1, ‘Featured’); ?><span> <?php echo of_get_option(‘featured02-title’ . 1, ‘Image’); ?></span></h2>
    <img src=”<?php echo of_get_option(‘featured-image’ . 1, get_template_directory_uri() . ‘/images/featured-image’. 1 . ‘.jpg’); ?>”/>
    <p><?php echo of_get_option(‘featured-description’ . 1, ‘A Smart way of Natural Presence. This is a Test Description and you can change it from the Theme Options.’); ?></p>

    for second time 1 becomes 2 and <a href =”your page link” before img tag

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I make the featured images clickable?’ is closed to new replies.