A place to talk about whatever you want

Add external video (eg: from aws or vimeo pro)
D

Worked with "+more" → "+html" and the url from vimeo.

Thank you very much!

read more
Deactivate font css and only give class names (h1, h2)

Dear @bjoernatwork
in Laygridder we do not use the standard h1 and h2 elements but define it through a class:

You have the option to name the formats however you want

Hope that helps!

Best!

Marius

read more

Please name your browser and browser version

textformats issues and more
A

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 );

read more

Show a website you did that uses LayGridder

forever1995.com

Ah! We love it! Very nice!!!!

read more