Conversation
supportHi, Thanks for the plugin and its model features. M having some issues, can you kindly help ? This plugin don’t work if Guternbug is disabled 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..
“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="http://publikz.com/wp-content/uploads/2023/04/thermostate_holder_box.stl" blockID=3] <br /> [stl mediaURL="http://publikz.com/wp-content/uploads/2023/04/thermostate_holder_fix_box.stl" blockID=4] is here – http://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. This reply was modified 3 years, 1 month ago by softm39@gmail.com . This reply was modified 3 years, 1 month ago by softm39@gmail.com .
“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="http://publikz.com/wp-content/uploads/2023/04/thermostate_holder_box.stl" blockID=3] <br /> [stl mediaURL="http://publikz.com/wp-content/uploads/2023/04/thermostate_holder_fix_box.stl" blockID=4] is here – http://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. This reply was modified 3 years, 1 month ago by softm39@gmail.com . This reply was modified 3 years, 1 month ago by softm39@gmail.com .