Large logo before scroll on mobile

This code does the following on mobile devices when using mobile header: sets logo to be larger than the container before scroll adds text after logo after scroll resets width of ‘a’ element to fix Safari bug This technique was implemented on

iPhone Notch

Use these code snippets to add iPhone X notch support to GeneratePress.


Once in a while, GeneratePress Hooks will throw this error when trying to execute PHP in an element: This is usually caused by iThemes Security disallowing the file editor. Disable the setting here:Security > Settings > WordPress Tweaks > File Editor

Change image sizes using filter

In a typical GeneratePress setup, the image sizes are set in the customizer and apply to all “post” type posts. Using conditional logic, this filter sets the image sizes for other areas of the site, such as custom post type archives, taxonomies, etc.