-
-
arminunruh
hey could you please update laygridder and try again?
thanks for your patience
-
arminunruh
hey if you update laygridder it should now be compatible with the latest version of qtranslatext!
-
arminunruh
hey @billykioso
- The text formats I create don't appear in the formats button.
I'm guessing you have inserted your own formats via your theme's code.
This filter is used to pass in custom textformats using code:
https://developer.wordpress.org/reference/hooks/tiny_mce_before_init/The filter "tiny_mce_before_init" passes in an array. That array has a ['style_formats'] array key that we add LayGridder's textformats to.
Like this:
$in['style_formats'] = json_encode( $style_formats ); return $in;
In case you use that filter too or a similar one, in your theme's code you'd need to do something like:
$in['style_formats'] = array_merge( $in['style_formats'], $my_formats );
This way you'd merge your style formats and LayGridder's without replacing LayGridder's formats.
Here's some example code of how your code could look:
function my_formats($in){ $myformats = array(…); $in['style_formats'] = array_merge( $in['style_formats'], $my_formats ); return $in; } // use priority 11 to make sure this is run after lagridder's function add_filter( 'tiny_mce_before_init', 'my_formats', 11, 1 );
-
arminunruh
Just created this topic so I can move a post from a different topic here
-
arminunruh
Hey!
That's not possible
What about using "+more" → "+embed" to insert a vimeo video?
You could also create a custom element
http://laygridder.com/documentation.html#custom-element-typeOr use "+more" → "+html" and insert your own html5 video code like
<video playsinline muted autoplay loop src="yoururl"></video>
-
arminunruh
ok if you update laygridder, this should be fixed now
-
arminunruh
hey man, i'll look into this asap, thanks for the heads up
-
arminunruh
Hey can you update and see if the problem still persists?
If it does can you send your /wp-admin/ login data to info@laygridder.com along with a link to this topic?