{"id":838,"date":"2015-05-27T22:31:09","date_gmt":"2015-05-27T16:31:09","guid":{"rendered":"http:\/\/promincproductions.com\/blog\/?p=838"},"modified":"2015-05-27T22:31:09","modified_gmt":"2015-05-27T16:31:09","slug":"breadcrumb-titles-magento-fishpig-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/promincproductions.com\/blog\/breadcrumb-titles-magento-fishpig-wordpress-plugin\/","title":{"rendered":"Breadcrumb Titles &#8211; Magento Fishpig WordPress Plugin"},"content":{"rendered":"<figure id=\"attachment_843\" aria-describedby=\"caption-attachment-843\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs.jpg\" rel=\"attachment wp-att-843\" data-lasso-id=\"379\" data-rel=\"lightbox-gallery-fizJrMsS\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" class=\"size-medium wp-image-843\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs-500x378.jpg\" alt=\"Correctly set your WordPress blog home breadcrumb in Magento\" width=\"500\" height=\"378\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs-500x378.jpg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs-150x114.jpg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs.jpg 510w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-843\" class=\"wp-caption-text\">How to correctly set the home breadcrumb title for WordPress blog pages integrated to Magento with the Fishpig Integration and Yoast SEO plugin.<\/figcaption><\/figure>\n<p>On a Magento install, I utilize\u00a0the <a href=\"http:\/\/fishpig.co.uk\/magento\/wordpress-integration\/\" target=\"_blank\" data-lasso-id=\"380\" rel=\"noopener\">Fishpig WordPress plugin<\/a> to integrate WordPress into Magento for our blog pages. \u00a0Great little plugin in my opinion.<\/p>\n<p>The issue I ran into however, is that the breadcrumbs on the blog section are not correct\u00a0&#8211; they start with\u00a0<strong>Home \/ Home<\/strong>. \u00a0The good news is that the URLs associated to these text links should be correct. \u00a0For me, the first goes to the Magento site home page, the second to the blog home page. \u00a0But I want to clarify the text that displays.<\/p>\n<figure id=\"attachment_840\" aria-describedby=\"caption-attachment-840\" style=\"width: 134px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Fishpig-WPSEO-breadcrumbs-are-wrong1.png\" rel=\"attachment wp-att-839\" data-lasso-id=\"381\" data-rel=\"lightbox-gallery-fizJrMsS\" data-rl_title=\"\" data-rl_caption=\"\"><img decoding=\"async\" class=\"wp-image-840 size-full\" title=\"\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Fishpig-WPSEO-breadcrumbs-are-wrong1.png\" alt=\"Blog breadcrumbs are not set correctly by default.\" width=\"134\" height=\"38\" \/><\/a><figcaption id=\"caption-attachment-840\" class=\"wp-caption-text\">My Magento store always shows the Home breadcrumb first, even on the blog pages. In addition, the blog pages are creating a second Home breadcrumb that points to the blog home page.<\/figcaption><\/figure>\n<p>I am also using the <a href=\"https:\/\/yoast.com\/wordpress\/plugins\/seo\/\" target=\"_blank\" data-lasso-id=\"382\" rel=\"noopener\">Yoast SEO plugin<\/a> within this WordPress install. \u00a0I tracked this to be the root of the issue. \u00a0The sad truth however, is that I can&#8217;t find any way to correct this in the WordPress Admin. \u00a0That said, it is possible to fix this directly in the Database.<\/p>\n<p>NOTE: If you are not\u00a0familiar with or\u00a0comfortable with working in the database, I highly advise you find someone who knows <strong>what<\/strong> they are doing here to help you out. \u00a0It&#8217;s very easy to break your site in the Database if you aren&#8217;t careful.<\/p>\n<p>Ok, my disclaimer said, time to jump into the database. \u00a0;) \u00a0You need to find your WordPress tables within the database. \u00a0When you setup a Fishpig install, you can use the same database as Magento or a separate database &#8211; so the exact location may carry for you. \u00a0For me, I&#8217;m using a second database name wp_{site identifier here}.<\/p>\n<p>Once in the WordPress database, find the wp_options table and search the\u00a0<strong>option_name<\/strong> for\u00a0<strong>wpseo_internallinks<\/strong>. \u00a0Edit this record. \u00a0The <strong>option_value<\/strong> field is the one of importance here. \u00a0It should look like:<\/p>\n<pre><code>a:10:{s:20:\"breadcrumbs-404crumb\";s:25:\"Error 404: Page not found\";s:23:\"breadcrumbs-blog-remove\";b:0;s:20:\"breadcrumbs-boldlast\";b:0;s:25:\"breadcrumbs-archiveprefix\";s:12:\"Archives for\";s:18:\"breadcrumbs-enable\";b:0;s:16:\"breadcrumbs-home\";s:4:\"Home\";s:18:\"breadcrumbs-prefix\";s:0:\"\";s:24:\"breadcrumbs-searchprefix\";s:16:\"You searched for\";s:15:\"breadcrumbs-sep\";s:7:\"&amp;raquo;\";s:23:\"post_types-post-maintax\";i:0;}<\/code><\/pre>\n<p>You&#8217;ll see the word\u00a0<strong>Home<\/strong> here about 1\/2 way into the string &#8211; that&#8217;s the text that we want to change, which is the second instance of <strong>Home<\/strong>\u00a0in the breadcrumbs. \u00a0So change that to what you&#8217;d like it to say. \u00a0In my case, I just changed it to\u00a0<strong>Blog<\/strong>.<\/p>\n<p>And now you&#8217;re ALMOST done. \u00a0There&#8217;s one catch &#8211; this string of text is what is called a serialized array. \u00a0What that means isn&#8217;t overly important, but what we do need to know is that you&#8217;ll see the s:4: just before the Home text we just changed. \u00a0That\u00a0<strong>4<\/strong> represents the number of characters in the word\u00a0<em>Home<\/em>. \u00a0So this needs to be corrected to reflect the number of characters of your new link title. \u00a0In my case, I used\u00a0<em>blog<\/em> and thus that is 4 characters and now change is needed. \u00a0If you chose to use\u00a0<em>Blog Home<\/em>\u00a0you should change it to 9 &#8211; 4 characters per word plus a space. \u00a0Makes sense, right?<\/p>\n<p>Make sure that these changes have saved to the database and refresh your blog page &#8211; this change should now be all done.<\/p>\n<figure id=\"attachment_842\" aria-describedby=\"caption-attachment-842\" style=\"width: 110px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Fishpig-WPSEO-breadcrumbs-are-fixed1.png\" rel=\"attachment wp-att-842\" data-lasso-id=\"383\" data-rel=\"lightbox-gallery-fizJrMsS\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" class=\"size-full wp-image-842\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Fishpig-WPSEO-breadcrumbs-are-fixed1.png\" alt=\"Correctly set the blog home breadcrumb value for a WordPress integrated Magento blog.\" width=\"110\" height=\"41\" \/><\/a><figcaption id=\"caption-attachment-842\" class=\"wp-caption-text\">Making one simple database edit will correct the WordPress breadcrumb to the home page. Unfortunately the Yoast WordPress SEO plugin doesn&#8217;t offer the option to set this text within the WordPress Admin.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>On a Magento install, I utilize\u00a0the Fishpig WordPress plugin to integrate WordPress into Magento for our blog pages. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_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_post_was_ever_published":false},"categories":[46,5,9],"tags":[],"class_list":["post-838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento","category-website-development","category-wordpress-development"],"jetpack_featured_media_url":"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2015\/05\/Magento-Wordpress-Breadcrumbs.jpg","jetpack_shortlink":"https:\/\/wp.me\/p4BbcR-dw","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/comments?post=838"}],"version-history":[{"count":1,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/838\/revisions\/844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media\/843"}],"wp:attachment":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media?parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/categories?post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/tags?post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}