- This topic has 7 replies, 3 voices, and was last updated 5 years ago by
Elvin.
-
AuthorPosts
-
March 6, 2021 at 2:03 pm #1684891
Kathrin
At the moment I’m using merge+minify+refresh to speed up my webpage. But I have some speed problems so I want to move to WP Rocket. Can you please tell me what are the best settings in WP Rocket for Generate Press?
Greetings Kathrin
March 6, 2021 at 5:52 pm #1684999Leo
StaffCustomer SupportHi Kathrin,
Unfortunately we don’t use WPRocket ourselves so I am not really sure.
We use Autopimize for our website and here are the suggested settings which I’d assume WP Rocket has something similar:
https://docs.generatepress.com/article/configuring-autoptimize/You will need to make sure the settings work with your other plugins as well.
The best way is probably to do some trials and errors.
Hope this helps 🙂
March 7, 2021 at 12:50 pm #1685872Kathrin
Ok, thank you very much for the information. David told me that I should not activate the critical css path so that WP Rocket is doing that automatically. But was is about the custom css code that I added to the theme:
@media (min-width: 768px) {
#primary {
border-right: 1px solid #222;
}
}
.site-header {
background-color: rgb(158, 194, 42);
}
.inside-header {height: 250px; flex-shrink: 0;}
.entry-meta {
font-size: 85%;
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.5;
}
.rank-math-breadcrumb, .rank-math-breadcrumb a {
font-size: 10px;
margin-bottom: 40px;
}
@media (min-width: 768px) {.main-title {
font-size: 75px;
margin-bottom: 30px;
text-shadow: 0 0 5px whitesmoke;}
.site-description {
color: rgb(255, 255, 255);
font-weight: 400;
font-size: 25px;
margin: 0px;
}
h1.entry-title {font-size: 50px;}}
@media (max-width: 768px) {.main-title {
font-size: 35px;
margin-bottom: 15px;
text-shadow: 0 0 5px whitesmoke;}
.site-description {
color: rgb(255, 255, 255);
font-weight: 400;
font-size: 15px;
}
h1.entry-title {font-size: 30px;}}Must this be included in the critical css path that ClS is avoided?
Greetings Kathrin
March 7, 2021 at 5:51 pm #1686048Leo
StaffCustomer SupportIs that added in Additional CSS field in the customizer?
The best way is to try including it and excluding it and see what works for you.
March 8, 2021 at 7:06 am #1686799Kathrin
Yes, it is added in the Additional CSS field in the customizer. But how I include and exclude it?
Greetings Kathrin
March 8, 2021 at 7:06 pm #1687481Elvin
StaffCustomer SupportHi there,
CSS added on Appearance > Customize > Additional CSS are added as an embedded style in
<style id="wp-custom-css"></style>rather than on an external css file.I’m not sure if WP Rocket is able to exclude embedded or inline CSS. You can try making a child theme for its
style.cssand exclude that stylesheet,or create a custom_style.css file containing your custom CSS and manually upload it through FTP and use a Hook Element to add the stylesheet on wp_head hook.
or ask WP Rocket if they have a way to excluded embedded stylesheets. 🙂
March 9, 2021 at 1:10 pm #1688708Kathrin
Thank you very much.
Greetings Kathrin
March 9, 2021 at 4:41 pm #1688872Elvin
StaffCustomer SupportNo problem. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.