I have this working for the menu link color:
a.navPage-subMenu-action.navPages-action {
color:#ffffff;
}
I searched on here for a solution, and it would appear that it's as simple as:
a.navPage-subMenu-action.navPages-action:hover {
color:#ffffff;
}
But that is not working. It is a BigCommerce site and I am trying to change the color from the existing red (on hover). The hover color wouldn't be white - I'm only using that for testing to see if the red goes away.
try using the !important tag this should override your themes product hover.
Related
I am working on Tables using antD. By default, whenever you hover a Table Row in antD it gets a slight gray color transition as a highlight. I wish to change the color. I did this using less:
.ant-table-row {
&:hover {
background-color: blue;
}
}
(NOTE: the actual color doesn't matter. it's just an example)
Whenever hovering the Row, it becomes Blue, as set, for a slight second and then becomes light gray again...
Checking the element CSS, via chrome tools, there is NO other :hover CSS for that object other than the blue color I added. Yet for some reason, this doesn't work...
In addition, tried using rowClassName to give a custom class and using it with the &:hover with the same results.
Here's a gif that shows the issue in action
Also a working example (online): https://codesandbox.io/s/bold-cache-w22lg?file=/src/App.js
replace with the following:
.ant-table-row:hover td{
background-color: blue!important;
}
Here two think
put your custom style file below all style file
add !important link below
.ant-table-row { &:hover { background-color: blue !important ; } }
I just switched my site over to AMP using the free theme. I added the drop-down menu CSS code that scrolls and works well but I cannot figure out how to add the a:hover background color #cc3333 or isolate which element it should point to. Any suggestions would be appreciated.
https://partyfavorz.com
you can add this code to your css.
.amp-menu>li a:hover{
background: #cc3333;
}
I am trying to change the background colour of a menu in Wordpress.
The background is transparent for all other pages which is good, but for the homepage where the first element on the page below is a slider the menu remains grey and I cannot seem to change it without making it opaque for the whole site?
The page/site in question is http://nudda.com/new/home-2
I think you are using Wordpress for development, so you can add a specific ID to your home page, then you can use it to change the menu background just for home page,, you should do something like this:
#Your_ID #top-wrapper {
background-color: rgba(0,0,0,0.1);
background-image: none;
}
simple fix is
.page-id-2700 #top-wrapper{
// your background color here
}
page-id-2700 is the wordpress generated page class for home
First add custom CSS and JS plugin in case you don't have a place to add custom CSS.
Then, add this line of CSS code:
#top-wrapper {
background-color: #050505 !important;
}
I can see that you might have already have written that but without the !important.
What is happening is that the default style is overwriting the new style.
The !important will allow you to force overwrite it.
I'm working on a site for our clinic, here: www.markshoushadentistry.com
I am trying to change the background on the pages (not home page) from white to a textured image background. I've located using Inspect in Chrome the CSS is:
.site-content {
background: #FFF;
}
But I can't seem to find where it is to change it. There is an option in customizer that changes the color of the background, but I'm trying to change the background to an image.
Can anyone tell me where the code is to change the background color to an image?
Thanks so much in advance
Your .site-content is overriden by another top CSS
.home .site-content {
background: none;
}
if you change your CSS with:
.home .site-content {
background: #fff !important;
}
it should work
To change background color in a wordpress you can follow the following steps :
Login to wordpress and open dashboard
Go to Customizer (Appearance > Customize) -> Additional css
Enter the CSS to change the background color. Below is sample code:
site is the css class for the whole site.
XXXXXX is the hex code for the color you want to use.
you can choose your color code from here
Click Update File
And your background color will change . Hope this helps you
I'm working on my wordpress website, I recently got this new theme called Visia. After a search for days I finally found out where the hover effects for the circle around the social buttons was located. But there's only one problem: the icons have their own CSS file. And I want both circle (border-color) and icon (color, they have an icon font) to change color on just one hover.
Now I got this changed in the icons.css
.icon-linkedin:hover {
border-color:#06C;
opacity::1;
color:#06C;
}
the other one has no hover yet, because I tried to refer to that class (style.css) to icons.css
.social-links a:hover {
???
}
The borders should change color the same color as the icons (because there are different social links, there are different colors)
If anyone could help, would be great...
Thanks in advance!
Simply overwrite it like so:
.icon-linkedin:hover {
border-color:007bb6;
color:007bb6;
}
And add !important if needed:
.icon-linkedin:hover {
border-color:007bb6 !important;
color:007bb6 !important;
}
I've fixed it by removing the border from some other class (the one who actually gave the border) and added it to an icon class that was already there. I also added a hover to that class which made it possible to change both color and border-color.