Quantcast
Channel: GeneratePress
Viewing all 201 articles
Browse latest View live

GP 1.3.21

$
0
0

GP 1.3.21 has been uploaded to WordPress.org.

To get this update now, click here.

Here's what changed:

  • Czech translation updated (thank you Ondrej!)
  • Fix issue where custom post types (bbPress etc..) were highlighting blog menu item
  • Remove colors CSS for current_page_item classes
  • Add current-menu-item classes to wp_list_pages (if no Theme Location is set in Menus)
  • Reduce amount of colors CSS in <head>
  • Reduce amount of spacing CSS in <head>
  • Reduce amount of typography CSS in <head>
  • Add fix for Beaver Builder full width layouts
  • Update to Font Awesome 4.5.0
  • Turkish translation added (thank you Larry!)

The post GP 1.3.21 appeared first on GeneratePress.


GP Premium 1.2.75

$
0
0

We've release GP Premium 1.2.75 today with a lot of improvements.

The biggest improvement is removing 250 lines of CSS from the CSS created by the Customizer options.

Here's a full list of what changed:

(11/27/2015) - 1.2.75

  • Czech translations added to all add-ons - thanks Ondrej!
  • Slovak translation added to GP Premium - thanks Jan!
  • Move from email activation to license key activation
  • Menu Plus: Add ability to add menu item with slider-exit class to exit the slideout menu
  • Menu Plus: Add generate_after_slideout_navigation hook
  • Menu Plus: Adjust mobile search item selector to include ability for more items to be added
  • Menu Plus: Fix slideout menu on Windows phones
  • Menu Plus: Reduce amount of CSS shown in the <head> section
  • Blog: Use array for image resizer instead of string
  • Blog: Show date and author on single post even if content title is hidden
  • Hooks: Move before header hook content above navigation when set to above header
  • Colors: Adjust mobile search item selector to include ability for more items to be added
  • Colors: Reduce amount of CSS shown in the <head> section
  • Spacing: Adjust mobile search item selector to include ability for more items to be added
  • Spacing: Reduce amount of CSS shown in the <head> section
  • Sections: Allow sidebars to display on with Sections if generate_sections_sidebars filter is set to true
  • Sections: Make adjustment to ensure compatibility with PHP7
  • Disable Elements: Disabling the site navigation also disbale the sticky navigation if Menu Plus is activated
  • Typography: Reduce amount of CSS shown in the <head> section
  • Backgrounds: Reduce amount of CSS shown in the <head> section
  • Page Header: Reduce CSS shown in <head> section if there's no page header content
  • Secondary Nav: Reduce amount of CSS shown in the <head> section

The post GP Premium 1.2.75 appeared first on GeneratePress.

GP Premium 1.2.76

$
0
0

Quick bug fix dealing with the Menu Logo in the Menu Plus add-on.

The logo was displaying when the sticky menu was disabled.

(11/27/2015) - 1.2.76

  • Menu Plus: Don't display sticky menu logo if sticky menu is disabled

The post GP Premium 1.2.76 appeared first on GeneratePress.

GP Premium 1.2.77

$
0
0

Just a quick bug fix dealing with Blog post images.

(11/29/2015) - 1.2.77

  • Blog: Fix warning when post image width is set without a height

The post GP Premium 1.2.77 appeared first on GeneratePress.

GP 1.3.22 & 1.3.23

$
0
0

Update: 1.3.23 has been uploaded with a slight modification.

  • Match dropdown open and close delay

GeneratePress 1.3.23 has been uploaded to WordPress.org.

This is a pretty major update which focuses mainly on efficiency and speed.

All major javascript files have been completely re-written.

Superfish menu  and hoverIntent have been replaced with small, custom scripts.

CSS and JS have all been minified for better load times.

If you're using a caching plugin, please flush the cache after updating.

You can download the update here.

