rose18
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom WP blocks – return the text/ background hex colorHi @artemiosans ,
I am using the ACF Pro to create the Custom WP Blocks.
Forum: Fixing WordPress
In reply to: Custom Line heights + Margin UI in block editorHi @grinstead,
If you have the the padding and Margin UI in the block editor, to can access the padding and margin settings, you can use these:
$block['style']['spacing']['padding']['top']; $block['style']['spacing']['padding']['bottom']; $block['style']['spacing']['padding']['left']; $block['style']['spacing']['padding']['right']; $block['style']['spacing']['margin']['top']; $block['style']['spacing']['margin']['bottom']; $block['style']['spacing']['margin']['left']; $block['style']['spacing']['margin']['right'];
Thanks!
Forum: Plugins
In reply to: [Disable Gutenberg] Not reading theme.json file once this plugin is activatedThank you Jeff @specialk !
Enabling the option ‘Enable Frontend’ fixed it. It’s now reading the theme.json file stuff.Thanks Again!
Forum: Fixing WordPress
In reply to: Custom Line heights + Margin UI in block editorWould anyone know how to resolve these issues?
Thank you!Forum: Fixing WordPress
In reply to: Customized the editor font sizesThank you @kathiecs ! But I am not looking to change the font size in the WordPress posts or pages. I want to change the labels on the Typography sizes to S,M,L,XL (see screenshot : https://snipboard.io/8PRDsX.jpg).
This is an additional block support feature for Gutenberg blocks when you add in the code from above and when you add in this code to where you register your custom wp blocks:supports => [ 'typography' => [ // Enable support and UI control for font-size. 'fontSize'=> true, // Enable support and UI control for line-height. 'lineHeight'=> true, ], ]
The font size UI is showing up, but just want to change the label to S,M,L,XL instead of using the font-sizes as the label. (screenshot: https://snipboard.io/8PRDsX.jpg)
Forum: Fixing WordPress
In reply to: Documentations on Building a Custom Full site editing Themethank you @sterndata !
Thank you @hwk-fr !
It works perfectly!
Thank you so much!
The code you provided works!!
Thank you for your response!
I believe I know why it’s not saving the changes.
For pages that uses the Flexible content and has Dynamic Preview enabled, it seems to be not saving the changes when the content has ajax. I have created a ‘Regular Text’ layout using Flexible content and when the content area (using a WYSIWYG editor field) has a gravity form (that uses ajax) or other embedded elements that uses ajax, it doesn’t save the changes. When I removed the gravity form shortcode and other elements that contains ajax from the content area, it doesn’t have the update issue.Is there a way to fix the issue? or is there a way to not display the dynamic preview in the admin if the content contains AJAX and just replace it with a text message? Maybe displaying “This content cannot be previewed in the admin because it’s using AJAX”.
Thank you!
Forum: Plugins
In reply to: [Compact WP Audio Player] Display Length of Audio Clip beside play buttonThank you! Can you point me in the right direction on how I can achieve that, displaying the duration of the audio clips? using php.
Thank you!
Thank you! It works now!
Thank!
I did try using that method, but I am getting a fatal error on the page editor.
Please find it below.Fatal error: Uncaught ArgumentCountError: Too few arguments to function sp_acfe_flexible_enqueue(), 2 passed in /XXXX/site/wp-includes/class-wp-hook.php on line 303 and exactly 3 expected in /XXXX/site/wp-content/mu-plugins/modified_vendor_hooks.php:105 Stack trace: #0 /XXXX/site/wp-includes/class-wp-hook.php(303): sp_acfe_flexible_enqueue(Array, true) #1 //XXXX/site/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 /XXXX/site/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /XXXX/site/wp-content/plugins/acf-extended/includes/fields/field-flexible-content-preview.php(227): do_action('acfe/flexible/e...', Array, true) #4 /XXXX/site/wp-includes/class-wp-hook.php(303): acfe_field_flexible_content_preview->render_field(A in /XXXX/site/wp-content/mu-plugins/modified_vendor_hooks.php on line 105
This is the code that I am using:
function sp_acfe_flexible_enqueue($field, $layout, $is_preview){ wp_enqueue_style('sp-acfe-block-style', get_stylesheet_directory_uri() . '/assets/admin-acfe-blocks.css'); }
Thanks!
Hi,
Just want to follow up on this.
Thanks!
Forum: Plugins
In reply to: [Broken Link Checker | Finder] The price for the PREMIUM versionThank you for the information!
same here. The shortcode [wp-favorite-posts] doesn’t display my favourite posts on my page. I also tried inserting {{wp-favorite-posts}} and it still doesn’t work.
How can we have all the favorite posts to be listed on a page?
Thanks!