Title: Nick's Replies | WordPress.org

---

# Nick

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/nickbits/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/nickbits/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/nickbits/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rich Showcase for Google Reviews] Hide Profile Images](https://wordpress.org/support/topic/hide-profile-images/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hide-profile-images/#post-18244251)
 * Google may well ignore them but that’s not the point, it comes back to privacy
   and not having it at all. If the option is there in the paid version not a problem,
   will have to look at that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rich Showcase for Google Reviews] Hide Profile Images](https://wordpress.org/support/topic/hide-profile-images/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hide-profile-images/#post-18241955)
 * Thanks for the reply. Unfortunately CSS won’t be good enough as it leaves the
   data in the rendered HTML. It would be nice to have that option at some point
   in the settings or a way to extend/override the render function in the View class.
 * Anyway, thanks for the clarification, appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Sitemap - Create a Responsive HTML Sitemap] Editor has encountered unexpected error](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/)
 *  [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/#post-17436461)
 * Thanks for the fix [@dgwyer](https://wordpress.org/support/users/dgwyer/), appears
   to be working fine for me. Much appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Sitemap - Create a Responsive HTML Sitemap] Editor has encountered unexpected error](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/)
 *  [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/#post-17436021)
 * I have done a bit more digging, as per my previous comment, the issue appears
   to be generated by the file:
 * simple-sitemap/lib/block_assets/js/blocks.editor.js
 * If I keep the 3.5.11 update/changes and replace just this file with the old version
   everything works.
 * Over to [@dgwyer](https://wordpress.org/support/users/dgwyer/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Sitemap - Create a Responsive HTML Sitemap] Editor has encountered unexpected error](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/)
 *  [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/#post-17434460)
 * For anyone debugging, the error I get is:
 *     ```wp-block-code
       TypeError: this.activateMode is not a function
           at https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:59604
           at kt (https://xxxxxxxxxxx.xxx/wp-content/plugins/simple-sitemap/lib/block_assets/js/blocks.editor.js?ver=1708276514:2:5765)
           at Function.ga (https://xxxxxxxxxxx.xxx/wp-content/plugins/simple-sitemap/lib/block_assets/js/blocks.editor.js?ver=1708276514:2:40572)
           at n._createModes (https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:59564)
           at n.initialize (https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:58973)
           at n.initialize (https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:79857)
           at n.initialize (https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:73432)
           at h.View (https://xxxxxxxxxxx.xxx/wp-includes/js/backbone.min.js?ver=1.5.0:2:14872)
           at n.constructor (https://xxxxxxxxxxx.xxx/wp-includes/js/wp-backbone.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:2602)
           at n.constructor (https://xxxxxxxxxxx.xxx/wp-includes/js/media-views.min.js?ver=fb47caae6d4ea22b4b7dafad56ff8cb0:2:106817)
       ```
   
 * It only seems to occur on posts with a featured image, or at least thats all 
   that seems to happen on my test setup. Or create a new post and editor loads 
   fine, click to add a featured image and it crashes. Disable this plugin, or go
   back to the previous version and all is fine. Using WordPress 6.4.3, and plugin
   version 3.5.11 with PHP 8.1.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Sitemap - Create a Responsive HTML Sitemap] Editor has encountered unexpected error](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/)
 *  [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/editor-has-encountered-unexpected-error-2/#post-17434152)
 * I have the same issue only it doesn’t seem to affect all post types. I have two
   CPT and one I can edit with no issue, another I cannot. Just rollback a version
   until this issue if fixed. I used [WP Rollback – Rollback Plugins and Themes](https://wordpress.org/plugins/wp-rollback/)
   to roll back a version and all is working fine now. Or switch to the advanced
   view on the [WordPress.org plugin page](https://wordpress.org/plugins/simple-sitemap/advanced/)
   and you will see at the bottom you can download a specific version.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Duplicate ID](https://wordpress.org/support/topic/duplicate-id-7/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/duplicate-id-7/#post-17280656)
 * So resetting the installation seems to have got rid of the issue. Will mark as
   resolved.
    -  This reply was modified 2 years, 7 months ago by [Nick](https://wordpress.org/support/users/nickbits/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Duplicate ID](https://wordpress.org/support/topic/duplicate-id-7/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/duplicate-id-7/#post-17280587)
 * The issue seemed to have disappeared but am now getting it again. The other thread
   I linked to previously mentioned using “Off Canvas”, is there a tutorial/guide
   to setting that? In mean time will reset my test set-up just incase I have messed
   something up.
    -  This reply was modified 2 years, 7 months ago by [Nick](https://wordpress.org/support/users/nickbits/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to add CSS class nav menu (Block Theme)](https://wordpress.org/support/topic/how-to-add-css-class-nav-menu-block-theme/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-add-css-class-nav-menu-block-theme/#post-17261397)
 * Taken a lot of reading and experimenting for what seems like a simple solution.
   This may not be the best way to do it but it works.
 *     ```wp-block-code
       // We are looking to add a CSS class to a menu link.
       function myfunction( $block ) {
   
         // Skip if not a menu link
         if ( 'core/navigation-link' !== $block['blockName'] )   {
           return $block;
         }
   
         // Skip if no attributes, no label or the label isn't matching the menu item.
         if (!$block['attrs'] || !$block['attrs']['label'] || $block['attrs']['label'] !== 'replace_with_your_menu_title'){
           return $block;
         }
         // Add a class
         $block['attrs']['className'] = ' add_your_class_here';
         return $block;
       }
   
       add_filter( 'render_block_data', 'myfunction');
       ```
   
 * So this looks for menu links, checks the label for it matches what you are looking
   for and then adds in a class. It seems to work, I am still testing it out though.
   Please if you have a better way to do it, do share.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to add CSS class nav menu (Block Theme)](https://wordpress.org/support/topic/how-to-add-css-class-nav-menu-block-theme/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-add-css-class-nav-menu-block-theme/#post-17254283)
 * [@addweb-solution-pvt-ltd](https://wordpress.org/support/users/addweb-solution-pvt-ltd/)
   Thank you for that. Unfortunately that is for classic themes, not block themes,
   unless I am missing something.
 * For example if I have Astra (classic theme) enabled ‘**nav_menu_css_class**‘ 
   is fired and works as normal. But if I switch to a block theme, for example I
   have tried Spectra One and Twenty Twenty Four, the hook doesn’t fire.
 * That hook is one of the methods I have used several times before and have already
   tried (sorry, I should have been more specific on what I had tried).
 * Thus I assume there is a different way to do this with block themes.
    -  This reply was modified 2 years, 7 months ago by [Nick](https://wordpress.org/support/users/nickbits/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stackable - Page Builder Gutenberg Blocks] PHP Fatal Error issue?](https://wordpress.org/support/topic/php-fatal-error-issue/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-issue/#post-17187839)
 * [@bernicechua](https://wordpress.org/support/users/bernicechua/) Thank you, I
   will test it out later today.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stackable - Page Builder Gutenberg Blocks] PHP Fatal Error issue?](https://wordpress.org/support/topic/php-fatal-error-issue/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-issue/#post-17181473)
 * Further testing, version 3.12.3 of the plugin is fine. So something has changed
   between 3.12.3 and 3.12.4.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Spectra One] Error with icon for disabling page title](https://wordpress.org/support/topic/error-with-icon-for-disabling-page-title/)
 *  [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-with-icon-for-disabling-page-title/#post-17150819)
 * Having the same issue, is there a fix?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] parse_ini_file issue](https://wordpress.org/support/topic/parse_ini_file-issue/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/parse_ini_file-issue/#post-17118346)
 * Hi [@hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/),
 * Thank you, very much appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] Audit log retention and IP](https://wordpress.org/support/topic/audit-log-retention-and-ip/)
 *  Thread Starter [Nick](https://wordpress.org/support/users/nickbits/)
 * (@nickbits)
 * [3 years ago](https://wordpress.org/support/topic/audit-log-retention-and-ip/#post-16895442)
 * Excellent, works perfectly. Just in case others are also looking, to anonymise
   the IP instead of not recording at all:
 *     ```wp-block-code
       function aios_audit_log_event_user_ip($ip) {
           return wp_privacy_anonymize_ip( $ip );
       }
   
       add_filter('aios_audit_log_event_user_ip',  aios_audit_log_event_user_ip');
       ```
   

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/nickbits/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/nickbits/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/nickbits/replies/page/2/?output_format=md)