Page 1 of 2
Phoca top menu module - toggle joomla menu off by default?
Posted: 01 Oct 2024, 10:51
by fabio42
Hello!
I didn't know where to post this as there is no section in the Phoca Forum dedicated to the Phoca Top Menu module.
I am delighted with this menu, which allows me to find my "former" joomla back.
Yet, as I have this menu now, can you tell me if there's a trick to toogle the default Joomla menu off (on the left) as it is of no use to me now... Joomla doesn't seem to offer this possibility ot else I haven't found it yet. Does it mean we have to hack the core files? and how? Any idea?
Thanks for your help!
Fabio
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 01 Oct 2024, 14:54
by christine
Hi Fabio,
1)
Maybe this is enough - then there is only a narrow part:
2) And/or:
Code: Select all
#sidebar-wrapper.sidebar-wrapper.sidebar-menu {
display: none;
}
Normally in the user.css created by Cassiopeia (administrator).
You might want to create a custom.css.
Kind regards
Christine
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 02 Oct 2024, 14:01
by fabio42
Hello Christine!
You mean in the user.css file for the Atum template ? Because Cassiopeia is for the front end... and what I'm talking about is the menu that is on the administrator side. Yet, I tried to insert the code in the user.css file of the Atum template, and it does not toggle the menu off BY DEFAULT. Actually, this does not have any effect at all. There's no way to recompile the css in the template on the admin side.
Any idea then?
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 02 Oct 2024, 15:53
by christine
Hi Fabio,
Yes, of course I mean the Atum template. I wrote too quickly. No wonder after this (other) long thread where these words often appeared: cassiopeia vs. gantry...
I have now temporarily tested:
a) a user.css in Atum, i.e.: css > create user.css
b) entered the above code (1st post) there.
c) refresh (clear cache)
d) It works. Result:
I will ask Jan if he can move this thread to: Phoca modules.
Kind regards
Christine
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 02 Oct 2024, 16:45
by fabio42
Ok, I did not clear the cache, that's why. Yet, what you suggest is remove the full left menu. What I would have preferred was simply to have it toggled off (with just the icons) on the left. Possible?
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 02 Oct 2024, 18:52
by christine
fabio42 wrote: ↑02 Oct 2024, 16:45
Ok, I did not clear the cache, that's why. Yet, what you suggest is remove the full left menu. What I would have preferred was simply to have it toggled off (with just the icons) on the left. Possible?
Difficult because a lot of things depend on it. For example, removing the title next to the icons would also affect the top module etc. Therefore, I changed the width:
Code: Select all
#sidebar-wrapper.sidebar-wrapper.sidebar-menu {
max-width: 2.9rem;
}
Kind regards
Christine
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 03 Oct 2024, 14:34
by Jan
Hi,
Phoca Top Menu only displays different menus in custom top position, so it does not have any tool to influence Joomla system. I am not sure (didn't test), but maybe there is some way to hide default menu in Joomla administration (maybe some module option, or administration menu option).
Jan
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 03 Oct 2024, 16:08
by christine
Hi,
Jan wrote: ↑03 Oct 2024, 14:34
... maybe there is some way to hide default menu in Joomla administration
Yes, that is possible. Deactivate the admin module. But then you still have the first row: "Toggle Menu".
You would then have to remove the icon using CSS (it works). But also the title. As I said above:
.... removing the title next to the icons would also affect the top module etc ....
That's why it is "covered" with the above code.
Kind regards
Christine
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 03 Oct 2024, 18:42
by fabio42
Hey everyone!
While we were having this conversation I had also thrown a bottle in the sea on the Joomla Community Forum and got a response.
This is what they suggest and it hit the jackpot. With flying colors.
Here's the post in case:
https://forum.joomla.org/viewtopic.php? ... 0#p3732250
Thanks A LOT anyway for your suggestions!
Re: Phoca top menu module - toggle joomla menu off by default?
Posted: 03 Oct 2024, 19:39
by Jan
OK