HOME  >  HOW TO USE > How to set up and use breadcrumbs

How to set up and use breadcrumbs

The following php files are involved in displaying breadcrumbs with the plug-in “FullSite-Patterner” .

shortcode.php places a block of shortcodes at the display location of each page where you want to display breadcrumbs, and loads the php file .

breadcrumb.php generates and outputs a breadcrumb list with text surrounded by simple p tags .

shortcode.phpShortcode setting for displaying breadcrumbs 
.
breadcrumb.phpPerform processing to display 
breadcrumbs .

Generated Breadcrumb

Title of individual page
top page (link to URL) > Title of category page, etc. (link to URL) > Title of individual page

Title of category page
top page (link to URL) > Title of category page, etc.

Fixed page, search result page, 404 page, etc.
Top page title (link to URL) > Page title

View breadcrumbs

For breadcrumbs, you need to insert a php file call shortcode on each page where you want it to appear .
A block pattern (breadcrumb-with-plugin) is also available.

Insert the block where you want it to appear on the page.

A blank paragraph is inserted , click the “+” mark on the right and select the block.

Select the “Shortcode” block from “Blocks” on the left menu and insert it .

Here is the php program call code .

  [myphp file='breadcrumb']    

Click the “Save” button in the upper right and refresh the page to see the breadcrumbs.

Alternatively, if you select and insert a block pattern (breadcrumb-with-plugin) with a shortcode from ” Pattern” on the left menu instead of the “Shortcode” block , you will get the same editing result.

,