First of all, a link to my site: http://jakubplech.pl/.
You can see a grey, centered horizontal menu in there. If you look at it, you'll get:
<nav id="site-navigation" class="main-navigation position-default fixed" role="navigation" style="width: 1349px;">
I want nothing more that to change that width to auto, but it is an element.style of the theme and I have no idea how to refer to it (every change in custom CSS I did so far started with a dot). I read that i could use an !important trick, but since I don't know how to refer to it, it is impossible for me.
I'm dying to know the answer for this - if anyone could help me it would save me hours of frustration. Thanks in advance!
You should be able to use its class like so:
.main-navigation {
width: auto !important;
}
Related
I want to change the color of the social icons (on the left side of the screenshot). Since I have no clue how to change it in WordPress, I tried it with CSS. But now I noticed that I have to change the element. style and I don't know how... I tried just changing the color in the element. style and copying into the additional CSS in WordPress, but it doesn't work. On the screenshot, you can see what I mean. Is there a solution to this problem?
This is what I tried:
element.style {
--wpz-social-icons-block-item-color: #FF0000;
--wpz-social-icons-block-item-color-hover: #FF0000;
}
Please try with this following code in wordpress customizer > Additional CSS
.social-icon-link{
--wpz-social-icons-block-item-color: black !important;
--wpz-social-icons-block-item-color-hover:
red !important;
}
I think that what makes color is the element inside a <span class="social-icon socicon socicon-icon-instagram">
But anyway you are trying to change something via style, and if you want to do like this you´ll hace to use something like
style="background-color:#000"
or wathever, color, font-size etc
But in this case I will use a new style, like
.socicon-icon-instagram {color:#000;}
And maybe depends of the template you´ll need to add !important to CSS class to get the color...like this
.socicon-icon-instagram {color:#000!important;}
It is not a good practice but sometimes is necesary
Using the Flatsome theme I have a few questions and would like to try and get them solved myself, is this the manner in which I should direct those questions?
I'm running WooCommerce I'd simply like to know how to make the breadcrumbs bar a little smaller where it displays the name.. on the single product page it looks great but I see no settings to edit it on the display list, i can show you a screenshot of the problem here (ALSO I WANT TO CHANGE THE WHITE BACKGROUD WHERE IT SAYS "HEADSHOP" TO SOMETHING MORE MATCHING) -- THERE ARE NO OPTIONS FOR CHANGING ANY OF THIS?
I'd really like to be able to edit this area and I'd like to gain more access to it, this theme appearance editor area wont let me do it, I've tried and tried to no avail!
With that being said, this is just the display of all the main products.. What throws me off is that in the Single Product page it formats exactly the way I want it to on all pages, see example here..
Im not an expert but I suggest you to put the URL of your website as minimum, because is going to be difficult to help you without what you have tried or the code of your website.
Following with the question, you can reduce the height of the container using some CSS. By default both margins (in this case the padding) are in 20px, so i just reduce them to 0.
.featured-title .page-title-inner {
padding-bottom: 0px;
}
.page-title-inner {
position: relative;
padding-top: 0px;
min-height: 60px;
}
This is how it looks with the modifications in the margins.
https://i.stack.imgur.com/r7KX7.jpg
https://i.stack.imgur.com/bMmNd.jpg
But still, I don't understand what it's keeping the text so high in the container.
To change the background color of that button, you can modifiy the CSS Property.
.nav-tabs > li.active > a {
background-color: red;
}
This is how it looks.
So you just need to put that CSS in your theme.
If my answer helped you, please consider marking it as an Answer.
Website goo.gl/4nQia8
How do i remove the black background in the widget called whos online.
I have spent sometime searching for that css but i cant find it or manipulate it.
I have changed everything that is called background in my css without anyhelp.
Also tryied to add style to the iframe didnt help.
allowtransparency="true" style="background: none;"
I want 100% transperent i have tested everything that i can.
This piece of code is affecting your iframe:
<style type="text/css" id="custom-background-css">
body.custom-background { background-color: #161522; }
</style>
To remove the colour from the area you want, you could create a 'wrapper' div for the first two columns, and apply the custom-background-css only to the wrapper div as opposed to the body and then the entire body would not be affected, only the sections you want. Hope this helps.
Solve it!
In the actual .php thats why i could not find it.
<table style="width:361px;background:none;"
<tr style="width:361px;background:none;"
I've been stuck for like 2h trying to prevent my navbar from resizing, as I built a webapp which I don't want to be responsive designed.
The navbar started stacking components and shrinking whenever the browser window was resized, so I tried different solutions I found with some googling and also here in stackoverflow. None of them worked for me:
https://stackoverflow.com/a/28415865/3736964
Temporarily Disable Responsiveness Bootstrap
https://stackoverflow.com/a/14151865/3736964
I even went to http://getbootstrap.com/customize and created my own bootstrap version by unchecking the "responsive utilities" and changing two LESS variables:
#grid-float-breakpoint = 0
#grid-float-breakpoint-max = 0
(I also tried 99999 and stuff for that breakpoint max value)
I downloaded it and tested with no luck.
I still wasn't able to prevent the navbar from resizing whenever the window was resized
So this isn't the way it should be done, for sure, but I couldn't figure out a cleaner and non-intrusive way of preventing the navbar from shrink.
I just added an inline style (you can do it also by overriding it on your .css files) for my nav element:
<nav class="class="navbar navbar-default" style="min-width: 1300px !important;">
...
</nav>
The !important aims for that style rule not being overriden. I've set the min-width according to my needs, so if anyone finds this useful, should change it for his particular needs.
<nav class="class="navbar navbar-default" style="min-width: 1300px!important;"></nav>
If you want to fix is and if you want to fix is at the top
use css
body {
min-height: 2000px;
padding-top: 70px;
}
and class navbar navbar-default navbar-fixed-top plus also if you want to fix it use min-width: 1300px !important; in the style tag
Thanks With Regards
When I go to my website in a new tab, the navigation bar height is double the size it should be. Then, if I refresh, it looks good.
Any idea how to fix it?
My website is www.preciseos.com, when you go there, please check out the top white navigation bar and refresh. You will see the issue.
Oz
The problem comes from the element <div class="social-icons hover-big pull-right"> and more specifically from these two CSS classes :
.social-icons {
display: table
}
and
.pull-right {
float: right
}
In Chrome DevTools, I can replicate the bug if I disable both classes, and then apply the classes social-icons and pull-right in this specific order.
If you make sure that the float: right rule (i.e. the class pull-right) is applied before the display: table rule, it should be ok.
You have a problem with jquery-1.10.2.min.map. It has a 300 status, it isn't found on the server. Check this, and then it will be ok.