Section Doesn't Want To Hide When No Modules are Published Ona Given Page - Question | JoomShaper

Celebrate JoomShaper's Sweet 16 with Flat 35% OFF!

Section Doesn't Want To Hide When No Modules are Published Ona Given Page

Milo

Milo

Helix Framework 3 weeks ago

Hi folks,

I am thinking - is it a Helix Ultimate bug or am I not seeing something: has this light blue wide stripe under the breadcrumbs... on the home page, there's a module inside.

However, I make the module only to show on home page, and yet the stripe shows (it's section background).

And what is more, below there I have another, similar element, but its light blue stripe disappears (the module also is set up to be shown only on home page).

Any ideas why it might be? There are no other modules turned on to be shown on home or /aktualnosci or whatever.

I had one module shown on some other page in this position but I turned it off and the stripe is still on so...

Thanks,

Milo

0
10 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 weeks ago #225116

Hello Milo,

I hope you’re doing well. I’m sorry for the experience you’ve had so far.

To look into this issue more closely, could you please share temporary Super Admin access (inside the hidden content box)? I’ll check this and update you as soon as possible.

Please make sure to keep a full site backup before sharing the credentials, just to be safe.

Best regards,

0
Milo
Milo
Accepted Answer
1 week ago #225584

Can I give you the template json? It seems it just happens with top2 - nothing published there, and yet it shows there without content...

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 week ago #225638

Hi,

It seems you have added the following code in your Custom CSS:

https://cleanshot.com/share/bz0c59fJ

Instead of applying global custom CSS, you may use page-specific CSS for better control.

Also, if you want a specific module to appear only on certain pages, a better approach would be:

  • Duplicate the template style
  • Add the section with the required module position in that template style
  • Then assign the relevant menu items from the Menu Assignment tab

This would provide a cleaner and more manageable solution for handling page-specific module visibility.

Best regards,

0
Milo
Milo
Accepted Answer
1 week ago #225674

Yes but I have another area like that and it disappears.

I do exactly what you have written. And for those pages where the module is not visible, the area - the section - still shows with its structure until module.

For top1 - however - the whole section disappears.

I don't want page specific code, this would be a bit ridiculous and making the CMS really hard to maintain (the content, structure, menus, etc.) - when I give this to the customer, the area should be styled as it is.

Top1 works OK, top2 - does not.

Maybe there's a bug in the Helix framework? That it doesn't hide the section when it is not populated?

Any other position works allright (I mean I didn't check all of them but so far).

Milo

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 week ago #225701

Hi Milo,

As I mentioned earlier, you are currently using global CSS for the section background color. Because of that, even when no module is published in the section, the empty section still appears since the background color rule is being applied site-wide.

This is the main reason behind the issue, as far as I can tell.

That is why I suggested using page-specific CSS instead. Of course, you may ignore that approach if you prefer another method.

Another possible solution would be:

  • Duplicate the template style
  • Create the section only in that duplicated template style layout
  • Then assign the relevant menu items specifically to that template style/position

In this scenario, menu assignment handling would likely work better.

If you have already tried these steps, then unfortunately I cannot investigate further without administrator access, as I need to inspect what is still causing the section to appear.

Thank you for your understanding!

Best regards,

0
Milo
Milo
Accepted Answer
1 week ago #225725

It's not really global because it's an ID for a section.

And like I said - I have another section like that, with similar settings and when I make modules off for the position - the section also disappears. It has to be applied site-wide because I never know where and which page the section will be used for. So it's quasi-global...

I have id="sp-nowosci-wydawnicze" which has top1 position inside, and id="sp-zapowiedzi-wydawnicze" which has top2 position inside

Look at here: https://dev.webastyczny.pl/nmed/ both section here

but look here: (or any other subpage) https://dev.webastyczny.pl/nmed/czasopisma/gabinet-prywatny

id="sp-zapowiedzi-wydawnicze" is still there and id="sp-nowosci-wydawnicze" has disappeared.

Even the modules inside are quite similar as you can see.

I think it should work for both of them similarly, other solutions are workarounds and not real solutions.

Can you check somehow if top2 has some bug in Helix?

0
Milo
Milo
Accepted Answer
1 week ago #225726

I tried to do something like that on some other page, Joomla 5 + latest Helix and there, if there is no content in position, the area shows up anyway - this is strange.

I would think the area wouldn't be visible, the section itself?

Is there a switch for this or something?

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 week ago #225876

Hi,

I have played with top2 position and it works fine at my local.

Best regards,

0
Milo
Milo
Accepted Answer
1 week ago #225993

So does the section disappear for you, the parent stuff when there's nothing in position, or it stays? What's the expected behavior?

On my site I used the page ids so I'm good for now...

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 week ago #225999

Hello,

It disappears, and that’s the expected behavior. That’s why I requested your admin access so I can check where the issue actually is, since it behaves correctly on my end.

Best regards,

0