adding editable region to footer.

Permalink
I have tried adding an editable region to the footer.php file using:

<div class="foot-col-one">   
         <?php 
         $a = new Area('Footer Column One');
         $a->display($c);
         ?>   
      </div>


However, whereas the same code used in the default.php file works, when putting the page into edit mode, then the region in the footer is not editable.

Any suggestions?

kelbyuk
 
cgrauer replied on at Permalink Reply
cgrauer
What means "not editable"? Do you see the link "Add to..."? Can you select and edit a blocktype? Or is there just nothing? Do you find the area's div and/or the "Add to..." link in the html source? Try to put the code in the default.php, add some blocks, move it back to the footer.php: do the blocks appear on the page?

I tried your code on one of my sites and it worked perfectly.
kelbyuk replied on at Permalink Reply
kelbyuk
I can see the add to link, however it isn't selectable so you cant get the block type pop up as you can with the same code in the default.php file.
cgrauer replied on at Permalink Reply
cgrauer
This seems to be a problem with html code or css styles in the page that somehow "overlap" the link. You should try to validate your code as much as possible.
kelbyuk replied on at Permalink Reply 1 Attachment
kelbyuk
checked the css, no joy..

http://www.baileyshairgallery.co.uk.php5-17.websitetestlink.com/...

is the site in question, the editable regions I am having issues with are in the 2 dark grey blocks at the bottom.

The links in edit mode show the blue color on rollover, just they aren't clickable and the mouse pointer doesn't change on rollover.

i've attached the theme zipped in case it helps.

i've also added a test login: concrete5 concrete5 so you can see what I mean.

Thanks for your help with this!
triplei replied on at Permalink Reply
triplei
You may want to try dropping the z-index on the footer down to say around 6. We've run into this problem with the z-index before. Worth a shot.
kelbyuk replied on at Permalink Reply
kelbyuk
Tried reducing the z-index but still no luck. Using Firebug shows the same stuff for one that works and the ones that don't.
triplei replied on at Permalink Best Answer Reply
triplei
I just tried changing the z-index of #footer-wrapper to 3 and that let me click to add a block to the area. It doesn't seem to affect the layout / display of the footer either so it should be a good fix for you.

Let me know if that does the trick.

Cheers
kelbyuk replied on at Permalink Reply
kelbyuk
Yes changing the z-index to 3 did the trick.

Thanks for the help with that one :)