-
AuthorPosts
-
October 25, 2014 at 1:55 pm #132153
Glad to hear that,
Cheers
December 31, 2014 at 1:26 pm #174243I have had success moving my customizer css to the child theme. The .site tip really helped. The only section that does not work in the child css is this:
select, textarea,
input[type=”password”],
input[type=”datetime”],
input[type=”datetime-local”],
input[type=”date”],
input[type=”month”],
input[type=”time”],
input[type=”week”],
input[type=”number”],
input[type=”text”],
input[type=”email”],
input[type=”url”],
input[type=”search”],
input[type=”tel”],
input[type=”color”],
.uneditable-input, input.plus, input.minus {
color: #fff;
}Is there something I could add to that input so it will work in the child theme css so I can move it?
Thanks!
December 31, 2014 at 10:18 pm #174394Hey there,
Add !important declaration like
color: #fff !important;
Hope that helps. 🙂
January 1, 2015 at 12:46 am #174431Hey!
Happy New Year.
Sorry, it didn’t work.
January 1, 2015 at 7:01 am #174490Hi Sye,
I have just tested the CSS in your website’s style.css file and it’s working just fine even without !important declaration. Please try adding the code above all of the styling (see: http://prntscr.com/5n8fqu).
Also, I checked your style.css file and it seems you have added PHP code in the CSS file (see: http://prntscr.com/5n8fm0) please remove it and it could case problems as well.
Thanks!
January 1, 2015 at 8:23 am #174510Odd, must have been a chached issue. It did not work at first when I moved it again, but after a few refreshes it worked.
I removed the PHP from the CSS file, but trust me, I did not add it. It was there when I first opened the Child Theme CSS file. I would not know how to write such PHP, or where to get it from 🙂
Thanks again, and Happy New Year!
January 1, 2015 at 10:45 am #174564Hi there,
Glad you got it to work! Feel free to contact us again if ever you need more help. Happy New Year!
July 27, 2015 at 12:02 am #341342Hi,
I am having a similar problem now. I’m trying to make it so the submenus ul elements dont have any padding. I got it to work using the following code in the cornerstone custom CSS.desktop .sub-menu{ padding:0; }
However, this only applied to the page I was editing and I dont want to add those lines to every single page, I want it to apply on my whole website just adding the code on my style.css file.
Link to website: https://104.156.237.188/~mamachanguito/wp/
Adding that code did nothing, and I could not find it referenced in the devtools when inspecting the sub-menu item. I then tried adding this code.
.x-nav-wrap ul { padding:0; }
Now when I inspect the sub-menu item I do see thoses lines but they’re crossed out. So they’re being overriden by somehting else. I have tried adding the .site class or refering to it in many other ways but can’t seem to get it to work. What could I do to refer to that css element in my child theme’s styles so it actually overrides the ones set by the parent theme.
thanks!
Edit: Got it working, somehow.. Added #top to both selectors and it works. If I remove any of the selectors it doesn’t. It seems kind of messy to me to be honest, would still like to understand whats actually happening and why I need both selectors so that it wont take so long in the future to properly select css elements to customize.
July 27, 2015 at 1:48 am #341444Hello There,
Thanks for updating this thread!
Adding #top is the best way to do it because there are already css applied to the element. having #top made your code a priority and thus overrides any other css code previously define.
Thanks for letting us know that you have figured it out to resolve the issue. If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
-
AuthorPosts