Clayton Chase
Forum Replies Created
-
Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button StylePerfect! Thanks Tom
Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button Style@edge22 it seems like the only things that isn’t being inherited is the font-family. I tried this but it doesn’t seem to be working.
add_filter( 'generateblocks_defaults', function( $defaults ) { $color_settings = wp_parse_args( get_option( 'generate_settings', array() ), generate_get_color_defaults() ); $typography_settings = wp_parse_args( get_option( 'generate_settings', array() ), generate_get_default_fonts() ); $defaults['button']['backgroundColor'] = $color_settings['form_button_background_color']; $defaults['button']['backgroundColorHover'] = $color_settings['form_button_background_color_hover']; $defaults['button']['textColor'] = $color_settings['form_button_text_color']; $defaults['button']['textColorHover'] = $color_settings['form_button_text_color_hover']; $defaults['button']['paddingTop'] = '10'; $defaults['button']['paddingRight'] = '20'; $defaults['button']['paddingBottom'] = '10'; $defaults['button']['paddingLeft'] = '20'; $defaults['button']['fontFamily'] = $typography_settings['buttons_font_family']; $defaults['button']['fontSize'] = $typography_settings['buttons_font_size']; $defaults['button']['fontWeight'] = $typography_settings['buttons_font_weight']; $defaults['button']['textTransform'] = $typography_settings['buttons_font_transform']; return $defaults; } );
I added the
$defaults['button']['fontFamily'] = $typography_settings['buttons_font_family'];
line.Any thoughts?
Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button StyleWorks like a charm. Thank you Tom! Really enjoying GB!
Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button StyleThat would be great as well! Thanks Tom
Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button StyleFigured out a simple enough solution for now. Just add the
button
class to the button block.Forum: Plugins
In reply to: [GenerateBlocks] Button Block Not Inheriting GeneratePress Button StyleAh I see. So I’ve added the filter and it is working for the color but I’m wondering if it’s possible to inherit the font of the button settings in GeneratePress as well.
Forum: Plugins
In reply to: [Autoptimize] Does cache clear after making changes in Customizer?Makes sense! I’ll keep an eye out.
Thanks again!
Forum: Plugins
In reply to: [Autoptimize] Does cache clear after making changes in Customizer?Removing the
wp-content/uploads
from the exclusion did it! Thanks @optimizingmatters !Forum: Plugins
In reply to: [Autoptimize] Does cache clear after making changes in Customizer?Hey @optimizingmatters ,
I’ve tried that and it doesn’t seem to make a difference. It’s definitely related to that setting in GeneratePress but that’s not your guys issue. Not a huge issue but just wanted to see if I was missing something. Thanks for the quick response and developing such a solid caching solution for all!
Forum: Plugins
In reply to: [Custom Blocks Constructor - Lazy Blocks] Mass Update Post TemplateSo let’s say I’ve created a custom post type and using Lazy Blocks I’ve created some custom blocks about putting custom fields. Then I create a Lazy Blocks template for this custom post type. But, later on I decide to change the template. Right now I need to go into each post individually and update the post with the new Lazy Blocks template. Would it be possible to do this for all the posts at once and if so could you point me in the right direction?
Forum: Plugins
In reply to: [Autoptimize] Cache not clearingI figured it out. It doesn’t seem related to Autoptimize but to the way GeneratePress is loading an external CSS file. Thank you for the quick reply!
Forum: Plugins
In reply to: [Visual Portfolio, Photo Gallery & Post Grid] Disable CommentsOkay thanks for pointing me in the right direction.
That worked like a charm! Thanks for taking a look. I got that original code from you documentation so that might need to be included there for future reference. Thank you!
Hey,
I’ve attached screenshots of what is happening. Essentially, I’m using the PHP output method but no matter what date I choose in the block todays date gets output.
Quick Loom video as well: https://www.loom.com/share/20b4cb1d30904f2f8023c9a6a5e0cfe6
Thank you!
@rojokuze are you considering releasing the fix for this? There support confirmed with me that this is still an issue.