I applied position: fixed to a block and now the front end won't edit it

Permalink
Hi, I created a blog athttp://eaware.ca/index.php/blog... and made a layout with a left side menu. The menu items all point to anchors on the same page. I added position: fixed to a content block there and now I can't open it in the front end editor. I'm using the Supermint theme and concrete5 8.2.1
I'm looking into using Composer to try and edit it away from the front end but no luck yet.
What happens is that in Edit mode I hover over the block and the Column 1 tab appears, but the Edit This Block sub menu does not. Even in Edit mode the block stays in place when I scroll the page because of the position: fixed styling.

Any ideas will be greatly appreciated!

1 Attachment

 
JohntheFish replied on at Permalink Reply
JohntheFish
Any such positioning should be added in a way that does not apply in edit mode, or you will experience the inability to edit you have just created.

You may be able to recover by entering the dashboard sitemap, reverting the approved page version and deleting the broken page version.
twoten replied on at Permalink Reply
I wasn't able to do that, so I used phpMyAdmin to find the database entry and change it to position: static. That worked and I found that I had added the styling in the Design And Custom Template under Additional CSS. So I took it out of there and added a DIV wrapper with the position : fixed as the div's style. But then I couldn't edit it again! So I discarded the changes and now I'm wondering, how do I add position: fixed to a block without losing it in the front end editor?
JohntheFish replied on at Permalink Reply
JohntheFish
If its an html block, use my safe html template (free in marketplace) and add style in an outer div within the block.

https://www.concrete5.org/marketplace/addons/safe-html...

In most recent c5, there is a css class applied to the doc body in edit mode. You can use that in your css to remove the fixed position in edit mode.

Or you can create your own custom template for a block with the fixed position conditional on not being in edit mode.
twoten replied on at Permalink Reply
That sounds good and I'll check it out. I also thought of assigning an ID to that block and in Additional CSS set the position as fixed. Then when I need to edit that block, which is not very often, I change the CSS to static then back again after editing. Thanks for your help!