Community Forums › Forums › Archived Forums › Design Tips and Tricks › Luscious Theme – Shows double image of featured
- This topic has 15 replies, 3 voices, and was last updated 11 years, 1 month ago by Jenny S.
-
AuthorPosts
-
February 24, 2013 at 3:08 pm #22569Jenny SMember
Hi,
In post, uploaded image to featured : http://screencast.com/t/R4Mp6HeZ
It shows weird on post and also covers half of the Date http://screencast.com/t/oyEHxbVt0kht
Also, shows weird on category page : http://screencast.com/t/3Tojjkow
I am probably missing something
Thank you
February 25, 2013 at 12:39 am #22654Sridhar KatakamParticipantEdit theme's functions.php.
Comment out or delete
add_action( 'genesis_before_post_title', 'luscious_post_image', 8 );
Can you give URL of any page in your site where the date is getting cut off?
February 25, 2013 at 9:04 am #22694Jenny SMemberThank you Sridhar for the quick responce.
Edit theme’s functions.php.
Comment out or delete
add_action( 'genesis_before_post_title', 'luscious_post_image', 8 );
I commented out this line and problem of cutting the date and too many images is resolved, however, featured image disappeared completely as well.
Can you give URL of any page in your site where the date is getting cut off?
Post url: http://bit.ly/XWkrJQ
Category url: http://bit.ly/WecQvL
Thank you!
February 25, 2013 at 11:27 am #22726Sridhar KatakamParticipantOk. I thought you wanted to not show the featured image above the post title.
I checked both the URLs and don't find the problem. In which browser is the issue present?
http://cl.ly/image/3E1i222P0T3P
http://cl.ly/image/0w3A1g0S2M1R
February 25, 2013 at 1:40 pm #22748Jenny SMemberThis is happening in all browsers.
After i commented out this line
add_action( 'genesis_before_post_title', 'luscious_post_image', 8 );
as suggested, there is no more image problem as it was here before (http://screencast.com/t/oyEHxbVt0kht)when added featured image.
This is the previous category page before removing the line: http://screencast.com/t/3Tojjkow
So we know the problem is in featured image.
I do want to have this featured image as it shows in theme demo, however, i dont want it to show on category page where it should not be and also i dont want it to remove half of the date.
Thank you
February 25, 2013 at 7:10 pm #22812Sridhar KatakamParticipantGo ahead and un comment/add the
add_action( 'genesis_before_post_title', 'luscious_post_image', 8 );
line back in functions.php and let us know when done.
February 26, 2013 at 11:35 am #22939Jenny SMemberDONE. Please check. Thank you
February 26, 2013 at 11:43 pm #23047Sridhar KatakamParticipant.archive .post-photo { display: none; }
will get rid of featured post image above the post title for all posts only in archive pages.
February 27, 2013 at 8:43 am #23092Jenny SMemberI added this code (screenshot) and now I am getting this error when try to access the website:
Parse error: syntax error, unexpected '.' in /home/mediaj/public_html/wp-content/themes/luscious/functions.php on line 36
Thank you
February 27, 2013 at 9:20 am #23096Sridhar KatakamParticipantYou put that code in child theme's style.css, not functions.php.
February 27, 2013 at 9:26 am #23099Jenny SMemberI double checked and it is child's theme function.php http://screencast.com/t/34VK4BvD1m
What makes you think this is style.css?
Thank you
February 27, 2013 at 9:32 am #23101surefirewebservMemberI think he meant you put the style sheet code in the functions file, not the style sheet.
.archive .post-photo {
display: none;
}Goes in style.css
SureFireWebServices.com | Genesis Tuts and More
Genesis Theme Starter Kit | It’s FreeFebruary 27, 2013 at 9:40 am #23103Sridhar KatakamParticipantRight.
I should have written:
"You kept that code in child theme’s style.css, not functions.php."
Place the suggested CSS code in child theme's style.css (Appearance -> Editor), not in functions.php.
February 27, 2013 at 9:59 am #23107Jenny SMemberDid this and it took care of the category page: http://bit.ly/WecQvL
However, posts still show cut date http://bit.ly/XWkrJQ
Thank you
February 27, 2013 at 10:09 pm #23234Sridhar KatakamParticipantAdd this CSS code:
.single-post .post-photo { margin-left: 0; }
February 28, 2013 at 8:06 am #23260Jenny SMemberPerfect! This took care of the issue. Thank you !!!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.