When I recently started working on the relaunch of Wpscoop I chose Pagelines as the WordPress theme for the new blog. Since I also had installed the WordPress SEO plugin by Yoast, which I deem to be one of the most important plugins for a new weblog by the way, I was eager to integrate its breadcrumbs feature into Pagelines as just one more small step to SEO-optimize WPscoop. Breadcrumbs are small links that are usually placed above the post title in the format “Home > Category > Current Post” and they are good for two things: To help the user navigate your site and to improve SEO by allowing search engines to understand your site structure better.
The WordPress SEO plugin includes a feature to output said braidcrumbs, however it is necessary to add code to your theme to display them on your site. A quick research showed that the Pagelines theme has no integrated functionality to output the breadcrumbs and the solution available requires that you install an additional plugin (Breadcrumb NavXT) as well as an addon to Pagelines (which requires a paid Pagelines Plus account).
Since that was too much for such a small task for my taste I quickly wrote the necessary code, which amounted to only 7 lines in total, myself and decided to release it here in case it proves useful for others. Because it is a small plugin updates to Pagelines will not remove the code or cause problems. To add breadcrumbs to the Pagelines theme now follow the instructions below.
Add Breadcrumbs to the Pagelines Theme in 2 Simple Steps
- If you haven’t already install WordPress SEO by Yoast. Then go to the “Internal Links” page in your admin area and check “Enable Breadcrumbs” there. You will also want to enter a Separator and a Taxonomy to show in the breadcrumbs, most likely your categories for posts.
- Download my tiny Pagelines Breadcrumbs plugin (1kb) and install it on your weblog. The plugin will add the breadcrumbs to all single posts and pages – you can see an example of it in action above the title of this post. Please note that while I designed it for Pagelines it should actually work with all other themes as well.
That’s all there is to it. If you have any problems or questions leave a comment and I will answer.
Photo Copyright 123RF Stock Photos