• Resolved cielbleu1212

    (@cielbleu1212)


    Hi,

    Thank you for the good work! I’ve encountered an issue with the plugin. It fails to apply its styling on the front end. The site is built with Bricks Builder. I placed the shortcode inside a page template.

    The styling works fine when viewing it as a template page, but not on the normal page. On the page, the CSS code is missing from the developer console, unlike on the template page.

    How can I get the styling to work properly? I’ve attached some screenshots below. Thanks.

    as template page view: https://ibb.co/xqNqvyxx

    as normal page view: https://ibb.co/HfdT89kW

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    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. 🙂

    Thread Starter cielbleu1212

    (@cielbleu1212)

    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.
    Plugin Author Fernando Tellado

    (@fernandot)

    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 🙂

    Plugin Author Fernando Tellado

    (@fernandot)

    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 🙂

    Thread Starter cielbleu1212

    (@cielbleu1212)

    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.

    Plugin Author Fernando Tellado

    (@fernandot)

    You’re welcome

    Thank you for the feedback 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.