Title: Florian's Replies | WordPress.org

---

# Florian

  [  ](https://wordpress.org/support/users/floll/)

 *   [Profile](https://wordpress.org/support/users/floll/)
 *   [Topics Started](https://wordpress.org/support/users/floll/topics/)
 *   [Replies Created](https://wordpress.org/support/users/floll/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/floll/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/floll/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/floll/engagements/)
 *   [Favorites](https://wordpress.org/support/users/floll/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Remove sizes=”auto, …” in WordPress 6.7](https://wordpress.org/support/topic/remove-sizesauto-in-wordpress-6-7/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/remove-sizesauto-in-wordpress-6-7/#post-18200513)
 * There also seems to be a filter, maybe try that first!
 * Drop this in your theme to disable `auto` in the `sizes` attribute:
 * `add_filter('wp_img_tag_add_auto_sizes', '__return_false');`
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Remove sizes=”auto, …” in WordPress 6.7](https://wordpress.org/support/topic/remove-sizesauto-in-wordpress-6-7/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/remove-sizesauto-in-wordpress-6-7/#post-18192511)
 * If you want to keep lazy loading enabled and remove only the `auto` part do this:
 *     ```wp-block-code
       add_filter(        'wp_content_img_tag',        static function ( $image ) {                return str_replace( ' sizes="auto, ', ' sizes="', $image );        });add_filter(        'wp_get_attachment_image_attributes',        static function ( $attr ) {                if ( isset( $attr['sizes'] ) ) {                        $attr['sizes'] = preg_replace( '/^auto, /', '', $attr['sizes'] );                }                return $attr;        });
       ```
   
 * Nabbed from [a trac discussion](https://core.trac.wordpress.org/ticket/61847#comment:23).
    -  This reply was modified 1 year, 10 months ago by [Florian](https://wordpress.org/support/users/floll/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Reloading Issue](https://wordpress.org/support/topic/safari-back-button-reloading-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/safari-back-button-reloading-issue/#post-16433928)
 * Yes, updating the plugin solved it for me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Redirect Issue](https://wordpress.org/support/topic/safari-back-button-redirect-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/safari-back-button-redirect-issue/#post-16296243)
 * Yes, I can see the issue on that site when I view it in Safari. I can’t tell 
   you what causes it, that would take too long to figure out as there’s a TON of
   javascript on your page.
 * You say it goes away when you deactivate GTM4WP. That could be related to scripts
   in the plugin, but it could also be related to stuff you do in your GTM container.
 * A pain in the butt to debug, you just have to step through all of the stuff that
   gets loaded on your page until you find the culprit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Redirect Issue](https://wordpress.org/support/topic/safari-back-button-redirect-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/safari-back-button-redirect-issue/#post-16296134)
 * I cannot reproduce this behavior.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Reloading Issue](https://wordpress.org/support/topic/safari-back-button-reloading-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/safari-back-button-reloading-issue/#post-16295314)
 * Both of these issues seem to be unrelated to the topic of this thread: “Safari
   Back Button Reloading Issue”. I would suggest you create new topics for your 
   new issues.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Reloading Issue](https://wordpress.org/support/topic/safari-back-button-reloading-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/safari-back-button-reloading-issue/#post-16291776)
 * The code causing this has been removed from the GTM4WP plugin in version 1.16.2.
 * – check if you have updated the plugin
    – check if other plugins / template code
   might be causing this – check for caching
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Reloading Issue](https://wordpress.org/support/topic/safari-back-button-reloading-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/safari-back-button-reloading-issue/#post-16291527)
 * [@insidewebnl](https://wordpress.org/support/users/insidewebnl/) fixed in the
   latest release: [https://nl.wordpress.org/plugins/duracelltomi-google-tag-manager/#developers:~:text=Fixed%3A%20removed%20extra%20code%20added%20in%201.14%20that%20reloads%20pages%20in%20Safari%20in%20WooCommerce%20integration.%20It%20broke%20some%20sites](https://nl.wordpress.org/plugins/duracelltomi-google-tag-manager/#developers:~:text=Fixed%3A%20removed%20extra%20code%20added%20in%201.14%20that%20reloads%20pages%20in%20Safari%20in%20WooCommerce%20integration.%20It%20broke%20some%20sites).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Safari Back Button Reloading Issue](https://wordpress.org/support/topic/safari-back-button-reloading-issue/)
 *  [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [4 years ago](https://wordpress.org/support/topic/safari-back-button-reloading-issue/#post-16030378)
 * This behavior is expected, GTM4WP injects this code on every page:
 *     ```
       <script>
           const gtm4wp_is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
           if (gtm4wp_is_safari) {
               window.addEventListener('pageshow', function(event) {
                   if (event.persisted) {
                       // if Safari loads the page from cache usually by navigating with the back button
                       // it creates issues with product list click tracking
                       // therefore GTM4WP forces the page reload in this browser
                       window.location.reload();
                   }
               });
           }
       </script>
       ```
   
 * I am searching for a way to deactivate this behavior.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Metorik - Reports & Email Automation for WooCommerce] Load tippy CSS via wp_enqueue_style](https://wordpress.org/support/topic/load-tippy-css-via-wp_enqueue_style/)
 *  Thread Starter [Florian](https://wordpress.org/support/users/floll/)
 * (@floll)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/load-tippy-css-via-wp_enqueue_style/#post-15952762)
 * Thanks, I’ll try via the app! Might take a while.

Viewing 10 replies - 1 through 10 (of 10 total)