kmbee
Forum Replies Created
-
Forum: Plugins
In reply to: [Disable Gutenberg] Disable Gutenberg via Code + PluginHi Jeff, I see that there is updated code to completely disable Gutenberg in functions.php. I found the code at https://digwp.com/2018/04/how-to-disable-gutenberg/
I have now included the new code, but also left the old code in place. Do you see any potential problems with this? The following is how I have it in functions.php
// Disable Gutenberg – Newer
add_filter(‘use_block_editor_for_post’, ‘__return_false’);// Disable Gutenberg – Older
add_filter(‘gutenberg_can_edit_post_type’, ‘__return_false’);I also have the Disable Gutenberg plugin installed. Will the code in functions.php interfere with the plugin at all?
Thank you again Jeff
Forum: Plugins
In reply to: [Disable Gutenberg] Disable Gutenberg via Code + PluginHehe no worries Jeff, thanks for the confirmation!
Forum: Plugins
In reply to: [Disable Gutenberg] Disable Gutenberg via Code + PluginOh okay, I found that code on an article you posted on https://digwp.com/2018/04/how-to-disable-gutenberg/.
“To completely disable Gutenberg (aka G7G), add the following line via functions.php or custom plugin (or even a must-use plugin!):
add_filter(‘gutenberg_can_edit_post_type’, ‘__return_false’);
That’s the recommended way of disabling Gutenberg. It simply returns a value of false to Gutenberg’s gutenberg_can_edit_post_type filter, which then disables G7G for all post types (i.e., completely). To disable only on specific post types, check out the next technique.”
I will test. Thank you.
Thank you for the response Jonathan. Yes those api warnings appeared after the update, but does it mean something needs to be fixed on my end?
With regards to my original posting, do you know why the filtering is no longer working after I updated from version 2.1.0 to 2.3.3? The following is the warning I received after the update.
Warning: Missing argument 2 for modify_show_count() in /home1/user/public_html/sub-domain/wp-content/themes/child-theme/functions.php on line 607
In functions.php, line 607 is;
// Dropdown Show Count
function modify_show_count( $bool, $current_post_type ) {
$bool = true;
return $bool;Do you see a problem with the above code?
The filtering urls are also not working properly. After choosing a Collection Name from the selection menu, the url use to show the Collection Name Slug, now it is just showing the Collection ID#.
Thank you
Update: I just updated to 2.3.7 and now also see the following new errors.
Warning: array_filter() expects at most 2 parameters, 3 given in /home1/kmizone/public_html/euros/wp-content/plugins/beautiful-taxonomy-filters/includes/api.php on line 27
Warning: array_filter() expects at most 2 parameters, 3 given in /home1/kmizone/public_html/euros/wp-content/plugins/beautiful-taxonomy-filters/includes/api.php on line 27
Forum: Plugins
In reply to: [Max Mega Menu] Flyout Full Width 2 Column Drop MenuThank you for your reply Tom. The image was just a mock up of what I would like, and not an actual screenshot.
Would it work using a Flyout menu with the background color extended full width?
I see in the FAQ, that sub menu items can be distributed over multiple columns.
https://www.megamenu.com/documentation/how-to-distribute-sub-menu-items-over-multiple-columns/
So can I use a Flyout with multiple columns and then extend the background color to be full screen width?
Thanks again.
Forum: Plugins
In reply to: [Content Blocks (Custom Post Widget)] Shortcode Not Working in Text WidgetThank you for the response Johan, I have resolved the issue by enabling shortcodes in functions.php. Cheers.
Forum: Plugins
In reply to: [WP Store Locator] Editing Search ResultsWhoops, here is the code without the link html
The recommended code is;
href=”tel://1-555-555-5555″>+1 (555) 555-5555The end result is;
href=”\tel://1-555-555-5555\”>+1 (555) 555-5555Forum: Plugins
In reply to: [WP Store Locator] Editing Search ResultsI have added the code to add the phone number after the address in the search results. But when I use the recommended code to make the phone number clickable, WordPress is adding extra backslashes. Can you please let me know how to resolve this.
The recommended code is;
+1 (555) 555-5555The end result is;
+1 (555) 555-5555Thank you.
Forum: Fixing WordPress
In reply to: Auto Sizes Not Created for Gif FilesHello, just re-posting this topic. Has anyone encountered a similar issue? Thank you.