Header Navigation: Cannot select in Edit Mode

Permalink 1 user found helpful
Hi all,

I am still a newbie with c5. I have the following problem:
I enter Edit mode and see my header navigation with its standard typography style (the red dotted border) but I can`t select it. Anybody had this issue before? I am not sure why...

Any hints or comments or sth. like that are welcome.

Thx,

StayArrr

 
ScottC replied on at Permalink Best Answer Reply
ScottC
yes, this has always been a z-index issue.

if you want, open up header.php or however you have set your theme, then add:

<?php 
if($c->isEditMode(){ ?>
<style type="text/css">
.conflicting-element{ z-index:0; } //whatever is the wrapper for what you can't click.
</style>
<?php } ?>
StayArrr replied on at Permalink Reply
Thx for your reply.

Hm... As you say, I just need to put it into the right location and changing the style. Hm, doesen`t work :/

<div id="headerNav">
         <?php 
         $a = new Area('Header Nav');
         $a->display($c);
         ?>
         <?php 
            if($c->isEditMode()) { ?>
               <style type="text/css">
                  #headerNav{ z-index:100; }
               </style>
         <?php } ?>
      </div>


I still can`t click. I double checked that the element is the right!

EDIT: It works, thx alot to the reply ;)
tracklineamerica replied on at Permalink Reply
I am going through the same thing right now. I just copied your little script into the headerNav div and I still can't click, as you originally couldn't. How did you reach the aha! moment?

Thanks.
StayArrr replied on at Permalink Reply
Hi,

As far I can remember:
I checked z-index of the default css-property. I had the problem that the z-index was more than 100 in default, so it couldn`t work. (if i remember right)
And then... I cleared cache! Thats was important to see a result.

You cant click the header-area?
Where do you put the z-index-fix-script?

I put it after creating the header instance:
$a = new Area('Header Nav');
$a->display($c);
// now the fixer


and then added the script from above. I hope this helps?!
tracklineamerica replied on at Permalink Reply
yeah what's the deal with the cache!? i have to clear it constantly. I am working in chrome. I always get the "Access denied" message. Ugh!

I can edit the header fine. it is the headerNav I have troubles editing.

what I do now is move whichever headerNav widget out of the headerNav and then edit it and then put it back into the headerNav.. after clearing cach a couple dozen times.