
The plugin allows you to parse all kinds gutenberg blocks and render them in your own template.
Use the filter ‘jinx_block_renderers’ in your theme to render gutenberg blocks.
<?php function my_render_function(array $fields) { echo $fields['url']; } add_filter('jinx_block_renderers', function($renderers) { $renderers[] = [ 'block' => 'core-embed/youtube', // name of the block 'conditions' => [], // default - accepts an array of key value pairs // 'conditions' => [ // 'className' => 'is-style-custom', // strings are used inside a regular expression // 'field' => function($value) { // callbacks will receive the fields value and must return true or false // return $value === 'some value'; // } // ], 'fields' => [ 'url' => [ // name of your parameter 'path' => '//iframe[@src]', 'item' => 0, // 'item' => 9, // if not exists, will return null // 'item': 'first', // constant Jinx\BlockRenderer\Field::ITEM_FIRST // 'item': 'last', // constant Jinx\BlockRenderer\Field::ITEM_LAST // 'item': null // default - returns all results as an array 'attr' => 'src', //'attr' => null // default - returns the results value //'filter' => 'my_filter_function' // filters each matched field ], ], // 'insert' => '//*[contains(@class,"wp-block-")]' // default - inserts rendered block back into the block-wrapper 'template' => __DIR__.'/youtube-video.php', // relative path, templates will handle each field as a variable // 'callback' => 'my_render_function' ]; return $renderers; }); ?> Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Lukas Rydygel
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Add a logo slider to your site to showcase clients and partners, strengthen brand credibility, and build trust with new visitors.
Showcase content with a card slider that presents images, text, and buttons in a smooth, customizable layout to keep visitors engaged.
Show Instagram posts in a responsive carousel layout to enhance social proof and keep your site content visually fresh.
Add interactive image hotspots to your site to turn static visuals into clickable guided experiences that improve engagement.
Show progress with animated progress circles that visualize goals, display achievements, and keep visitors engaged.
Use tilted image effects to rotate visuals, add creative style, and keep visitors engaged with dynamic images on your site.
Show your Amazon product reviews with My Reviews on Amazon to build trust, boost credibility, and help visitors make confident purchase decisions.
Create structured layouts with a section builder that lets you design custom website sections, customize styles, and organize content for a clearer user experience.
Show products, apps, or designs inside a clean device mockup that improves visualization, builds credibility, and helps visitors make confident decisions.
Add a floating corner pop-up to display updates or calls to action without disrupting the user experience or site flow.
Enhance titles with highlighted headlines that use custom colors, animations, and styles to draw attention and help visitors notice key messages.
Create engaging stop motion displays with a stop motion player that turns image sequences into interactive animations to boost creativity and visitor engagement.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
