Hey, thank you guys for all of your help with this theme. I am trying to figure out how to avoid having oversized pictures pulled into the homepage when I link those 4 columns below the slider to pull various pages. I don't want all the page content pulled up in a long column and everytime I set it to a page with a pic and content it does this. How can I set a thumbnail pic to show and then limit how much content shows up in the column?
Customizing Home Page Content
12 posts from 3 voices-
Posted 1 year ago #
-
A good example of this if you scroll down to the section beside the testimonials: http://altd.dev.amermancreative.com/
Posted 1 year ago # -
Hey,
open up cleancut\framework\classes\kclass_display_box.php and change:
the_content('');to:
the_content('Read more');and use the more tag to limit the content.
Posted 1 year ago # -
I get a syntax error when I replace it with the code above. Should I just work around by setting up posts that link to the pages I want. Maybe that's the easiest way. I'll probably do that, but let me know if there is a short way to fix the code. Thanks
Posted 1 year ago # -
I corrected the code above - the code shortcode messed it up :)
Posted 1 year ago # -
okay now I do have the option to use the more tag, however, when I do, I get two read more buttons on the homepage for the same column. Also, I am still getting huge pictures pulled in from the page. I don't want to mess up the layout of my page by making the pics small or deleting them. What can I do?
Posted 1 year ago # -
does anyone know the answer to this question?
Posted 1 year ago # -
Please delete following line in cleancut\framework\classes\kclass_display_box.php
echo '<a href="'.get_permalink().'" class="more-link">Read more</a>';2) As far as I know there's no easy way to adjust the thumbnail size for excerpts. Normally WP strips the images from the excerpt or you can enter a custom excerpt by using the excerpt field. If you'd like to use the excerpt field you need to change:
the_content('');to:
the_excerpt();and leave the read more button code. Now you can enter your custom excerpt text in "excerpt" options field.
Posted 1 year ago # -
Thanks! The excerpt code did EXACTLY what I needed!
I appreciate it! However, can I get this to apply to the page that shows beside Testimonials as well.And my last question- I have changed the size of my portfolio thumbnails and it is affecting the thumbnails of the 4 columns on the front page.What would be the easiest way to set up 2 different sizing rules- one for portfolio thumbnails, and one for those 4 columns on the homepage?
Posted 1 year ago # -
I'd add another image size in functions.php like:
$k_option['custom']['imgSize']['PL'] = array('width'=>610, 'height'=>160); // image for frontpageand adjust the dimensions to your needs and in cleancut\framework\classes\kclass_display_box.php change:
$preview = kriesi_post_thumb($post->ID, array('size'=> array('M'), 'display_link' => array('none'), 'wh' => $k_option['custom']['imgSize']['M'] ));to:
$preview = kriesi_post_thumb($post->ID, array('size'=> array('PL'), 'display_link' => array('none'), 'wh' => $k_option['custom']['imgSize']['PL'] ));Posted 1 year ago # -
Worked like a charm! Thank you!!!
Posted 1 year ago # -
Glad Dude could help you :)
Posted 1 year ago #
Reply
You must log in to post.














