- This topic has 29 replies, 2 voices, and was last updated 9 years, 6 months ago by
Tom.
-
AuthorPosts
-
February 26, 2016 at 10:07 am #175483
cath
Hi Tom,
Thank you!
It has been a little while but I did do #1. this is what the issue was, as I wrote further up before I think it got confusing so I edited this for better hopeful clarity:
I thought I had resolved the featured image issue – I added the code to functions.php at the other site I am working on to test and have the first post full length PLUS I had already added this code to CSS as follows [.page-header-image-single {
display: none;
} ] ,however, the first image on my blog showed up full with TWO featured images.
When I went to remove the set featured image on that first post, I removed it, saved, and it still appeared. I tried this twice and for some reason it would remove it so I continued to have two featured images.
I removed the functions.php code for now.
I would like the first post to be full length with just one image. I like to set featured images in general but in theory could avoid doing so. I do not want double featured images showing on the old posts that already have this set.
****
#3) I believe my WP is 3.9.3. It was suggested by a host company that I switch to the 2016 WP default to update and then switch the theme back. I will update, I just am wary.
As far as #4, I had tried that and it was not quite working but since it has been a few weeks, I will try again.
Thank you.
Cath
February 26, 2016 at 12:08 pm #175527Tom
Lead DeveloperLead DeveloperAh, I understand now, sorry about that.
Try this:
.blog .type-post:first-child .entry-content img, .archive .type-post:first-child .entry-content img { display: none; }
Let me know if that gets us closer 🙂
February 26, 2016 at 12:55 pm #175541cath
Hi Tom,
No worries. Thanks for the help.
Just to clarify – where am I placing this code?
Thank you —
Cath
February 26, 2016 at 12:56 pm #175542Tom
Lead DeveloperLead DeveloperThis should help: https://generatepress.com/knowledgebase/adding-css/
February 26, 2016 at 1:35 pm #175548cath
Hi, yes, I know; I just wanted to make sure it was CSS and did not go elsewhere. Thanks!
So right now I have this code in CSS – should I leave that or not?
.page-header-image-single {
display: none;
}This is on the test site. Thanks!
February 26, 2016 at 9:47 pm #175614Tom
Lead DeveloperLead DeveloperYou can keep that if you’re still getting double images on the single post page 🙂
February 29, 2016 at 11:02 am #176128cath
Hi Tom, Hope things are good.
When I added this code (along with the added functions.php code to have full length post and the other CSS to remove double featured images)
.blog .type-post:first-child .entry-content img,
.archive .type-post:first-child .entry-content img {
display: none;
}it messed up other photos in the post. So I removed this code.
I tried removing the other CSS code to be sure which thing was causing it but it was definitely this code. The post has like eight photos and the bottom photos did not appear (just the text showed, sort of jumbled).
(It is at http://washingtonsquareparkblog.com but I removed the other code. I can put it back to show you perhaps later.)
Thanks for any advice. I did not try doing the columns again yet!
Cath
February 29, 2016 at 11:05 am #176130cath
p.s. I could also take a screen shot of it later.
February 29, 2016 at 9:56 pm #176193Tom
Lead DeveloperLead DeveloperAh, it helps seeing the site.
Can you try this code?:
.blog .type-post:first-child .post-image, .archive .type-post:first-child .post-image { display: none; }
March 1, 2016 at 8:14 am #176334cath
Hi Tom,
That worked ! Thanks so much!!!
I am going to try out the columns later.
I wondered about the social icons on the posts, particularly the first posts. I know the social plugins are not related to your theme, but I have used themes where the (FB, Twitter) icons show on the first post when it is full-length. Is that something you can help with, particularly the first one ?
Thanks again!
Cath
March 1, 2016 at 11:43 am #176381Tom
Lead DeveloperLead DeveloperThat would definitely completely on the social plugin you’re using I think – they all have different settings and different methods for inserting themselves into full posts/excerpts.
March 14, 2016 at 3:58 pm #179341cath
Hi Tom, yes, it was the plugin. got it sorted out.
I think I figured out the columns although I may have other questions about that to come.
Right now, I have my first post set full length having changed code in functions.php.
Is there a way to make the first two posts full length?
Thanks again!
Cath
March 14, 2016 at 11:03 pm #179374Tom
Lead DeveloperLead DeveloperGive this PHP a try (instead of the other code you’re using): https://gist.github.com/generatepress/247fc8309d9e8a683f04
March 15, 2016 at 11:24 am #179540cath
so I should remove the other ? Thanks! Will give it a try.
March 15, 2016 at 9:20 pm #179609Tom
Lead DeveloperLead DeveloperYes, replace the old one with this one 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.