Popup layers hidden - page not scrollable - Cannot add block
Permalink
Hey there,
I recently designed my new website design and made a concrete5 theme out of it. Now I have the problem, that, if I create a new block, the popup layers appear anywhere on the whole page. If I already added content to the page, the popup layers will appear somewhere downwards, but I am not able to scroll to the layer as concrete5 disables scrolling while editing. Does somebody of you know the reason for this?
I also attached the github repository of my theme:
https://github.com/sballinone/worldofsb_c5/blob/master/default.php...
Best regards,
Saskia
I recently designed my new website design and made a concrete5 theme out of it. Now I have the problem, that, if I create a new block, the popup layers appear anywhere on the whole page. If I already added content to the page, the popup layers will appear somewhere downwards, but I am not able to scroll to the layer as concrete5 disables scrolling while editing. Does somebody of you know the reason for this?
I also attached the github repository of my theme:
https://github.com/sballinone/worldofsb_c5/blob/master/default.php...
Best regards,
Saskia
If you look in your browser console, are there any javascript errors?
Hello,
nope, it seems that the popup is hidden somewhere on the page but I cannot scroll down there. Like, if the visible height = 700px and the page height = 3000px, that c5 calculates the mid of the 3000 (=1500px) to place the popup and not the visible height.
Best regards,
Saskia
nope, it seems that the popup is hidden somewhere on the page but I cannot scroll down there. Like, if the visible height = 700px and the page height = 3000px, that c5 calculates the mid of the 3000 (=1500px) to place the popup and not the visible height.
Best regards,
Saskia
Something important: your namespacing in the file page_theme.php is not correct. You have
but the folder containing your theme is worldofsb_c5 so the namespace should be
I don't know if it's going to make a difference but using Loader::element('footer_required') is deprecated you should have View::element('footer_required') and the same for header_required
Another problem is the way you are calling jQuery. That's probably not going to be the source of your problem but if you do it like this, when not in edit mode, jquery is going to load twice: yours and the core one.
Finally, you might have some CSS interfering with the popup
namespace Application\Theme\worldofsb;
but the folder containing your theme is worldofsb_c5 so the namespace should be
namespace Application\Theme\WorldofsbC5;
I don't know if it's going to make a difference but using Loader::element('footer_required') is deprecated you should have View::element('footer_required') and the same for header_required
Another problem is the way you are calling jQuery. That's probably not going to be the source of your problem but if you do it like this, when not in edit mode, jquery is going to load twice: yours and the core one.
Finally, you might have some CSS interfering with the popup
the last thing, also not related to your problem.
In your default.php, towards the bottom you have
So if those 2 areas are set to show only when the page is NOT in edit mode, you might have a problem to add anything to them, unless you do it programmatically?
In your default.php, towards the bottom you have
<?php if(! $c->isEditMode()) { ?> <div id="nav-notif"> <?php $a = new GlobalArea('Search'); $a->display($c); ?> <?php // ul > li > lang name $a = new GlobalArea('Language Menu'); $a->display($c); ?> </div> </div> <?php } ?>
So if those 2 areas are set to show only when the page is NOT in edit mode, you might have a problem to add anything to them, unless you do it programmatically?