Community Forums › Forums › Design Tips and Tricks › Luscious Theme – Shows double image of featured
This topic contains 15 replies, has 3 voices, and was last updated by Jenny S 2 months, 3 weeks ago.
-
AuthorPosts
-
February 24, 2013 at 3:08 pm #22569
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 #22654Edit 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 #22694Thank 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 #22726Ok. 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?
February 25, 2013 at 1:40 pm #22748This 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 #22812Go 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 #22939DONE. Please check. Thank you
February 26, 2013 at 11:43 pm #23047.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 #23092I 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 #23096You put that code in child theme’s style.css, not functions.php.
February 27, 2013 at 9:26 am #23099I 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 #23101I 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 #23103Right.
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 #23107Did 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 #23234Add this CSS code:
.single-post .post-photo { margin-left: 0; } -
AuthorPosts
You must be logged in to reply to this topic.