Events Made Easy › Forums › How do I … › Use of CSS
Tagged: changing layout
- This topic has 10 replies, 2 voices, and was last updated 4 years, 6 months ago by Anonymous.
-
AuthorPosts
-
Sun 10 May 2020 at 17:48 #61171AnonymousInactive
Hi Franky
As you write in the documentation about “Changing the layout: CSS”, I have created a file eme.css in the child-theme directory. I have changed the background-color for .eventless-today in yellow. But it is still gray in the front-end. When I look at the inspector I see that the eme.css in the child-theme directory is override by the eme.css of the plugin.
So what can I do to have the wanted background-color?
Best regards
Frédéric.Sun 10 May 2020 at 18:06 #61172FrankyKeymasterCan you provide a demo url?
Sun 10 May 2020 at 18:07 #61173AnonymousInactiveSun 10 May 2020 at 21:33 #61174FrankyKeymasterIt seems you’re using an optimize plugin, can you try without that first?
Sun 10 May 2020 at 21:55 #61175AnonymousInactiveI have a local site with MAMP where I have desactivated Autoptimize and WP-optimize. I used also Asset Cleanup : Page speed which permit to unload some js and css files according the needs. On the page wher I load EME I have gray and on the page I unload eme.css I have yellow. When I desactivate the Asset Cleanup plugin. On all the pages I have the gray background-color.
Do I need to do the same thing on the real website. It could be also the theme because when I use the adaptative css of the theme Poseidon I have the same pb my css is override by yours.Sun 10 May 2020 at 22:31 #61177AnonymousInactiveI disabled autoptimize and wp-optimize. You can compare the page “Our yachts” and “Scheduled sailings” on my website.
Sun 10 May 2020 at 23:00 #61178FrankyKeymasterI’m not sure on how/where you add the eme.css from your child theme, because it isn’t there: there’s only 1 eme.css file loaded on https://vogue-et-reve.fr/planning/ .
What I do see is that you (or your theme) seem to be using inline css for the override, but you’re not specific enough You’re just using ‘.eventless-today’ while you should be using ‘table.eme-calendar-table td.eventless-today’Mon 11 May 2020 at 08:35 #61179AnonymousInactiveYou are right : on my website I have not still used a second eme.css in theme directory but only the custom CSS of my theme. I use now the complete style you have given me and all is as I wanted. Thanks a lot Franky.:-)
Wed 13 May 2020 at 09:00 #61176AnonymousInactiveSo on the website you can check know I have desactivated Autoptimize and WP-Optimize. You can compare this link https://vogue-et-reve.fr/nos-voiliers/
and this one https://vogue-et-reve.fr/reservations-navigations/
.eventless-today from eme.css plugin EME overwrites my other parameters ?Wed 13 May 2020 at 10:48 #61196FrankyKeymasterThere is an event planned today on your calendar, so it is not “eventless-today” but “eventful-today”
Wed 13 May 2020 at 22:02 #61197AnonymousInactiveThanks, Franky. I had seen it and I chose the colour orange in this case.
If you didn’t see this color it might be because of the cache. I don’t load all EME js and css on some pages to lighten them. I don’t know if it’s a good choice. -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.