Here's the full list of what changed:

  • Add new filter: generate_comment_avatar_size
  • Add fixed width to navigation search icon when no menu is set
  • Chinese Simplified translation added (thank you Kerry!)
  • Turkish translation updated (thank you Larry!)
  • Remove "About" from the top of author pages
  • Add generate_category_post_navigation filter to force post navigation to be category specific
  • Improve WooCommerce compatibility by using hooks instead of woocommerce.php template
  • Removed superfish menu script
  • Removed hoverintent menu script
  • Re-write navigation dropdown menu script and minify it
  • Re-write navigation.js and minify it
  • Re-write navigation-search.js and minify it
  • Rename generate_contruct_sidebars to generate_construct_sidebars
  • Tighten up padding when one container is set as your content layout
  • Add live update to link color and link color hover in Customizer
  • Remove widget padding if one container is set
  • Minify mobile.css
  • Improve logic dealing with widget padding when one container is set
  • Add generatepress class to <body>

The post GP 1.3.22 & 1.3.23 appeared first on GeneratePress.

GP Premium 1.2.78

$
0
0

GP Premium 1.2.78 has been released with a lot of fixes and improvements.

If you have a caching plugin enabled, please flush your cache once you update.

Here's a complete list of what changed:

(12/21/2015) - 1.2.78

  • Backgrounds: Fix bug where navigation background image was showing in sub-navigation as well
  • Backgrounds: Optimize CSS
  • Colors: Optimize CSS
  • Secondary Nav: Remove unnecessary CSS from <head>
  • Spacing: Optimize CSS
  • Typography: Optimize CSS
  • Menu Plus: Fix slideout menu glitch when menu item has # as URL
  • Menu Plus: Improve sticky functionality and display
  • Menu Plus: Update sticky menu width when navigation is container and layout is updated
  • Menu Plus: Improve slideout menu transition
  • Blog: Add filter to add post types for the masonry width metabox: generate_blog_masonry_metabox
  • Blog: Add option to set posts as equal height columns
  • Blog: Update masonry when layout is changed in Customizer
  • Blog: Add safeguard in case people type Auto in post image sizes
  • Sections: Add support for password protected pages and Sections
  • Spacing: Remove widget padding if one container is set
  • Spacing: Right and left content padding now affects content area when One Container is set
  • Page Header: Fix proportional resizing
  • Updater functionality improved

The post GP Premium 1.2.78 appeared first on GeneratePress.

GP Premium 1.2.79

$
0
0

This is a very small update which fixes a bug in Generate Spacing.

The bug was if you had Spacing activated, Colors deactivated and switched away from the GP theme, you would get an error.

This update makes sure that won't happen.

(12/22/2015) - 1.2.79

  • Spacing: Add function_exists in case GP theme isn't activated

The post GP Premium 1.2.79 appeared first on GeneratePress.

GP 1.3.24

$
0
0

GeneratePress 1.3.24 is a big update with some awesome new features.

To download the update, click here.

To see which files were changed, click here.

Dropdown Type

The most notable is the ability to change the navigation dropdown type.

Up until now, the only way to activate a navigation dropdown was to hover over the parent item.

You now have two other options found in "Customize > Layout": Click - Menu Item and Click - Arrow

"Click - Menu Item" makes it so you can click the entire menu item to activate and deactivate the dropdown menu.

"Click - Arrow" makes it so you have to click the arrow to activate and deactivate the dropdown menu.

Of course, "Hover" is still default.

New Dropdown Arrows

Our old dropdown arrows have been replaced with the angle-down Font Awesome icon.

If you'd like the old ones back, or want to switch to a different Font Awesome icon, just ask me in the forum and I'll give you some CSS.

Back to Top Button

Another new feature in 1.3.24 is the back to top button found in "Customize > Layout" - it's a simple feature, but one that a lot of people have expressed interest in.

Container Width and Typography Controls

You can now specify a pixel value for your container width and typography controls instead of being stuck with using the slider. This helps if you have a specific value and don't want to use the slider to find it, or if you want to choose something outside the confines of the slider.

