iPhone Notch
Use these code snippets to add iPhone X notch support to GeneratePress.
Use these code snippets to add iPhone X notch support to GeneratePress.
GeneratePress Vanilla WordPress
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
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.