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 mutthutt.ca
ICON TYPE: SVG Icon type: Font
Add navigation buttons in 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.