Archived topic
CSS not working
9 replies · Started by George on October 17, 2017
I have used the following code on one of my sites, and it works fine:
/*remove navigation links below posts*/
.post-navigation {
display: none;
}
/*hide date on comments*/
.comment-metadata {
display: none;
}
Now I added the same code in the Simple CSS area on another website, and it doesn't work. No idea why. I cleared cash and cookies- doesn't help. Can you take a look please. This is one of the pages on the site:
https://www.staging10.shamakern.com/how-to-cook-traditional-thai-sweets-village-style/
Hi there,
Looks like it's working to me?
I don't see the paging navigation on that page: https://s1.postimg.org/3tf5vegx27/2017-10-17_1238.png
Let me know.
Not working: bottom navigation is still there:
https://www.screencast.com/t/ddVVFeqj
Post date is still showing:
https://www.screencast.com/t/Bw44LRrJSUH
There's an option to remove that in GPP 1.5, which is currently in beta: https://generatepress.com/gp-premium-1-5-alphabeta/
If that CSS isn't working, it's likely there's a syntax error in the CSS above it. You can test by adding it to the top of your custom CSS.
I tried putting it on top of the other CSS, but it still doesn't work. This is strange, since I used the exact same code for another website which also uses GP, and it works just fine. Any ideas?
Do you have an approximate release date for GPP 1.5?
This is the page where it's not working?: https://www.staging10.shamakern.com/how-to-cook-traditional-thai-sweets-village-style/
If so, it looks like it's working now - I see the CSS, and the post navigation is hidden. Maybe try clearing your browser cache?
Too weird, I tried it in two browsers, cleared cache in both of them, and the CSS is not working. But you say it is working at your end. Now I am really confused how this is possible.
As you can see, the post date is still there - after I cleared cache:
https://www.screencast.com/t/v8EYjrmg
But you didn't add the CSS to hide the date?
.entry-header .entry-meta {
display: none;
}
I used this CSS which worked perfectly on another website:
/*remove navigation links below posts*/
.post-navigation {
display: none;
}
/*hide date on comments*/
.comment-metadata {
display: none;
}
Now I added the CSS which you just gave me, and it works! Any reason why
.comment-metadata {
display: none;
}
is not working, and should I delete this?
And do you have another CSS to get rid of the post navigation at the bottom?
Do you have an ETA for the stable version of GPP 1.5 which will eliminate the need for this CSS according to Tom?
That only hides the date on comment I think.
The date, author and tag links can already be removed using the customizer options:
https://docs.generatepress.com/article/blog-overview/#blog-content
The only one that's not there is the post navigation which will be added in next version.