Wrapping Theme Help - Fixed header

Permalink 1 user found helpful
Hello C5 community!

I've hit a bit of a road block with this theme I purchased:http://www.ansonika.com/paradise/.... There is a header class with an fixed position. I have to disable the header in order to get the C5 edit bar to show up but then it mucks up the design. I tried using the #mywrapper technique with little luck. The fixed header seems to be a design trend now so I think it would be beneficial to get this figured out for the community at large.

Thanks!

brandonx49
 
VidalThemes replied on at Permalink Best Answer Reply
VidalThemes
Maybe you could do something like this:

<?php  global $u;
$u = new User();
if (($u->isRegistered()) || $c->isEditMode()) { ?>
<style>
body {margin-top: 160px !important;}
header {margin-top: 50px; !important}
</style>
<?php } ?>


the body will be pushed down in edit mode, moving all the content down, and so will the header, so it should stay in proportion.
VidalThemes replied on at Permalink Reply
VidalThemes
forgot to say, just stick that under the opening body tag.
mhawke replied on at Permalink Reply
mhawke
If this theme is an official concrete5 theme, then you need to ask the developer to fix this. If it's not an official C5 theme then C5 can't possibly be expected to fix themes meant for other systems.

That being said, I would do something like this:

<?php 
$p = new Permissions($c);
if ($p->canWrite()){
?>
<style>
header {
top: 49px !important;
}
</style>
<?php } ?>
Enlive replied on at Permalink Reply
Enlive
This should be marked as best answer. Works perfectly!
okapi replied on at Permalink Reply
okapi
More than four years later, still very helpful even on Concrete5 8.2.1.
(top: 48px)

Thank you!
Michael
Steevb replied on at Permalink Reply
Steevb
First thing, it is not a C5 theme, it's from themeforest.

Next thing is, if it ported properly to C5 the header will drop in edit mode, regardless of whether it is fixed or not.

So, if you cannot see the edit bar you need to look at the converted code.

Do you have all the right files needed?

Do you have a footer.php?

Do you have
<?php  Loader::element('footer_required'); ?>
in the footer.php?
VidalThemes replied on at Permalink Reply
VidalThemes
Its not a crime to buy a theme from elsewhere and convert it to concrete5, the guy made no claim at all that he purchased the theme from C5, just said he was having problems with a theme he purchased with a fixed header and getting it to play nice with the edit bar.
mhawke replied on at Permalink Reply
mhawke
Sorry if my response sounded 'snippy'. I thought the OP was expecting C5 to handle this automatically but upon re-reading the original post, I may have mis-interpreted his words. Sorry, no harm intended.
Steevb replied on at Permalink Reply
Steevb
I answered the question 'is this an official Concrete5 theme'.

I mentioned porting, it can be tricky!

I then asked if the right files were in place?

Only trying to help?