Breadcrumb formatting outside of Elemental
Permalink
I use my own themes in Concrete5.8 which means that the Breadcrumb Design and Custom template doesn't work (it seems it only works with the Elemental theme). I spent a while trying to sort this out and I found a simple solution. Add this code to your css file:
Obviously change the colour if you want and also you don't need the border at the bottom but it's there if you do!
Another frustrating thing I found was that the breadcrumb autonav ignores the Exclude from Nav attribute. I can see the reasoning behind this but it is very annoying if you don't want this but simple to rectify -
Go to Concrete > blocks > autonav > templates > breadcrumb.php
$navItems = $controller->getNavItems(false); // Ignore exclude from nav
Change true to false
I know you are supposed to copy that file to your own blocks folder but I have never managed that with any success! Any tips would be appreciated...
I really hope this helps someone or if anyone has a better and simpler method please let me know!
ol.breadcrumb li { display: inline; } ol.breadcrumb li+li:before { padding: 8px; color: black; content: "/\00a0"; } ol.breadcrumb { border-bottom: 1px dotted #8ad2cc; margin-bottom: 20px; padding-bottom: 20px; }
Obviously change the colour if you want and also you don't need the border at the bottom but it's there if you do!
Another frustrating thing I found was that the breadcrumb autonav ignores the Exclude from Nav attribute. I can see the reasoning behind this but it is very annoying if you don't want this but simple to rectify -
Go to Concrete > blocks > autonav > templates > breadcrumb.php
$navItems = $controller->getNavItems(false); // Ignore exclude from nav
Change true to false
I know you are supposed to copy that file to your own blocks folder but I have never managed that with any success! Any tips would be appreciated...
I really hope this helps someone or if anyone has a better and simpler method please let me know!
Thanks so much, that worked a treat! I was just copying everything over, not just the templates folder and the view.php, which is obviously why it wasn't working!
Yes, copying everything over will throw namespace and class errors
Alternatively, copy the entire autonav block from concrete/blocks into application/blocks and delete everything except the view.php file and the templates folder...
If successful when you visit your environment page in system & seetings you should see these overrides.