The Arcive of vBulletin Modifications Site. |
|
Site Logo Image re-size Details »»
|
|||||||||||||||||||||||||
The default width for the logo image in VB5 is only 320px, which may suit the VB logo itself, but doesn't help those wanting a bigger logo, the easiest and best way to do this is by altering the css, doing it this way means you don't mess up the rest of the header area.
You only need to complete two edits to one file. Go to : AdminCP>Styles and Templates>Style Manager From the drop down menu select : Edit Templates>CSS Templates> css_global.css Find : Code:
#header .site-logo {
padding: 22px 10px 26px;
background:transparent;
min-width:90px;
max-width:320px;
position:relative;
text-align:{vb:stylevar left};
}
Find : (it should be directly underneath, the above) Code:
#header .site-logo img {
height:auto;
width:auto;
max-width:320px;
}
One point to remember is that with the height and width set to "auto" the CSS will make you image "fit" the maximum width set. Therefore if you plan to use a larger logo, it is best to design the logo to your maximum width, if you use a smaller image, it will appear pixelated when enlarged by the CSS. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Why don't you just add that to additional.css that wat it is safe from upgrades, when you have go revert the templates?
|
|
#3
|
|||
|
|||
|
I tried the lower of the two on it's own through the additonal_css but it didn't work, so I went into css_global_css and found the two instances, didn't think to try adding them both to additional and trying it again !
|
|
#4
|
|||
|
|||
|
How do I get rid of the search bar next to the logo?
![]() I would like the banner to be the whole width |
|
#5
|
|||
|
|||
|
Start your own thread and I guarantee you will get better results. Not only that but it's protocol here.
|
|
#6
|
|||
|
|||
|
Thank you, I will
|
|
#7
|
|||
|
|||
|
Theres a fix on VB.com in the tutorials it moves the search bar to the Nav bar
but here it is any way : Code:
/*Search in Navbar*/
#header { position: relative; }
#header .header-cell { width: 100%; }
#header .toolbar {
position: absolute;
{vb:stylevar right}: 0;
bottom: -29px;
padding: 0;
display: block;
width: auto;
}
Code:
/* reduce search box width from 168px to 120px or any size if you want */
.search-container .search-box .search-term { width: 120px; }
|
|
#8
|
|||
|
|||
|
Quote:
The site logo is added through site builder. |
|
#9
|
|||
|
|||
|
If I put the big logo will be expected to be misconfigured on mobile devices (phones, tablets, etc.)?
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|