Christina
Forum Replies Created
-
Oh well, I guess I’m not explaining this correctly. How can I only load my css when there’s a popup? Is there an action hook that I can use, otherwise I don’t know where a client will add a popup so I’m loaded unnecessary CSS on the entire site.
Yes, but I only want to load my styles on pages that have popups, not for the entire site. I can’t tell what page has a pop up or not via php, but I see that your css only loads on those pages, so I’m asking where is the action hook to do this with the custom styles.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] “Archive page” with Gutenberg editorTo get around this, I made a private custom post type called Global Blocks. I create my custom “archive” then I get the blocks from that ID in a conditional for the CPT archive. I use a shortcode to do this, so in the conditional I just call that.
add_shortcode( 'global-block', 'global_blocks_shortcode' ); /** * Global Blocks Shortcode * [global-block id="1234"] */ function global_blocks_shortcode( $atts ) { $output = $class = ''; global $post; $atts = shortcode_atts( array( 'id' => '', ), $atts ); $id = $atts['id']; if ( get_post_status( $id ) ) // check if ID exists if( $id ) : /////////////////////// check if ID is on the shortcode $content = get_post( $id ); if ( has_blocks( $content->post_content ) ) : $blocks = parse_blocks( $content->post_content ); foreach( $blocks as $block ) : $output .= do_shortcode( render_block( $block ) ); endforeach; endif; $status = get_post_status( $id ); //don't output draft mode if ( $status != 'publish' ) : $output = ''; endif; endif; //if $id; ///////////////// return $output; }
I did that and saved. All the tables are still there. This is confirmed by Flywheel tech support, the tables remain in spite of having that box UNchecked.
- This reply was modified 2 years, 2 months ago by Christina.
Forum: Plugins
In reply to: [WP Visitor Statistics (Real Time Traffic)] Flooded with PHP warningsNever got back to anyone.
A bunch of orange tables flash above the edit screen (gutenberg) and then disappear before I can take a screenshot or copy.
I rb to 2.0.5.
Thanks!
- This reply was modified 4 years, 3 months ago by Christina.
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] Error with ACF quick edit fields pluginThank you so much!
It doesn’t go missing now.
Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseOkay. Sorry about that.
Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseI might be confused, but this function
gutenberg_can_edit_post_type
I can only locate in the Gutenberg plugin and not in the WP Core. I just searched a fresh download of the directory to be sure. I find the same function inside WooCommerce but it’s a public function, but this site I’m working on doesn’t have Woo installed.public static function gutenberg_can_edit_post_type( $can_edit, $post_type ) { return 'product' === $post_type ? false : $can_edit; }
Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseThanks all. I noticed when I played around that I cannot selectively choose whether or not to use Gutenburg on various CPTS, I can just click the entire site checkbox and that works. Here’s some notes referring classic-editor.php file in this plugin.
if (!defined('ABSPATH')) exit; function disable_gutenberg_remove() { $gutenberg = function_exists('gutenberg_can_edit_post_type'); // I can only find this in the Gutenberg plugin $block_editor = has_action('enqueue_block_assets'); if (!$gutenberg && $block_editor === false) return; if ($block_editor) { //add_filter('use_block_editor_for_post_type', '__return_false', 100, 2); // this doesn't work add_filter( 'use_block_editor_for_post_type', '__return_false' ); //this works } // with WP 5.2.2 this doesn't work (I don't think it worked earlier, except with the plugin). if ($gutenberg) { add_filter('gutenberg_can_edit_post_type', '__return_false', 100, 2); disable_gutenberg_hooks(); } }
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] 2.0 has duplicate meta boxes, 1.8.3 does notIt works! Thank you so much.
Their plugin “supposedly” allows you to select which post types and roles you want to use Gutenberg with, it has never worked since I last tested when playing around. The thing only works if you just disable Gutenberg entirely.
I was just about to send a support request, I see you got there already.
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] 2.0 has duplicate meta boxes, 1.8.3 does notI replied but the links of screen shots forced it to be moderated. I’ll check back.
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] 2.0 has duplicate meta boxes, 1.8.3 does notThanks! It’s not a CPT, this is the blog post type. It doesn’t happen with CPTS, that is weird.
I installed 2.0.1 and it’s still there.
I disabled the plugin “Disable Gutenberg” (https://www.ads-software.com/plugins/disable-gutenberg/) and the duplicate second set of taxonomies (tags and cats) bug is gone, when Disable Gutenberg is active, the duplicate taxonomies in blog post types appears again. I disabled plugins and theme and set to 2019, still there.
I renabled Disable Gutenburg and looked in the Screen Options:
When 2.0.1 is installed this is what I get in the screen options. Double checkboxes with different, but similar names. One set doesn’t work.
https://christinacreativedesign.com/crap/rbft-2.0-screen-options.pngWhen 1.8.3 is installed this is the screen options choices, the duplicate checkboxes are not there.
https://christinacreativedesign.com/crap/rbft-1.8.3-screen-options.pngForum: Plugins
In reply to: [Autoptimize] Autoptimize/Generatepress custom CSS change of specificityYes, I can confirm, if the media type is the same then the load order is maintained. I don’t think it was like this before, but I could be wrong.