Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3129

    Hi,

    im using the 3 columns text and image in the index php file and would like the images to ALSO be links to pages within my site as per the links for the read more text/links

    how do i do this or where so i add this within the index.php page?

    Here is my page:http://www.wagsescorts.com/

    here is my index.php code

    <?php get_header(); ?>

    <div id=”featured”>

    <div id=”featured_image”><?php

    ######################################################################

    # Get Images for the Basic Image Slider

    ######################################################################

    // these are the images for the jQuery slideshow, rendered with the help of the class

    // framework/theme_plugins/kriesi_menu_manager/kriesi_slider_display

    if(is_object($k_option)) $k_option->display(‘Mainpage Slider’); ?>

    </div><!–end featured_image–>

    </div><!–end featured–>

    <?php

    ######################################################################

    # Infotext with fallback message

    ######################################################################

    ?>

    <div id=”infotext”>

    <h2><?php echo $k_option; ?></h2>

    </div><!–end infotext–>

    <div id=”main”>

    <?php

    ######################################################################

    # 3 Boxes are created here, with the class “kclass_display_box” (located in framework/classes/)

    # content that is passed here is the html output if the

    # “output by html(default)” is choosen in the backend

    #

    # if you want to edit the html directly you can do this here. you can

    # enter your images directly as well if the size is already ok

    # or you might want to uncomment and change the paths of the placeholder

    # images i used here

    #

    ######################################################################

    // the kriesi_build_image function used here checks if the image should be resized.

    // it returns the resized image if the size is larger than the parameters provided

    // the function is located in framework/helper_functions

    $placeholder_image1 = get_bloginfo(‘template_url’).’/files/1.gif’;

    $placeholder_image2 = get_bloginfo(‘template_url’).’/files/2.gif’;

    $placeholder_image3 = get_bloginfo(‘template_url’).’/files/3.gif’;

    $placeholder_image1 = kriesi_build_image(array(‘url’=>$placeholder_image1,’height’=>’124′,’width’=>’280′));

    $placeholder_image2 = kriesi_build_image(array(‘url’=>$placeholder_image2,’height’=>’124′,’width’=>’280′));

    $placeholder_image3 = kriesi_build_image(array(‘url’=>$placeholder_image3,’height’=>’124′,’width’=>’280′));

    $placeholder[1] = $placeholder_image1.’<h3>Escort Gallery</h3><p>WAGs Escorts offers you some of the most fashionable, sexy, current, girl next door escorts in the South East across Sussex. Read more</p>’;

    $placeholder[2] = $placeholder_image2.’<h3>Join WAGs Escorts</h3><p>Are you currently working as an Escort or are you thinking of becoming an Escort? We invite you to fill out the form or contact us.Read more</p>’;

    $placeholder[3] = $placeholder_image3.’<h3>About WAGs</h3><p>WAGs Escorts, catering for all your Escort requirements whether that be a discreet personal visit or to accompany you on a day out. Read more‘;

    //call class

    $boxes = new kclass_display_box(‘mainpage’,’mainpage_column’,’Mainpage Column’, $placeholder);

    $boxes-> prev_image(array(‘height’=>’124′,’width’=>’280′));

    $boxes-> display();

    ?>

    </div><!–end main–>

    <?php get_footer(); ?>

    #40750

    Hey,

    please replace:

    $placeholder[1] = $placeholder_image1.'

    with:

    $placeholder[1] = '<a href="http://website.com">'.$placeholder_image1.'</a>

    Instead of “website.com” fill in the urls of the pages you want to link to (where the read more buttons link to). Please make this replacement for all three placeholders.

    #40751

    works a treat. thank you for your help and time and great theme!

    #40752

    Glad that I could help you :)

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

The topic ‘home page 3 images as links?’ is closed to new replies.