August 17, 2010 at 10:01 pm #777
Thanks for the great theme.
Is it possible to display thumbnails (like on the home/index page) for the search results from the search bar instead of the current layout?
Many thanks in advance
PaulAugust 18, 2010 at 1:43 pm #32847August 20, 2010 at 1:23 pm #32848
This is possible but requires you to modify the theme. If you compare the style of the page you like (eg page.php / single.php) and compare with search.php you can see that the thumbnail is already called but is the M (medium) size rather than L (large) images.
Just copy over the L code to replace the M code (and update small_prev_image to big_prev_image).August 21, 2010 at 8:36 am #32849August 22, 2010 at 12:23 pm #32850
Thanks for this…I had already tried this, but can only get it to partially work. I have a couple of questions:
1. I copied the code i wanted from the index.php replacing the search.php. Now it displays the layout I want (i.e same as the homepage) however the thumbnail images will not load? Any Ideas?
2. Is it possible to add code to directly to this theme? What i mean is, on other themes I can add a plugin’s php display code directly in to the theme. For example, with the plugin WP PostViews there is a snipit of code you can place directly into your theme. I want to place this in the thumbnail images, yet everytime i insert it i get parse errors. If i insert it after the footer or before the header its ok. Im guessing it the loops and the way the theme is designed. What is the way around this?
Site url: http://indian-movie.org/
Many thanks in advanceAugust 23, 2010 at 6:12 pm #32851
1.) The images seem to be loading fine for me. Can you post a direct URL to a page where they aren’t working if this problem is still going on?
2.) Yes, just backup the file before making changes, and don’t rely on WP’s editor, use a separate text editor and FTP program.
JamesAugust 23, 2010 at 10:45 pm #32852
Thanks for the response. The thumbnail images are working on the home page but not for the search results. For example – http://indian-movie.org/?s=movie
It just seems to display the loading symbol and no thumbnail image. The thumbnails are clickable and go to the correct post.
Many thanks for your help.August 24, 2010 at 3:36 pm #32853
The images are there but something’s conflicting with the jQuery which is stopping the site running the image loading correctly.
Can you disable all your plugins to see if this fixes the problem? If it does, activate them one by one until you find the culprit.
JamesAugust 31, 2010 at 4:02 am #32854September 1, 2010 at 10:03 am #32855
This the code i used http://tinypaste.com/bb07a Works fine in my site Charmthemes.comSeptember 1, 2010 at 9:14 pm #32856
The topic ‘Expose – Thumbnails for search results’ is closed to new replies.