Hiding Sitewide Header Site Title Area On Just One Page

Permalink
Hello,

I am using the Palette theme for my website. There is a sitewide header area that has a navbar in the center and a place for a site title or logo on the left , and an extra site wide area on the right.

I want to place an image of my site name in the left area and have it appear on every page except for the homepage, because I have that same image displayed larger and I don't want it duplicated here. It looks fine on all of the other pages.

I am new to Concrete5 and fairly deficient in my knowledge of CSS but with some detailed instruction I should be follow the steps.

I found another thread with a similar request, in that thread they gave this code to add to the view.php page
<?php if ($c->getCollectionPath() == '/mobile'): ?>
<!-- header_remove -->
<?php else: ?>
<!-- header_view -->
<?php endif; ?>

I went to the palette theme view.php page and pasted
<?php if ($c->getCollectionPath() == '/index.php'): ?>
<!-- header_remove -->
<?php else: ?>
<!-- header_view -->
<?php endif; ?>

This did not effect the header at all, and honestly I was afraid it was going to block the navbar portion of the header also, and I definitely don't want that to be blocked.

my site ishttp://www.creatinghappiness.net - Please don't mind all of the placeholder content ;-)

Thank you for any help with this!

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Your code needs to go into your header.php file this file is in your palette/inc/ folder..
At the moment you have this
<div class="header-logo col-xs-4 col-sm-2 col-md-2">
                     <?php
                     $a = new GlobalArea('Header Site Title');
                     $a->display();
                     ?>
                  </div>

Change it to this
<?php if ($c->getCollectionID() == '1'): ?>
                  <div class="header-logo col-xs-4 col-sm-2 col-md-2">
                     <?php
                     $a = new Area('Spare Area');
                     $a->display();
                     ?>
                  </div>
                  <?php else: ?>
                  <div class="header-logo col-xs-4 col-sm-2 col-md-2">
                     <?php
                     $a = new GlobalArea('Header Site Title');
                     $a->display();
                     ?>
                  </div>
                  <?php endif; ?>
creatinghappiness replied on at Permalink Reply
THANK YOU SO MUCH!! That worked brilliantly! Exactly what I was trying to accomplish! Thank you so much for your help and for responding so quickly! I really appreciate you! :-D