Changelog

Here's a complete list of what's changed.

  • Add fixed width class to menu fallback search icon
  • Add subtle fade back to slide down drop menu
  • Clean up some CSS in style.css
  • Add container width input field in addition to slider for more control
  • New Feature: Click menu item to open dropdown
  • New Feature: Click arrow to open dropdown
  • Change navigation dropdown arrow to Font Awesome icon
  • Change "Header Layout" option name to "Header Width"
  • Change "Navigation Layout" option name to "Navigation Width"
  • Change "Footer Layout" option name to "Footer Width"
  • Improve schema.org handling
  • New Feature: Add Back to Top button option
  • New filter: generate_back_to_top_icon
  • New filter: generate_back_to_top_scroll_speed
  • New filter: generate_back_to_top_start_scroll
  • Move archive title to template-tags.php and attach it to archive.php with hook
  • Add ability to use your keyboard tab key to move through navigation items/dropdown menus
  • Make WooCommerce responsive
  • Reduce copyright text font size to 15px

The post GP 1.3.24 appeared first on GeneratePress.


GP 1.3.27

$
0
0

Update: GP 1.3.27 has been uploaded with some more fixes.

  • Fix issue with sub-menu item padding
  • Fix arrow alignment on mobile menu

GeneratePress 1.3.25 has just been released with some bug fixes.

The main one was a bug in IE11 dealing with the dropdown arrows - this has now been fixed.

The other was an undefined 404 when clicking on the dropdown arrow if that menu item didn't have a URL.

You can download the latest version here.

See what files changed here.

Full changelog:

  • Fix undefined 404 page is no menu item URL exists and you click on dropdown arrow
  • Fix dropdown arrow in IE
  • Czech translation updated

The post GP 1.3.27 appeared first on GeneratePress.

GP 1.3.28

$
0
0

GeneratePress 1.3.28 has just been released.

One major change is that GeneratePress no longer uses the bundled .pot files for translation. If you're using GP in a different language, please update your language on WordPress.org here.

Here's a full list of what changed:

  • New hook: generate_inside_comments
  • New hook: generate_below_comments_title
  • Fix javascript error in IE8
  • Adjust menu toggle icon line height
  • Remove query strings from Font Awesome calls
  • Reduce space between dropdown arrow and menu item
  • Improve touch functionality on hover dropdown menus
  • Center alignright and alignleft images on mobile
  • Remove WP default hide site title/tagline control from Customizer
  • Remove woocommerce.php file as integration is handled by hooks
  • Open sub-menu in mobile menu on item click if URL is # or empty
  • Prevent elements within fieldets from overflowing in WebKit
  • New function: generate_construct_site_title
  • New function: generate_construct_logo
  • New function: generate_construct_header_widget
  • Clean up generate_header_items function
  • Float dropdown arrow to the right when navigation is in a sidebar
  • Remove language files to allow WordPress.org language packs to take effect: https://translate.wordpress.org/projects/wp-themes/generatepress

The post GP 1.3.28 appeared first on GeneratePress.

GP Premium 1.2.81

$
0
0

This is a major update to GP Premium with tons of new features and bug fixes.

Some noteable features in this update is the complete rewrite of the Page Header add-on, including new options like video backgrounds, merging the page header and site header, and the ability to change the site logo/header on a per page basis.

Page Header also moved all options from "Appearance > Blog Page Header" to "Customize > Blog Page Header".

Another awesome new feature in this update is the Mobile Header feature in Menu Plus. This allows you to set a minimal mobile header to your website to save space and look more stylish on mobile devices.

Here's the full changelog of what changed:

Quick bug fix dealing with a javascript error in Safari due to the new Page Header options.

= 1.2.81 =

  • Page Header: Fix javascript bug in Safari

