Nick
Forum Replies Created
-
Forum: Plugins
In reply to: [Rich Showcase for Google Reviews] Hide Profile ImagesGoogle 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
In reply to: [Rich Showcase for Google Reviews] Hide Profile ImagesThanks 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.
Thanks for the fix @dgwyer, appears to be working fine for me. Much appreciated.
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.
For anyone debugging, the error I get is:
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.
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 to roll back a version and all is working fine now. Or switch to the advanced view on the ww.wp.xz.cn plugin page and you will see at the bottom you can download a specific version.
Forum: Themes and Templates
In reply to: [Astra] Duplicate IDSo resetting the installation seems to have got rid of the issue. Will mark as resolved.
- This reply was modified 2 years, 5 months ago by Nick.
Forum: Themes and Templates
In reply to: [Astra] Duplicate IDThe 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, 5 months ago by Nick.
Forum: Developing with WordPress
In reply to: How to add CSS class nav menu (Block Theme)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.
// 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
In reply to: How to add CSS class nav menu (Block Theme)@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, 5 months ago by Nick.
Forum: Plugins
In reply to: [Stackable - Page Builder Gutenberg Blocks] PHP Fatal Error issue?@bernicechua Thank you, I will test it out later today.
Forum: Plugins
In reply to: [Stackable - Page Builder Gutenberg Blocks] PHP Fatal Error issue?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
In reply to: [Spectra One] Error with icon for disabling page titleHaving the same issue, is there a fix?
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] parse_ini_file issueThank you, very much appreciated.
Excellent, works perfectly. Just in case others are also looking, to anonymise the IP instead of not recording at all:
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');