-
AuthorPosts
-
April 28, 2015 at 2:20 pm #205909
Hi There,
How would i go about have a different masthead image for different pages? I have 4 pages with masthead showing and would like a different background image for each page I thought of just making multiple masthead modules but I find the configuration conditions and CSS confusing.
I have uploaded the 4 images to templates/ja_nuevo/images/masthead-images/ and they are named to match the page they will go on.
Any idea how I go about linking the images to the correct pages?
Thank you,
Dpavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 28, 2015 at 7:09 pm #568724Hi
You can have only 1 masshead module published in masshead position and assigned to the pages where the masshead should be showed and use this code inside Configuration Conditions panel :
[Masshead Itemid="page_id" title="Title" background="image url"]Description[/Masshead]
each one for each page, changing page id
April 29, 2015 at 10:39 am #568800Thanks but that didn’t change the image, just the title and description, whicht i don’t need to do as they already change per page as required. I tested the url and it definitely is correct.
April 29, 2015 at 10:39 am #733893Thanks but that didn’t change the image, just the title and description, whicht i don’t need to do as they already change per page as required. I tested the url and it definitely is correct.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 29, 2015 at 4:12 pm #568851Hi
Ja Nuevo has one standard background masshead image loaded by template.css file in this way
.jamasshead {
background: url('../../../../images/bg-masthead.jpg') no-repeat;
}
So masshead module doesn’t override thisYou can simply change this btw using a Css Class Suffix
Add suffix to your custom.css , for example for contact page you should create this in custom.css file
.contactpage .jamasshead {
background-image: url("../images/payroll.jpg")!important;
}then add the suffix contact page to your contact menu item
This is the resulting page
You can create new class suffixes inside custom.css file for each menu item, changing masshead background image
example: hr-management page
.hrmanagement .jamasshead {
background-image: url("../images/yournewmassheadimage.xxx")!important;
}then add the suffix hrmanagement to the page
Hope was clear
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 29, 2015 at 4:12 pm #733944Hi
Ja Nuevo has one standard background masshead image loaded by template.css file in this way
.jamasshead {
background: url('../../../../images/bg-masthead.jpg') no-repeat;
}
So masshead module doesn’t override thisYou can simply change this btw using a Css Class Suffix
Add suffix to your custom.css , for example for contact page you should create this in custom.css file
.contactpage .jamasshead {
background-image: url("../images/payroll.jpg")!important;
}then add the suffix contact page to your contact menu item
This is the resulting page
You can create new class suffixes inside custom.css file for each menu item, changing masshead background image
example: hr-management page
.hrmanagement .jamasshead {
background-image: url("../images/yournewmassheadimage.xxx")!important;
}then add the suffix hrmanagement to the page
Hope was clear
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by pavit 9 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum