Hi @cielbleu1212
Thank you for the feedback. May I see the issue in any live page? I don’t have any web with Bricks Builder and cannot test the problem :/
Also can help to know if there is any optimization plugin active, cache, etc. 🙂
Hi Fernando, Thanks for getting back to me. Below is the temp link for the page. I have Super Page Cache and LiteSpeed Cache installed.
Link to page
I also tried the shortcode on the normal page in bricks, it rendered without css styling, so it seems the styling only work in template for some reason.
-
This reply was modified 2 months, 3 weeks ago by
cielbleu1212.
-
This reply was modified 2 months, 3 weeks ago by
cielbleu1212.
Thank you @cielbleu1212
Please, May you add this snippet using a code snippets plugin?
add_filter( 'do_shortcode_tag', function( $output, $tag ) {
if ( 'ayudawp_share_buttons' !== $tag || empty( $output ) ) {
return $output;
}
if ( wp_style_is( 'ayudawp-aiss-styles', 'enqueued' ) ) {
return $output;
}
if ( ! defined( 'AYUDAWP_AISS_PLUGIN_URL' ) || ! defined( 'AYUDAWP_AISS_VERSION' ) ) {
return $output;
}
wp_enqueue_style(
'ayudawp-aiss-styles',
AYUDAWP_AISS_PLUGIN_URL . 'assets/css/ai-share-summarize.css',
array(),
AYUDAWP_AISS_VERSION
);
if ( ! wp_script_is( 'ayudawp-aiss-scripts', 'enqueued' ) ) {
wp_enqueue_script(
'ayudawp-aiss-scripts',
AYUDAWP_AISS_PLUGIN_URL . 'assets/js/ai-share-summarize.js',
array( 'jquery' ),
AYUDAWP_AISS_VERSION,
true
);
}
return $output;
}, 10, 2 );
I cannot replicate your issue because I haven’t access to Bricks Builder so I don’t want to add a fix to the plugin without any real test that could break his funcionality, because with other builders available in ww.wp.xz.cn the plugin works fine
Please, let me know if it works, or any change, and if it’s ok I’ll update the plugin adding the snippet to the code 🙂
I’ve just updated the plugin with two fixes. One of them is related to your problem. Please, check if it’s solved after flushing any active cache 🙂
Sorry for not being able to respond to your messages earlier. I have tried the new update, and the style works perfectly. Thank you for the quick fix.
You’re welcome
Thank you for the feedback 🙂