Changing a universal theme element on a single page!

Permalink
Ok, this is a bit of a complex one! First off, this is my site:http://crimsonnight.com/ and I've used the Silence theme (http://www.concrete5.org/marketplace/themes/silence/) as the foundation for my site. One of the theme options is a breadcrumb trail at the top of the game which I'm very happy with. The only thing is, it's pointless having it on the homepage, instead I'd prefer something similar to the footer, ie a link to every top-level page on the site. So I guess I'd either go about this by changing the way the breadcrumb script behaves on the homepage, or hiding it on the homepage and inserting a nav block. Am I on the right track? If so, how do I go about executing it? Thank you!

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Homepage cID is 1, so if you need to put hide homepage, just put a simple condition on your breadcrumb code.

$page = Page::getCurrentPage();
if($page->getCollectionID() != 1){
   //Your breadcrumb code goes here..
}


Rony
crimsonnight replied on at Permalink Reply
Ah perfect, thank you! Sorry for being a concrete5 n00b, but where would I find the breadcrumb code? I've worked out how to edit the CSS through concrete but not any base code as of yet...
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Well I'm not sure about the page name, but it should be under packages/themes/silence/elements/header.php

Maybe elements isn't there instead include or any other folder name.

Rony
crimsonnight replied on at Permalink Reply
Managed to track down header.php but can't see anything about the breadcrumb section there...
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Maybe there is any separate file for breadcrumb. Try to search with the keyword "Breadcrumb".
crimsonnight replied on at Permalink Reply
I can't find an option to search but I've tried all the folders that made sense and didn't have much luck - would you mind 'inspecting' the element on my site for me and finding it that way? I'm not getting very far myself
crimsonnight replied on at Permalink Reply 1 Attachment
Thanks, I got it to work, found it in the relevant page layout file :)
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Great, now simply put that conditional code there very carefully. It will work.