{"id":3409,"date":"2024-09-08T03:11:19","date_gmt":"2024-09-08T03:11:19","guid":{"rendered":"https:\/\/wpconsults.com\/?p=3409"},"modified":"2026-03-19T20:00:34","modified_gmt":"2026-03-19T20:00:34","slug":"meerjungfrauen-diagramm-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.wpconsults.com\/de\/meerjungfrauen-diagramm-in-wordpress\/","title":{"rendered":"Wie man ein Meerjungfrauen-Diagramm in einem WordPress-Post oder einer Seite anzeigt"},"content":{"rendered":"\n<p>In this tutorial, you&#8217;ll learn how to display a Mermaid diagram in WordPress post or page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1320\" height=\"691\" src=\"https:\/\/i0.wp.com\/wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=1320%2C691&#038;ssl=1\" alt=\"Mermaid Diagram in  WordPress\" class=\"wp-image-3424\" srcset=\"https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?w=2400&amp;ssl=1 2400w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=300%2C157&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=1024%2C536&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=768%2C402&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=1536%2C804&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?resize=2048%2C1072&amp;ssl=1 2048w\" sizes=\"(max-width: 1320px) 100vw, 1320px\" \/><\/figure>\n\n\n\n<p>Mermaid is a powerful diagramming tool that allows users to create flowcharts, sequence diagrams, Gantt charts, and more using simple markdown-like syntax. <\/p>\n\n\n\n<p>Let&#8217;s dive into the steps to integrate Mermaid diagrams in your WordPress website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Displaying Mermaid Diagram in WordPress<\/strong>: <strong>Step-by-Step Guide<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Install and Activate the Mermaid Plugin<\/strong><\/h3>\n\n\n\n<p>First, you need to install a plugin that enables Mermaid.js support in WordPress. Here&#8217;s how:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"275\" src=\"https:\/\/i0.wp.com\/wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7-1024x275.png?resize=1024%2C275&#038;ssl=1\" alt=\"\" class=\"wp-image-3414\" srcset=\"https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7.png?resize=1024%2C275&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7.png?resize=300%2C81&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7.png?resize=768%2C206&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7.png?resize=1536%2C412&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-7.png?w=1848&amp;ssl=1 1848w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your WordPress dashboard.<\/li>\n\n\n\n<li>Go to <strong>Plugins<\/strong> &gt; <strong>Add New<\/strong>.<\/li>\n\n\n\n<li>Search for \u201c<strong>WP Mermaid<\/strong>\u201d plugin.<\/li>\n\n\n\n<li>Click <strong>Install Now<\/strong> next to the Mermaid plugin of your choice.<\/li>\n\n\n\n<li>After installation, click <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>Once activated, this plugin will allow Mermaid syntax in your WordPress posts and pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-mermaid-diagram\"><strong>Step 2: Create a Mermaid Diagram<\/strong><\/h3>\n\n\n\n<p>Now that the plugin is activated, it&#8217;s time to create your Mermaid diagram. Mermaid syntax is simple and effective for generating diagrams. <\/p>\n\n\n\n<p>Below is an example of a basic flowchart in Mermaid:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>graph LR\n    Fitness -- Strength Training\n    Fitness -- Cardio\n    Fitness -- Nutrition\n    Strength Training -- Weightlifting\n    Strength Training -- Bodyweight Exercises\n    Cardio -- Running\n    Cardio -- Cycling\n    Nutrition -- Meal Planning\n    Nutrition -- Supplements<\/code><\/pre>\n\n\n\n<p>You can adjust the diagram by modifying the Mermaid syntax according to your needs. Mermaid supports various types of diagrams, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Flowcharts<\/li>\n\n\n\n<li>Sequence diagrams<\/li>\n\n\n\n<li>Gantt charts<\/li>\n\n\n\n<li>Class diagrams<\/li>\n<\/ul>\n\n\n\n<p>Explore the <a href=\"https:\/\/mermaid-js.github.io\/mermaid\/#\/\" rel=\"nofollow noopener\" target=\"_blank\">Mermaid documentation<\/a> for more examples and syntax.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Add Mermaid Diagram in WordPress Post\/Page<\/strong><\/h3>\n\n\n\n<p>Once you have your Mermaid syntax ready, you can now embed it into a post or page:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How to Add  Mermaid Diagram in Gutenberg Editor:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1141\" height=\"613\" src=\"https:\/\/i0.wp.com\/wpconsults.com\/wp-content\/uploads\/2024\/09\/image-6.png?resize=1141%2C613&#038;ssl=1\" alt=\"Wp Mermaid Block\" class=\"wp-image-3412\" srcset=\"https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-6.png?w=1141&amp;ssl=1 1141w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-6.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-6.png?resize=1024%2C550&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/image-6.png?resize=768%2C413&amp;ssl=1 768w\" sizes=\"(max-width: 1141px) 100vw, 1141px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the &#8220;+&#8221; icon to add a new block.<\/li>\n\n\n\n<li>Search for &#8220;Code&#8221; and select the <strong>Code<\/strong> block.<\/li>\n\n\n\n<li>Paste your Mermaid code within the block.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">How to Add Mermaid Diagram in Classic Editor<\/h4>\n\n\n\n<p>In classic editor, you can use shortcode to render your Mermaid syntax.<br>If you are using WordPress version below 5.0, this is the only way you can use.<\/p>\n\n\n\n<pre class=\"wp-block-code has-text-color has-medium-font-size\" style=\"color:#cd0000\"><code><em>&#91;mermaid] insert code here &#91;\/mermaid]<\/em><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">How to Add  Mermaid Diagram using Elementor and other Page builders<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add Shortcode block<\/li>\n\n\n\n<li>Insert code within the tag<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-text-color has-medium-font-size\" style=\"color:#cd0000\"><code><em>&#91;mermaid] insert code here &#91;\/mermaid]<\/em><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Publish and Preview the Post\/Page<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once you&#8217;ve added your Mermaid diagram code, click <strong>Preview<\/strong> to ensure it appears correctly.<\/li>\n\n\n\n<li>If everything looks good, click <strong>Publish<\/strong> to make your post or page live.<\/li>\n<\/ol>\n\n\n\n<p>Here is an example below how it will look after publishing. I am using &#8220;WP Mermaid&#8221; plugin here.<\/p>\n\n\n\n<div class=\"wp-block-wp-mermaid-block mermaid\">\n\n\n\ngraph TD\n    A[Fitness] &#8211;> B[Strength Training]\n    A &#8211;> C[Cardio]\n    A &#8211;> D[Nutrition]\n    B &#8211;> E[Weightlifting]\n    B &#8211;> F[Bodyweight Exercises]\n    C &#8211;> G[Running]\n    C &#8211;> H[Cycling]\n    D &#8211;> I[Meal Planning]\n    D &#8211;> J[Supplements]\n\n\n\n<\/div>\n\n\n\n<p class=\"has-text-align-center\">For the above diagram, I used the sample code I have mentioned in <a href=\"#create-mermaid-diagram\">step 2<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>By following this tutorial, you can easily integrate Mermaid diagrams into your WordPress posts or pages. <\/p>\n\n\n\n<p>Whether you&#8217;re creating flowcharts, sequence diagrams, or Gantt charts, Mermaid offers a flexible and easy-to-use syntax that works seamlessly with WordPress. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In diesem Tutorial lernen Sie, wie Sie ein Mermaid-Diagramm in einem WordPress-Beitrag oder einer WordPress-Seite anzeigen k\u00f6nnen. Mermaid ist ein leistungsstarkes Diagramm-Tool, mit dem Benutzer Flussdiagramme, Sequenzdiagramme, Gantt-Diagramme und vieles mehr mit einer einfachen, markdown-\u00e4hnlichen Syntax erstellen k\u00f6nnen. Lassen Sie uns in die Schritte eintauchen, um Mermaid-Diagramme in Ihre WordPress-Website zu integrieren. Anzeige von Mermaid-Diagrammen in...<\/p>","protected":false},"author":1,"featured_media":3424,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[],"class_list":["post-3409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-tips-tutorials"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.wpconsults.com\/wp-content\/uploads\/2024\/09\/mermaid-markdown-diagrams-in-wordpress-jpg.webp?fit=2400%2C1256&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pboFy3-SZ","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/posts\/3409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/comments?post=3409"}],"version-history":[{"count":1,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/posts\/3409\/revisions"}],"predecessor-version":[{"id":5528,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/posts\/3409\/revisions\/5528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/media\/3424"}],"wp:attachment":[{"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/media?parent=3409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/categories?post=3409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpconsults.com\/de\/wp-json\/wp\/v2\/tags?post=3409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}