Results 1 to 3 of 3

Thread: Removing Thumbnails on the Homepage

  1. #1
    Thread Starter
    Rookie tankhan's Avatar
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Removing Thumbnails on the Homepage

    Is there a way to remove the thumbnails on the homepage. I selected the option NO to "Show Picture On Front Page" but now it shows broken links (red crosses) in place of the images. I want to totally remove the thumbnails on the front page so only text links remain.

    What files do I need to edit?

    Thanks
    Tan

  2. #2
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Removing Thumbnails on the Homepage

    I think the purpose of the adding category icons in place of images was to get rid of the red X. I'd like to fix this too...or at least be able to add my own icon like a plain bullet or something. Anyone know how to do this?

  3. #3
    Senior Member
    Not a Verified Customer
    chanders's Avatar
    Join Date
    Jul 2009
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Removing Thumbnails on the Homepage

    if you are ok with editing the theme files remove this code from index.php

    Code:
    					<?php if ( get_option('main_page_img') != "no" ) { ?>
    
    						<span class="image">	
    							<?php $images = get_post_meta($post->ID, "images", true);
    								if (empty($images)) {?>
    								    <div class="main_page_no_img">[img]<?php bloginfo('template_url'); ?>/images/no-pic.png[/img]</div></span>
    								<?php } else { ?>
    								<div class="main_page_img" style="background: #FFF url(<?php echo get_bloginfo('template_url')."/includes/img_resize.php?width=50&height=50&url=";?><?php
    										  if ( strstr($images, ',')) {  
    											$matches = explode(",", $images);
    											$img_single = $matches[0];
    											$img_single = explode(trailingsla****(get_option('siteurl')) . "wp-content/uploads/classipress/", $img_single);
    											echo $img_single[1];
    										  } else {
    											$img_single2 = $images;
    											echo $img_single2;
    												}?>) center no-repeat"></div></span>
    								<?php 
    								} 
    									} else {
    										$ii = 1;
    										echo "<span class='cat_image'>";
    										foreach((get_the_category()) as $category) {
    											if ($ii == "1") {
    												$cat_image = get_bloginfo('template_url')."/images/category-icons/".get_option("cat$category->cat_ID").".png";
    												echo "[img] . $cat_image . [/img]";
    												$ii++;
    											}
    										}
    										echo "</span>";
    									} ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)