Replies: 6 comments 9 replies
-
I can't help how WP works :-) But you can put all your extra css in the eme.css file, doesn't that work? |
Beta Was this translation helpful? Give feedback.
-
Thanks I will test |
Beta Was this translation helpful? Give feedback.
-
Yes, everything can be put in eme.css
|
Beta Was this translation helpful? Give feedback.
-
It seems that the WP CSS code for my child block theme is not taken into account if it is in eme.css, for example for the menu. Only EME CSS code is Ok. |
Beta Was this translation helpful? Give feedback.
-
For example, this CSS doesn't work in eme.css /* Styles for WP menu all items */
.wp-block-navigation .wp-block-navigation-item__content {
font-size: 17px;
margin-right : 10px;
padding-right: 10px;
color: Black;
background-color: azure;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
color: blue;
background-color: LightGreen;
}
/* styles specifically for WP sub menu items */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
font-size: 15px;
color: Black;
background-color: azure;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
color: blue;
background-color: LightGreen;
}
.wp-block-buttons>.wp-block-button.wp-block-button__width-100 {
flex-basis: 70%;
width: 80%;
} It aplies to the block navigation |
Beta Was this translation helpful? Give feedback.
-
In the eme.css file it should work as well. It all depends on when/how your theme css-settings are loaded. So feel free to put it in eme.css too and demo then. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have CSS code for EME pages in several places:
1- in the Additional CSS part of my child theme Twenty Twenty Four, which also contains CSS code for WP
2- in the two files eme.css and eme_print.css, in my theme directory, to manage the display and printing of #_EVENTPRINTBOOKINGSLINK
Is it possible to improve and simplify this all this? In particular, the additional CSS part of the theme is not very user-friendly
Beta Was this translation helpful? Give feedback.
All reactions