• Resolved bigfish512

    (@bigfish512)


    hello,

    i’m having a problem when i try to use the Spectra block element outside the block editor, it has no style. by that, i mean i’m using a plugin to turn the block element into a shortcode so i can put it anywhere on my website and when i do that, the block element has no style. is there a way to fix that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support BSF- Mohsin Ghouri

    (@mohsinbsf)

    Hi @bigfish512,

    Sorry for the inconvenience caused to you.

    Spectra plugin is block based page builder and is created on the base of the Gutenberg which is WordPress default editor. However, if you want to load Spectra assets, you can try the solution mentioned here: https://wpspectra.com/docs/assets-api-third-party-plugins/

    Have a nice day!

    Thread Starter bigfish512

    (@bigfish512)

    hi,

    i put the code to enqueue Spectra assets in functions.php of my Spectra One child theme but the block element still has no style.

    add_action('wp_enqueue_scripts', 'enqueue_scripts_by_post_id');
    function enqueue_scripts_by_post_id() {
    // Create Instance. Pass the Post ID.
    $post_assets_instance = new UAGB_Post_Assets(2);
    // Enqueue the Assets.
    $post_assets_instance->enqueue_scripts();
    }

    did i do something wrong? please have a look at the page here

    Plugin Support BSF- Mohsin Ghouri

    (@mohsinbsf)

    Hi @bigfish512,

    Sorry for the inconvenience caused to you.

    I request you open a support ticket from here:https://wpspectra.com/support/ so that our support dev can check your site configuration and assist you.

    Have a nice day!

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

You must be logged in to reply to this topic.