• farrukh_ahmed

    (@farrukh_ahmed)


    Hi,

    Thanks for the plugin and its model features.

    M having some issues, can you kindly help ?

    1. This plugin don’t work if Guternbug is disabled
    2. I have tried to obtain block code to that in Elementor builder but it wont work

    so, is there any way to use it easily like any HTML shortcode that can work with Elementor page builder too?

    Thanks..

Viewing 1 replies (of 1 total)
  • “is there any way to use it easily like any HTML shortcode that can work with Elementor page builder too?”


    Yep, i add this shortcode to plugin index.php to use without Guttenbert … not all parameters, as your see parameters are caseindependent from WP!

    add_shortcode( "stl", "embed_stl_render_callback_" );
    function embed_stl_render_callback_( $params_, $content_ )
    {
        
     $params_['autoRotate'] =  "true";
     $url = $params_['mediaURL']   =  $params_['mediaurl'];
     $params_['blockID']    =  $params_['blockid'];
     $params_['modelColor'] =  "#d780be";
     $params_['showGrid']   =  0;
     $params_['showBorder']   = 1;
     $params_["defaultRotateX"]=64;
     $params_["defaultRotateY"]=30;
     $params_["defaultRotateZ"]=-60;
     
    // return "<pre>".print_r($params_,1)."</pre>";   
     return embed_stl_render_callback($params_, $content_) . "<a href='$url'>Загрузить модель</a><br />";
    }

    Similar use:

    [stl mediaURL="https://publikz.com/wp-content/uploads/2023/04/thermostate_holder_box.stl" blockID=3]
    
    <br />
    
    [stl mediaURL="https://publikz.com/wp-content/uploads/2023/04/thermostate_holder_fix_box.stl" blockID=4]

    is here – https://publikz.com/blog_44590

    I cant use this Gutenberg … i just need plain editor. Nothing more. Yes, block are very useful for developers. But for old users of WP – they are alien.

Viewing 1 replies (of 1 total)
  • The topic ‘Few issues’ is closed to new replies.