Breadcrumb Block
This is a single-block plugin for the breadcrumb trail. It’s simple, lightweight, SEO-friendly, and WooCommerce compatibility. It also includes some simple separator icons. It works everywhere: Page Editor, Site Editor, and template files. How to customize the breadcrumb How to change/remove an item? add_filter( 'breadcrumb_block_get_item', function ( $item_args, $context, $breadcrumbs_instance ) { // Ignore items without context. if ( ! $context || ! ( $context['object'] ?? false ) ) { return $item_args; } // Eg: remove a term. if ( 'term' === ( $context['type'] ?? '' ) && 'term-slug' === $context['object']->slug ) { return false; } // Eg: Change the title of a page. if ( 'page' === ( $context['type'] ?? '' ) && page_id_to_change === $context['object']->ID ) { $item_args[0] = 'Make it shorter'; } return $item_args; }, 10, 3 ); $item_args is a 3-item array: [$item_label, $item_link, $item_attrs] $context is an associative array: ['type' => 'item type', 'object' => 'item object']. type can be one of the following values: front_page, home, shop, page, post, single, term, taxonomy, post_type_archive, search, 404, paged, author, date_year, date_month, date_day, attachment. How to change the markup of the block? add_filter( 'breadcrumb_block_get_breadcrumb_trail', function ( $markup, $args, $breadcrumbs_instance ) { return $markup; }, 10, 3 ); How to add or remove the items from the breadcrumb trail? add_filter( 'breadcrumb_block_get_items', function ( $items, $breadcrumbs_instance ) { return $items; }, 10, 2 ); How to use a custom separator for the breadcrumb trail? add_filter( 'breadcrumb_block_get_args', function ( $args ) { // For example, change separator. $args['separator'] = ' '; return $args; } ); The custom separator should be an inline SVG. To make sure it displays properly, it should have three attributes: width, height, and fill. The values of these attributes should be as follows: fill="currentColor" width="1em" height="1em". Using this hook, you can customize other attributes such as container, before, after, list_tag, item_tag, item_before, item_after, separator. How to prepend the blog page to all single posts? add_action( 'breadcrumb_block_single_prepend', function ( $post, $breadcrumbs_instance ) { if ( 'post' === $post->post_type ) { $blog_id = get_option( 'page_for_posts'); if ( $blog_id ) { $breadcrumbs_instance->add_item( get_the_title( $blog_id ), get_permalink( $blog_id ) ); } } }, 10, 2 ); If this plugin is useful for you, please do a quick review and rate it on WordPress.org to help us spread the word. I would very much appreciate it. Please check out my other plugins if you’re interested: Content Blocks Builder – Build custom layouts and blocks visually in the Block Editor without needing a code editor, using only core blocks and native Gutenberg features. Meta Field Block – A single block to display custom fields in the Block Editor without coding. It supports ACF, MetaBox, WooCommerce, meta, rest field, shortcode and more. Works everywhere: in the Site Editor (FSE), the Block Editor, inside Query Loop, WooCommerce Product Collection, Term Query blocks, and even in template files. SVG Block – A block to display SVG images as blocks. Useful for images, icons, dividers, and buttons. It allows you to upload SVG images and load them into the icon library. Icon separator – A tiny block just like the core/separator block but with the ability to add an icon. Block Enhancements – Adds practical features to blocks like icons, box shadows, transforms, etc. Counting Number Block – A block to display numbers with a counting effect Better YouTube Embed Block – A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists. The plugin is developed using @wordpress/create-block.
Top keywords
- block20×3.45%
- item13×2.25%
- args9×1.55%
- context9×1.55%
- add8×1.38%
- editor7×1.21%
- separator7×1.21%
- blocks6×1.04%
- id6×1.04%
- page6×1.04%
- return6×1.04%
- 'breadcrumb5×0.86%
Ibtana – WordPress Website Builder
Ibtana Gutenberg Editor has ready made eye catching responsive templates build with custom blocks and options to extend Gutenberg’s default capabilities. You can easily import demo content for the block or templates with a single click. Once done, you can straight away start making the desired changes. It also kit with individual components and blocks to build internal pages. Now you don’t need to invest too much time in editing or recreating the template you love. Now its just drag and drop and easy edit of your favourite template with just few clicks. Ready To Use Website Blocks For Gutenberg Ibtana offers a great experience while building pages with Gutenberg as you have an entire collection of page building blocks for WordPress at your disposal. Even if you do not possess enough design skills, you don’t need to worry as this WordPress block editor already has things simplified for you. Its intuitive and user-friendly interface helps you design the web pages without having to write a single line of code. This block-based editor takes WordPress page building to the next level by providing an efficient, fast, and simple way for creating pages. Just select the block you wish to add to your page by simple drag and drop, adjust the settings using the easy tweaking options and you are ready to go. 🎨 Explore a World of Free WordPress Themes! Ibtana isn’t just a plugin; it’s a community! Dive into a collection of stunning Free WordPress themes created with the Ibtana – WordPress Website Builder. Check out all the Free WordPress themes crafted by VW Themes and transform your website into a masterpiece. 👉 Check Out Now: Free WordPress themes Explore the Collection of Premium Theme (Starting from $21) – Premium WordPress Themes Get the 500+ WordPress Theme Bundle at just $119 – WP Theme Bundle WHAT THE PLUGIN DOES? Seamless Performance: As its design follows the best coding standards, it delivers fast and better performance giving amazing results. Easy Customization: A lot of options are there for customizing almost everything to get a distinct and unique page. Settings For Blocks: Different block settings are provided for every single block that includes settings for responsive, fonts, gradient color, etc. User-friendly: With easy drag and drop, you can create stunning web pages in a matter of minutes. Ready to Use Demos: Includes thoughtfully built website templates and blocks for Gutenberg. These blocks can be used for creating a range of websites such as online stores, restaurants, businesses, etc. Preview: Option for previewing every Gutenberg block based template in the customizer preview. Ibtana Visual Editor currently includes the following blocks: Progress Bar – View Demo Posttype Slider – View Demo Advanced Separator & Spacer – View Demo Advanced Button – View Demo Advanced Social Icon – View Demo Google Map – View Demo Shape Divider – View Demo Tabs – View Demo Popup – View Demo Accordion – View Demo Advanced Gallery – View Demo Advanced Text – View Demo Countdown – View Demo Multiblock Slider – View Demo Form – View Demo More Info About the Blocks Progress Bar Add animated horizontal progress bars to your page and show the percentage progress. You can customize it by changing the colors and values. Posttype Slider Show the latest posts and products on your site with this Posttype Slider Block which has some additional functionalities such as adding category-wise posts and products, the number of blocks to be displayed on a single page, and more. Advanced Separator & Spacer Want to separate the two content blocks on your page? Separator Block is what you are looking for. It allows you to separate your content with or without hr tag lines. Advanced Text Advanced Text block is useful for adding the headings, paragraph and counter to your page. With this, you can easily structure your page and make the content easily readable to your readers as well as to search engines. Advanced Button The Button block allows you to add buttons linking to other pages on your site with advanced functionality for changing colors, font size, adding opacity, and more. Advanced Social Icon You will find a list of all the Font Awesome icons here. Select any of the icons you want to add to your page and you can customize it by changing the background and color. Google Map Inserting a customizable Google map is now easy with Google Map Block. You can include a google map and enter the location name, address with functionality to zoom in and zoom out. Shape divider Add flair to different sections as this Shape Divider Block allows you to add different SVG borders and designs to the slider or any other section you wish. Tab Content Use this feature-rich Tab Content Block for Gutenberg block editor allowing you to place different content and blocks inside each tab. There is absolutely no limit to things you can place within each tab. Video popup The Video Popup Block helps to display the popup on your website on which you can add a video, image, or any inner block that will be shown on click and on load as well. Accordion The Accordion Block is a simple and useful block that can be used to add the accordion drop-downs to your website. Advanced Gallery Show splendid image galleries on your website with this simple drag and drop Galley Block. You can display a beautiful gallery of images on your website. PageTitle Page Title Block gives you the flexibility to place the title of the page and display it on the web page. Countdown Timer To help you create a countdown timer in a block-based editor, this Countdown Timer block will help you to display a counter that keeps ticking showing the time in years and months to minutes and seconds. Multiblock Slider With the Multiblock Slider block, making beautiful carousels and sliders for displaying magnificent images is very easy. You can use this block to make it work both ways. Form Add contact form to your page with reCaptcha.