Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to remove featured image on Minimum theme post page?
- This topic has 7 replies, 4 voices, and was last updated 11 years, 7 months ago by Brenners.
-
AuthorPosts
-
March 11, 2013 at 3:43 pm #25511MMMember
Hi
On Minimum Theme...
I'm trying to leave the featured image as a tile on the blog category page eg. http://www.hayleywebb.com/category/blog/
BUT
Remove the big (above post and wide site title bar) image on the actual post eg. www.hayleywebb.com/my-first-orange-monkey/
Any ideas?
Also if possible, is there a way on the homepage (www.hayleywebb.com) to insert a small tile 90 x 90 as a preview on the post preview grid of 6.
Thanks!
March 12, 2013 at 12:27 am #25610joycegraceParticipantFor question 1) - what theme is this? You might have to either remove something from your functions.php file or install Genesis Simple Hooks to get it not to display that top part (hopefully not the latter). If you can show what you have in your functions.php file it might help us figure it out.
For question 2) - are you using Genesis Featured Posts widget for this? If so, there is an option to display an image, and tells you the size to chose from. If you need a smaller size than what's available, you need to register a new thumb or featured image size, for which I'm sure there are code snippets to grab from on this site or on the web. You will need to insert that new image size code snippet into the functions.php file
Find me at Joyce Grace (http://www.joycegrace.ca)
March 12, 2013 at 7:05 am #25634MMMemberThanks Joyce , it's Minimum Theme. Does that change any of the above advice? Cheers!
March 12, 2013 at 12:13 pm #25680MMMemberThanks Joyce, have found advice on removing the featured fully. It's below.
Still wondering about:
Also if possible, is there a way on the homepage (www.hayleywebb.com) to insert a small tile 90 x 90 as a preview on the post preview grid of 6.
-----
for Minimum, you can alter this function in the functions.php file to remove the post image:/** Add the featured image section */
add_action( 'genesis_after_header', 'minimum_featured_image' );
function minimum_featured_image() {
if ( is_home() ) {
echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>';
}
elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
echo '<div id="featured-image">';
echo get_the_post_thumbnail($thumbnail->ID, 'header');
echo '</div>';
}
}Just remove this part:
elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
echo '<div id="featured-image">';
echo get_the_post_thumbnail($thumbnail->ID, 'header');
echo '</div>';
}March 12, 2013 at 3:31 pm #25721joycegraceParticipantHi, it's answered above, where I say "for question 2)...."
Did you have something specific to ask further to that?
Find me at Joyce Grace (http://www.joycegrace.ca)
March 12, 2013 at 3:41 pm #25728Bill MurrayMember@joycegrace - Your advice would work if the Minimum theme had a widget area there. However, it uses the grid loop and is hard-coded into home.php. Therefore, your advice won't work.
@MetcalfeM - You need to edit your home.php. Your theme uses the grid loop and its settings are hard-coded in that file.On our network, we've widgetized this area of the theme to make this easier. We've also done some variations, such as making the homepage 2 column. Here's a demo of one of our Minimum variations that uses widgets, which makes this process easier.
Web: https://wpperform.com or Twitter: @wpperform
We do managed WordPress hosting.
March 12, 2013 at 4:01 pm #25734MMMemberThanks Bill, Joyce. Will try that avenue. Nice theme tweaks there also Bill.
April 18, 2013 at 1:09 pm #36195BrennersMemberI found this thread post by @Jen Baumann, telling how to remove the featured image from blog post pages. Also, it explains how to set a thumbnail on the homepage.
http://www.studiopress.community/topic/minimum-featured-image-help/
I successfully removed the large feature image from the blog post pages. I also was able to get a thumbnail image to appear on the home page. However, I am not sure what this part means:
You’ll also need to register an image size (or use one already registered in functions.php) and maybe even add a bit of css.
`add_image_size(``'grid-thumbnail'``, 100, 100, TRUE);`
How do I register an image size and where on the stylesheet do I add the css?
I would like to specify a thumbnail size as well as tell it to align left of the text, so that my recent blog posts part of the homepage looks similar to this website:
Thanks in advance for your explanation.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.