GeneratePress 2.1 has been released!
Font Awesome
Font Awesome will no longer be updated in GeneratePress as of 2.1. If you have Font Awesome enabled on your site, it will continue to work as normal. If it’s deactivated, the “Load essential icons” option in the Customizer will no longer be visible.
Instead of using Font Awesome within the theme, we suggest using a plugin like Better Font Awesome.
If you’d like to learn how to add Font Awesome 5 yourself, please see this article.
New Icons
Instead of using Font Awesome for our theme icons, we had brand new custom icons created specifically for GeneratePress. These icons are more modern than the previous Font Awesome 4 icons.
Huge thanks to Peter and Paul from The Dickiebirds Studio for designing these for us!
Fewer HTTP Requests
We were able to optimize and move things around, which resulted in 2 fewer HTTP requests. This means when you first install GeneratePress, there’s only 5 HTTP requests (3 CSS, 2 JS).
Cleaner CSS
We cleaned up style.css a bit, and removed any Secondary Navigation specific CSS, which was added to GP Premium 1.6. If you’re using the Secondary Navigation and don’t have GPP 1.6, open a support topic and we’ll provide the necessary CSS for you.
We also removed a couple wildcard selectors, which were a little greedy and causing some weirdness with some plugins. More specific selectors are now used, which will reduce conflicts.
Easier Updated Date
The updated date HTML has been moved in front of the published date HTML, which should help Google pick up on it easier. It also makes it easier to display the updated date instead of the published date.
.posted-on .updated {
display: inline-block;
}
.posted-on .updated:before {
content: "Last Updated ";
}
.posted-on .updated + .entry-date {
display: none;
}
Simplified Mobile Menu CSS
The mobile menu CSS has been simplified, which will make it much easier to initiate the mobile menu at a different width than the default.
Full Changelog
- New: Structured data to comments
- New: aria-label to sidebar navigation mobile menu
- New: Update all theme icons
- New: generate_metabox_tabs filter
- New: generate_after_footer hook
- New: generate_before_comments_container hook
- Tweak: Simplify mobile menu CSS
- Tweak: Load updated date before published date
- Tweak: Force array in Layout metabox to prevent PHP notices
- Tweak: Use https for schema.org references
- Tweak: Replace wildcard CSS selectors with specific selectors
- Tweak: Remove list item bullets in sidebar and footer widgets only
- Tweak: Make button/input line height consistent with link buttons
- Tweak: Add version to database for future migrations
- Tweak: Move back to top button to generate_after_footer
- Tweak: Remove focus class from menu items on click if leaving site
- Tweak: Keep tab focus inside navigation search when open
- Tweak: Remove roles from sidebars
- Fix: Sidebar sub-menu positioning after click
- Fix: Rare Customizer JS error related to typography
- Fix: Various small W3 errors
- Fix: Navigation aria-hidden issue
- Remove: Font Awesome Essentials HTTP request
- Remove: dropdown.js HTTP request
- Remove: IE6 CSS
- Remove: Secondary navigation CSS added to GPP 1.6
- Remove: Secondary navigation JS
Hi Tom
Is there a page where we can see or download the new Generate-press font?
Thanks,
Dan
I just added them to the post 🙂
Thanks!
Thanks for the update, still love your theme! <3
Thank you! 🙂
Thanks, I use generatepress and GPP on all the sites I have ..
A few months ago, you have provided me function for replacing published date in posts and pages-
# Change Publish date to modified date
add_filter( 'generate_post_date_output', 'tu_show_modified_date' );
function tu_show_modified_date() {
$time_string = '%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '%4$s';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
printf(
'%1$s', // WPCS: XSS ok, sanitization ok.
sprintf( '%3$s',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string
)
);
}
# Display Last Modified Date in Pages
add_action( 'generate_after_entry_header', 'tu_page_meta' );
function tu_page_meta() {
if ( is_singular( 'page' ) ) : ?>
<?php endif;
}
Here is the CSS
- /* Last Modified date Display */
.posted-on .updated {
display: inline;
}
.posted-on .updated:before {
content: "Last Updated: ";
}
.home .entry-meta {
display: none;
}
Is it still needed or the theme now has functionality to display the Last Updated date by itself?
It’s much easier now. Check this out: https://docs.generatepress.com/article/show-the-updated-post-date/
Sorry for asking but I’m not a technical person 🙂 Where do I add the CSS to show the Last Updated date?
This should help: https://docs.generatepress.com/article/adding-css/
Any docl to using new generatepress icons?
They aren’t really supposed to be used within your content. They only exist for a few specific theme elements. If you need icons for your content, we suggest Font Awesome. You can also build your own font icons using a tool like IcoMoon.
Thanks Tom, I’m enjoying GP!
I’ve read in previous forum topics that having the site title in the sticky navigation would become a native feature of GP. What’s the status here?
That’s still something I’d like to do in GP Premium. It’s easier said than done because of line height issues, but it’s on our radar.
Fantastic work!
Thanks Tom!
Bravo, Tom! GP just keeps getting better than ever…
Hi! After update to 2.1. my slide-out navigation icon is gone… what to do?
the site is https://www.thehealthyapron.com/ thanks, Kruno
Can you open a support topic?
Thanks!
oh thanks, I use generatepress and GPP on some my site
Thax, almost all of my site using GP, thanks for the effort make thame like this
Hi mister Tom..
very nice to use generatepress for my nu website. Its very amazing speed theme.. hopely i can upgrade for premium this month.. and very nice plugin for simple css to..