{"id":189,"date":"2017-07-08T23:24:59","date_gmt":"2017-07-08T21:24:59","guid":{"rendered":"https:\/\/laikalaikacoding.wordpress.com\/?p=189"},"modified":"2017-07-08T23:24:59","modified_gmt":"2017-07-08T21:24:59","slug":"implementing-the-breadcrumbs-from-yoast-seo-into-the-zuki-theme-by-elmastudio","status":"publish","type":"post","link":"https:\/\/voneff.de\/en\/implementing-the-breadcrumbs-from-yoast-seo-into-the-zuki-theme-by-elmastudio\/","title":{"rendered":"Implementing the Breadcrumbs from Yoast SEO into the Zuki theme by Elmastudio"},"content":{"rendered":"<p>I often work with themes by <a href=\"https:\/\/www.elmastudio.de\/\">Elmastudio<\/a> for client projects. Therefore, I put one of their themes, <a href=\"https:\/\/www.elmastudio.de\/en\/themes\/zuki\/\">Zuki<\/a>, into use for a website of a local hairdresser.<\/p>\n<p>The themes by Elmastudio are pretty light-weight \u2013 which also means that they don\u2019t have support for too many plugins out of the box.<\/p>\n<p>For better SEO and an improved user experience I wanted to display breadcrumbs on the pages of my Zuki website. The popular Yoast SEO plugin has a breadcrumb functionality baked into the plugin \u2013 therefore was no need for an extra plugin or coding this by myself. There is just a little copy &amp; paste needed in order to achieve this.<\/p>\n<p><!--more--><\/p>\n<p>The plugin authors describe <a href=\"https:\/\/kb.yoast.com\/kb\/implement-wordpress-seo-breadcrumbs\/\">here<\/a>\u00a0in general how to implement their breadrumbs into themes. In the case of the Zuki theme I wanted to display the breadcrumbs in between the thin grey line that sits on top of the content container and the page title, as indicated in red in the following screenshot from the <a href=\"http:\/\/themes.elmastudio.de\/zuki\/\">live theme demo<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-208\" src=\"https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_position.png\" alt=\"Elmastudio_Zuki-Theme_Breadcrumbs_Position\" width=\"1239\" height=\"782\" style=\"border:1px solid #ccc;\" srcset=\"https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_position.png 1239w, https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_position-300x189.png 300w, https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_position-768x485.png 768w, https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_position-1024x646.png 1024w\" sizes=\"auto, (max-width: 1239px) 100vw, 1239px\" \/><\/p>\n<p>All I needed to do is to copy the theme\u2019s content-page.php file into my child theme folder and paste <a href=\"https:\/\/kb.yoast.com\/kb\/implement-wordpress-seo-breadcrumbs\/\">the snippet provided by the Yoast SEO team<\/a> as follows:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&amp;lt;?php\n\/**\n * The template used for displaying page content.\n *\n * @package Zuki\n * @since Zuki 1.0\n *\/\n?&amp;gt;\n\n&amp;lt;article id=&amp;quot;post-&amp;lt;?php the_ID(); ?&amp;gt;&amp;quot; &amp;lt;?php post_class(&#039;cf&#039;); ?&amp;gt;&amp;gt;\n\n&amp;lt;?php\n\/* Start displaying Yoast SEO breadcrumbs *\/\nif ( function_exists(&#039;yoast_breadcrumb&#039;) ) {\nyoast_breadcrumb(&#039;\n&amp;lt;p id=&amp;quot;breadcrumbs&amp;quot;&amp;gt;&#039;,&#039;&amp;lt;\/p&amp;gt;\n&#039;);\n}\n\/* End displaying Yoast SEO breadcrumbs *\/\n?&amp;gt;\n\n\t&amp;lt;header class=&amp;quot;entry-header&amp;quot;&amp;gt;\n\t\t&amp;lt;h1 class=&amp;quot;entry-title&amp;quot;&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;\/h1&amp;gt;\n\t&amp;lt;\/header&amp;gt;&amp;lt;!-- end .entry-header --&amp;gt;\n\n\t&amp;lt;div class=&amp;quot;entry-content cf&amp;quot;&amp;gt;\n\t\t&amp;lt;?php\n\t\t\tthe_content();\n\t\t\twp_link_pages( array(\n\t\t\t\t&#039;before&#039;      =&amp;gt; &#039;&amp;lt;div class=&amp;quot;page-links&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;page-links-title&amp;quot;&amp;gt;&#039; . __( &#039;Pages:&#039;, &#039;zuki&#039; ) . &#039;&amp;lt;\/span&amp;gt;&#039;,\n\t\t\t\t&#039;after&#039;       =&amp;gt; &#039;&amp;lt;\/div&amp;gt;&#039;,\n\t\t\t\t&#039;link_before&#039; =&amp;gt; &#039;&amp;lt;span&amp;gt;&#039;,\n\t\t\t\t&#039;link_after&#039;  =&amp;gt; &#039;&amp;lt;\/span&amp;gt;&#039;,\n\t\t\t) );\n\n\t\t\tedit_post_link( __( &#039;Edit&#039;, &#039;zuki&#039; ), &#039;&amp;lt;span class=&amp;quot;edit-link&amp;quot;&amp;gt;&#039;, &#039;&amp;lt;\/span&amp;gt;&#039; );\n\t\t?&amp;gt;\n\t&amp;lt;\/div&amp;gt;&amp;lt;!-- .entry-content --&amp;gt;\n\n&amp;lt;\/article&amp;gt;&amp;lt;!-- end post-&amp;lt;?php the_ID(); ?&amp;gt; --&amp;gt;\n<\/pre>\n<p>I also added a little styling: first to change the font of the breadcrumbs, and second as to make their linking function more visible, with a link style similar as it is designed in the sidebar. Here is what I added in my child theme style.css.<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\n#breadcrumbs {\n    font-family: &#039;Karla&#039;, Arial, sans-serif!important;\n}\n\n#breadcrumbs a:hover {\n    color: #999;\n    -webkit-transition: color linear 0.1s;\n    -moz-transition: color linear 0.1s;\n    -o-transition: color linear 0.1s;\n    transition: color linear 0.1s;\n}\n<\/pre>\n<p>And here is the outcome:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/voneff.de\/wp-content\/uploads\/2017\/07\/elmastudio_zuki-theme_breadcrumbs_outcome.png\" alt=\"Elmastudio_Zuki-Theme_Breadcrumbs_Outcome.png\" width=\"970\" height=\"460\" class=\"alignnone size-full wp-image-228\" style=\"border:1px solid #ccc;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I often work with themes by Elmastudio for client projects. Therefore, I put one of their themes, Zuki, into use for a website&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"wpf_show_in_dewp_planet_feed":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[3],"tags":[20,42,88,105,128,133,134],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-code-is-poetry","tag-breadcrumbs","tag-elmastudio","tag-php","tag-seo","tag-wordpress","tag-yoast","tag-zuki"],"acf":[],"_links":{"self":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}