LayGridder Forum

  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. arminunruh
  • More Toggle Dropdown
    • Flag Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
  • Profile
A
arminunruh
Chat Follow Unfollow
Banned

7 Reputation
69 Posts
783 Profile views
Followers 1 Following 0 Joined Last Online

Groups

administrators
  • A
    arminunruh

    hey @billykioso

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

    posted in Bug Reports • read more
  • A
    arminunruh

    Just created this topic so I can move a post from a different topic here

    posted in Bug Reports • read more
  • A
    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-type

    Or use "+more" → "+html" and insert your own html5 video code like

    <video playsinline muted autoplay loop src="yoururl"></video>
    

    posted in General Discussion • read more
  • A
    arminunruh

    ok if you update laygridder, this should be fixed now

    posted in General Discussion • read more
  • A
    arminunruh

    hey man, i'll look into this asap, thanks for the heads up

    posted in General Discussion • read more
  • A
    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?

    posted in General Discussion • read more
  • A
    arminunruh

    Ok! I just released an update and now it should work!

    posted in General Discussion • read more
  • A
    arminunruh

    Hey Ernesto,

    Sorry for the late reply.

    I've also tried by using an async wp-json API call in order to render the images asyncronously but it is not working (even though I was excpecting thi behaviour).

    Ok well, maybe this won't work.

    I think the easiest thing to do would be:

    Your JavaScript that is used to render the view in the Gridder. It could just contain a standard image that would kind of be a placeholder of what that element would look like. And then it could have a Text of the ID of the category.

    You could also use javascript and ajax this way:
    https://codex.wordpress.org/AJAX_in_Plugins

    This way you could send the categorie's id to a php function via javascript and then get back the php function's markup.

    This is kind of similar to what you have tried using a wp-json api call.

    posted in General Discussion • read more
  • A
    arminunruh

    Hey yea there's an issue of how i retrieve the values.
    I got one part of it solved and will work more on it tomorrow.
    Thanks for the patience!

    posted in General Discussion • read more