Background color CPL
-
Hi, background colors of pages wonโt work with custom phone layouts for a page I am working on. Does anyone know why? I see that the color is set in CSS but it will be overwritten by background-color: transparent; If I deselect transparent the desired color will be visible but I donโt know where to overwrite this transparency in custom CSS and why it is in place at all.
-
Richard Global Moderatorwrote on Apr 12, 2022, 4:41 AM last edited by Richard Apr 12, 2022, 12:41 AM
Dear @emgeoffice
Transparent is usually a default. Unsure of your setup but the colour may be defined in the Gridder settings or in Customize:
Customize > Background > Background Color >
Or within the Gridder:
"background colors of pages wonโt work with custom phone layouts for a page"
I was unable to recreate this bug within my own Custom Phone Layouts:
#custom-phone-grid, .cover-region-phone .cover-inner { background-color: #900202; }
Are you able to post a link or any relevant info?
Possibly the main Background color defined within Customize is overriding the color set within your Gridder?If you are using Custom CSS and find you cant override the native Lay Theme CSS there is always the
!important
property but this should be used wisely.
Hope this helps @emgeoffice & have a wonderful day ๐ป
Richard
-
Hi Richard, thank you for your reply! It worked for me to set a general background color in the customizer. Still this might be some kind of bug as the background color per page does not work on some CPL pages? Because if I set a custom background color per page on desktop pages it works just fine. Also it works when I do not create a CPL page but just leave the default mobile version of any desktop page. Unfortunately I cannot share a link with you at this stage of the development. I still hope you somehow get what I am saying :D :/
-
Dear @emgeoffice
"I still hope you somehow get what I am saying :D"
I understand ๐ The only trouble i have is, i am trying to recreate this bug on CPL's and cannot, and therefore cant test the bug and it's source. Desktop Layout and Mobile Layouts show their respective colours:
Do you think it's anything 'Non - LayTheme' ?
Are you able to test this is an updated Vanilla Lay Theme environment?
Talk soon, best โจ
Richard
-
Hi Richard, thanks for checking as well. Unfortunately I cannot test this further at the moment as I cannot delete this Lay installation and have no other server left for testing. I will keep an eye on it nonetheless. If I find out what was the reason I will let you know here. Maybe I was just doing something wrong elsewhere and therefore inflicting the normal behavior.
-
Richard Global Moderatorwrote on Apr 16, 2022, 4:06 AM last edited by Richard Apr 16, 2022, 12:07 AM
Thanks @emgeoffice ๐
6/6
Need custom programming for your Lay Theme site?
I regularly add new features to Lay Theme for free, based on user feedback. But if you or your client need something more specific, Iโm happy to offer custom paid programming tailored to your project.
Email info@laytheme.com with the subject "Custom paid programming for Lay Theme" and a short description of what you need โ Iโll reply with a cost estimate.
Custom features I build often make it into future Lay Theme updates, so your idea might benefit the whole community.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options โ Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it