= 1.2.80 =

  • Page Header: Fix iOS bug with parallax background image
  • Page Header: Move "Appearance > Blog Page Header" to "Customize > Page Header > Blog"
  • Page Header: Adjust proportional resizing
  • Page Header: Add generate_page_header_featured_image filter to force usage of the featured image over the custom field
  • Page Header: Add option to merge site header and page header with a transparent navigation
  • Page Header: Add option to include a video background in your page header
  • Page Header: Add option to replace your logo/header on individual pages/posts
  • Page Header: Improve metabox saving to prevent empty values in the database
  • Page Header: Minify parallax JS
  • Typography: Add input fields to font sizes to manually adjust them without slider
  • Typography: Adjust separators in Customizer
  • Typography: Add mobile font sizes for the main title, H1 and H2
  • Menu Plus: Adjust navigation width with container width in Customizer
  • Menu Plus: Fix sticky navigation spacer width
  • Menu Plus: Navigation float right aligns sticky menu items to the right
  • Menu Plus: Add new dropdown arrows to slideout menu
  • Menu Plus: New Feature: Mobile Header
  • Menu Plus: Separate options into panels
  • Menu Plus: Close slideout menu with escape key
  • Secondary Nav: Fix separator spacing below secondary navigation in the widget area
  • Secondary Nav: Add support for navigation click dropdown
  • Secondary Nav: Minify CSS and JS
  • Blog: Fix category/author page header when columns are set
  • Blog: Remove generate_blog_activate_masonry function and bundle it in with generate_blog_get_masonry function
  • Blog: Turn off masonry if we're on WooCommerce search results
  • Blog: Turn off columns if we're on WooCommerce search results
  • Blog: Minify CSS and JS
  • Colors: Add focus styles to navigation
  • Backgrounds: Add separators in Customizer
  • Backgrounds: Fix doubling up background images in the content when One Container is set
  • Spacing: Add separators in Customizer
  • Sections: Improve editor handling when visual editor is turned off
  • Sections: Use excerpt metabox on archives/blog if Sections is in use in single post
  • Sections: Fix bug where archives/blog loses layout if most recent post is using Sections
  • Sections: Minify CSS and JS
  • Disable Elements: Improve metabox saving to prevent empty values in the database
  • Italian translations added for all add-ons - thank you Roberto!
  • German translations updated for all add-ons - thank you Daniel!

The post GP Premium 1.2.81 appeared first on GeneratePress.

GP 1.3.29

$
0
0

GeneratePress 1.3.29 has been released with these changes:

  • Adjust metaboxes to not save empty postmeta
  • Only make container full width with Beaver Builder when no sidebars is set
  • Remove decrease in main title size on mobile to make way for new mobile typography options
  • Minify style.css
  • New hook: generate_before_entry_title
  • New hook: generate_after_entry_title
  • Move post meta to a function so it can be hooked into before the title to after the title
  • Change comments icon to: http://fontawesome.io/icon/comments/
  • Make WooCommerce product full width on mobile
  • Fix spacing to the right of the dropdown menu toggle
  • Minify HTML5 Shiv
  • Adjust child comment spacing on mobile
  • Update to Font Awesome 4.6.1
  • Remove edit link at the bottom of the page when logged in
  • Switch the site logo option to use the new custom logo feature in WordPress 4.5
  • Change metabox capability to edit_theme_options from activate_plugins
  • Add new filter to strip Font Awesome down to the essentials (+1 performance): generate_fontawesome_essentials

The post GP 1.3.29 appeared first on GeneratePress.

GP Premium 1.2.82

$
0
0

GP Premium 1.2.82 has been released with the following changes:

  • Blog: Improve masonry width logic
  • Blog: Improve proportional image resizing
  • Blog: Switch to a better image resizer
  • Spacing: Add spacing for dropdown menu toggle and mobile items in the navigation
  • Colors: Fix text-domain for "Colors" panel to allow it to be translated
  • Colors: Add focus style to buttons
  • Sections: Replace the_content filter with Sections specific filter to avoid plugins adding icons and other content into each section
  • Page Header: Add background image as the video placeholder if it can't be loaded (mobile devices etc..)
  • Page Header: Switch to a better image resizer
  • Typography: Adjust label size in Typography sections in Customizer for longer translations
  • Polish translations added - thanks, Paul!

The post GP Premium 1.2.82 appeared first on GeneratePress.

GP Premium 1.2.83

$
0
0

This is a small release dealing with a couple small bugs in the Blog add-on.

This release also adds a button into "Customize > Blog > Post Images" which allows you to create the post image sizes you set.

Before, images were created if you slowly added the numbers for the sizes. Now, no new images will be created until you've typed in the numbers and click the "Apply image sizes" button.

  • Blog: Fix bug where full width post wasn't displaying in columns
  • Blog: Add a check for the blog content customizer control in the theme to prevent warning
  • Blog: Add button to apply post image sizes in the Customizer to prevent unnecessary images being created

The post GP Premium 1.2.83 appeared first on GeneratePress.

GP Premium 1.2.84

$
0
0

GP Premium 1.2.84 has been released with a few bug fixes.

Here's what changed:

  • Blog: Fix bug where two columns appear briefly at 768px width
  • Blog: Change image resizer to more lightweight option
  • Blog: Fix uneven spacing at the bottom of blog posts in columns
  • Sections: Apply the_content filter once to the whole sections page to avoid multiple sharing icons being added by plugins etc..
  • Page Header: Change image resizer to more lightweight option
  • Page Header: Add apply image sizes button to the Blog Page Header crop options
  • Translations: Czech translations updated - thanks Ondrej!
  • Translations: Polish translations updated - thanks Krzysztof!

The post GP Premium 1.2.84 appeared first on GeneratePress.


GP Premium 1.2.85

$
0
0

This is a quick update that fixes image cropping when Jetpack's Photon module is in use.

  • Blog: Fix cropping when Photon is being used
  • Page Header: Fix cropping when Photon is being used

The post GP Premium 1.2.85 appeared first on GeneratePress.

GP 1.3.30

$
0
0

GeneratePress 1.3.30 has been released with the following changes:

  • Add before and entry title hooks to content-link.php
  • Remove check for post post type in generate_posted_on()
  • Remove check for post post type in generate_entry_meta()
  • Adjust label size in Typography sections in Customizer for longer translations
  • Add comment-logout class to the comment log out link
  • Add a filter to set the responsive image size to the width of the container
  • Make sure WooCommerce products are full width on mobile
  • Fix bug where "0" value for footer widgets wasn't working
  • Update Font Awesome to 4.6.3
  • Adjust some Beaver Builder styling
  • Add the footer entry meta into a function which we can hook into different actions
  • When dropdown click - arrow is set, clicking entire menu item if URL is # will drop down submenu

The post GP 1.3.30 appeared first on GeneratePress.

GP 1.3.31

$
0
0

GP 1.3.31 has been released with a bug fix that was causing images to enlarge in your content when Photon is activated.

  • Fix issue where images are enlarging in content if Photon is activated

The post GP 1.3.31 appeared first on GeneratePress.

GP Premium 1.2.86

$
0
0

GP Premium 1.2.86 has been released with a few bug fixes.

Users who were using the image resizer in Blog and Page Header were running into issues where the image wouldn't show up if they set a size larger than the original image.

The resizer will now upscale the image if necessary instead of not showing it.

Sections also had a bug where images were being blown up to 100% width. Users who are affected by this bug might need to re-add their images to the sections. I'm sorry for the inconvenience!

  • Blog: Allow resizer to upscale images
  • Page Header: Allow resizer to upscale images
  • Sections: Fix issue with images enlarging in Sections

The post GP Premium 1.2.86 appeared first on GeneratePress.

Optimizing GeneratePress

$
0
0

These days, the speed of your website is crucial to your success.

Search engines like Google rank you much higher if your site is faster and more accessible than your competitors.

Knowing that, it's a no-brainer that you should choose a WordPress theme for your site which lives by those principles - fast and accessible.

As I continue to develop GeneratePress, speed and accessibility are two major factors behind almost everything that I do. From minifying scripts and styles, to removing unnecessary bulk, making GeneratePress faster and perform better is one of my highest priorities.

That being said, there's a handful of things we can do that will help you increase optimization even more. This article will list out some awesome tips for making GeneratePress one of the fastest WordPress themes available.

Removing Font Awesome

Font Awesome is, well, awesome. However, there's a LOT of icons, and if you're not using them, then there's no point in loading all of them.

GeneratePress requires some of these icons for various elements throughout the theme, so we can't full out remove them.

That's why GeneratePress has this nifty little filter to strip the icons down to only the essentials.

add_filter( 'generate_fontawesome_essentials', 'generate_fontawesome_essentials' );
function generate_fontawesome_essentials()
{
    return true;
}

To show the difference made here, we can compare the size of the SVG file from Font Awesome (383kb) to the essentials SVG file (7kb).

You can add this filter using the instructions found in our Adding PHP article.


Installing Autoptimize

Reducing the amount of CSS and JS files being loaded on each page load will make a huge difference to your page speed.

Another perk with Autoptimize is it will bundle the CSS generated by your options in the Customizer into an external file, allowing your browser to cache it.

I suggest selecting these options:

Recommended Autoptimize settings
Recommended Autoptimize CSS settings
Recommended Autoptimize HTML settings
Recommended Autoptimize HTML settings
Recommended Autoptimize JS settings
Recommended Autoptimize JS settings

Note: You'll have to check the "Advanced Options" button to show these extra options.


Removing Query Strings

While this won't make a noticeable difference in your page speed, it will increase your ranking in speed tests.

add_filter( 'style_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
function generate_remove_cssjs_ver( $src ) {
	if( strpos( $src, '?ver=' ) )
		$src = remove_query_arg( 'ver', $src );

	return $src;
}

Adding PHP

There's also a plugin which does this for you: Query Strings Remover


Removing Emojis

If you don't use emojis on your site, then there's really no point in loading the scripts for them.

This code will remove the WordPress emojis script from your site:

add_action( 'init', 'generate_disable_wp_emojicons' );
function generate_disable_wp_emojicons()
{
	// all actions related to emojis
	remove_action( 'admin_print_styles', 'print_emoji_styles' );
	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
	remove_action( 'wp_print_styles', 'print_emoji_styles' );
	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
}

Adding PHP

There's also a plugin that can do this for you: Disable Emojis


Async Javascript

This is a simple little plugin which will add some tags to your javascript files, increasing your page speed and giving you better speed scores.

Async Javascript works hand-in-hand with Autoptimize, which is a bonus.

These are the settings I like:

Recommended Async Javascript settings
Recommended Async Javascript settings

Our results

Now that all of the above is done, we can check our speed scores.

Here's a test site for us to work with: GeneratePress Speed Test

It's important to note that this test site is incredibly bare.

Of course, as you add more plugins and content, these scores will change.

This test is useful, as it's super important to build your WordPress site on a fast foundation before you start adding your own content and plugins.

Pingdom

First, we'll look at our results using Pingdom.

Pingdom results for GeneratePress
Pingdom results for GeneratePress

Pretty impressive! Our speed test site is only using the methods explained above, nothing else.

GT Metrix

Now we'll look at our results using GT Metrix.

GT Metrix results for GeneratePress
GT Metrix results for GeneratePress

Final thoughts

Based on these scores, I'm very comfortable using GeneratePress as a foundation to build websites for my clients.

Of course, optimization and speed is something I'm constantly working on and looking to improve. There's always more to do!

If you have any thoughts please feel free to post a comment!

The post Optimizing GeneratePress appeared first on GeneratePress.

Viewing all 201 articles
Browse latest View live