-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full page background separate for every menu item #3171
Comments
@Kordolio I have replied to you in a thread in the chat room for Gantry 5 here: |
Well this address leads to a strange page where I am asked to install several programs. I chose one and opened it in the browser, see a chat,but no answer to my question... |
@Kordolio Try using a Laptop/Desktop, not on a mobile. It will open the thread where I discussed this with someone previously. |
I am doing it on a laptop. I am choosing "Element", then continue with browser and get a strange error Laden der Verlaufsposition fehlgeschlagen, Das Laden einer bestimmten Stelle im Verlauf des Raumes zu laden ist gescheitert, da sie nicht gefunden wurde. |
@Kordolio This link should work. It is to the original message in the room, not a message contained in a thread. It seems to have an issue with the thread. Apologies, but I'm just a volunteer, and don't have the time right now to go through the thread and copy everything out. Just be sure to read all conversation in the thread. |
@N8Solutions thank you, it is working now. However this does not solve my problem. I am no programmer and I am just a beginner to css, but I assume I need to write something in the css file to let the system know, where I would like to have which background. |
Or maybe like that? |
OK, you will not believe this, but I got this. |
I’m not in front of my computer at the moment, but I can tell you you’re
making this more work than it needs to be. Please review what I told you in
the thread where you can use the menu item ID as the class and put all your
CSS for that menu and for the full body image inside that class. Then
repeat for each menu item that you want to have a different background
image.
…On Fri, Aug 18, 2023 at 11:54 Kordolio ***@***.***> wrote:
OK, you will not believe this, but I got this.
body.menu1
Thank you!
—
Reply to this email directly, view it on GitHub
<#3171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC6Q2POODXJU2LNU34ILTTLXV4UVZANCNFSM6AAAAAA3SRATIE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you, but it is easier for you to say, than for me to do :-) |
OK, you are going to need to learn how to use the "inspection tools" of your browser to be able to "inspect" your website so you can see how things are working and be able to figure out if something is not working as it should. With that said, with Joomla, you can see the "ID" of the "Menu Item" from the administrative side. It will be the far right column. So if your "Home" menu item has an ID of 121, then the CSS ID to target will be Besides looking in the admin area, you can "inspect" the website and find it from the front end. I've included pictures so you can understand where to look. I can't tell you what your Menu Item ID's are, you are going to have to figure that out for yourself because they will differ on each website. In the above image you can't see the Item ID, but if you double click in that area, you will be able to see it as I've highlighted here. The ID I can provide you with an example styling code for a menu item and you can see if that works for you once you enter your Menu Item ID. You will need to enter the css in the
FYI, The URL line is for the Joomla images folder. So where I have If you don't change the opacity of the sections on the website to transparent, the background image will not show up. So make sure you make those changes. You can do that under the "Styles" tab in the Gantry admin. |
Thank you very much, it was a great help. |
@Kordolio If you look at the URL after clicking on any of the gallery catalogs listed on the "Nature" menu page, it switches to "Landscape". But by clicking on "Fungi" for example, it switches to Landscape. So this has something to do with the way you have setup the Phoca Gallery and is not a Gantry 5 issue. Hope this helps! |
Hello, what if I wanted to have a separate full background image for every menu item?
This solution works for the body of all menus:
body {
background-image: url('../../../../image/_DSC0002edit1.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
background-attachment: fixed;
}
and I added it to the
/templates/#template/scss/nature/styles/_core.scss
but then I have one background image for the entire page.
Thanks for help!
The text was updated successfully, but these errors were encountered: