Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Template Modifications

Reply
 
Thread Tools
Site Logo Image re-size Details »»
Site Logo Image re-size
Version: 1.00, by Spangle Spangle is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 5.0.1 Rating:
Released: 12-17-2013 Last Update: Never Installs: 7
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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};
}
Alter the max-width to the desired width in pixels, up to 720px works fine.

Find : (it should be directly underneath, the above)

Code:
#header .site-logo img {
	height:auto;
	width:auto;
	max-width:320px;
}
Once again edit the part in red to the same figure as the first.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-18-2013, 02:43 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why don't you just add that to additional.css that wat it is safe from upgrades, when you have go revert the templates?
Reply With Quote
  #3  
Old 12-18-2013, 04:19 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !
Reply With Quote
  #4  
Old 05-31-2014, 03:23 AM
BWalter74 BWalter74 is offline
 
Join Date: May 2014
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I get rid of the search bar next to the logo?



I would like the banner to be the whole width
Reply With Quote
  #5  
Old 05-31-2014, 07:23 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BWalter74 View Post
How do I get rid of the search bar next to the logo?



I would like the banner to be the whole width
Start your own thread and I guarantee you will get better results. Not only that but it's protocol here.
Reply With Quote
  #6  
Old 05-31-2014, 01:04 PM
BWalter74 BWalter74 is offline
 
Join Date: May 2014
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, I will
Reply With Quote
  #7  
Old 06-01-2014, 04:18 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BWalter74 View Post
Thank you, I will
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;
}
If you want to reduce the size of the visible text entry box use this :

Code:
/* reduce search box width from 168px to 120px or any size if you want */
.search-container .search-box .search-term { width: 120px; }
Hope this helps, thanks go to Wayne
Reply With Quote
  #8  
Old 06-01-2014, 04:24 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BWalter74 View Post
How do I get rid of the search bar next to the logo?



I would like the banner to be the whole width
The banner and the site logo are two separate images, you can load the banner via the header stylevar in edit templates.

The site logo is added through site builder.
Reply With Quote
  #9  
Old 11-09-2014, 01:36 PM
posontyclanole posontyclanole is offline
 
Join Date: Sep 2014
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I put the big logo will be expected to be misconfigured on mobile devices (phones, tablets, etc.)?
Reply With Quote
  #10  
Old 02-19-2017, 04:49 AM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spangle View Post
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;
}
If you want to reduce the size of the visible text entry box use this :

Code:
/* reduce search box width from 168px to 120px or any size if you want */
.search-container .search-box .search-term { width: 120px; }
Hope this helps, thanks go to Wayne
thanks for sharing, worked perfectly on 5.2.6
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06040 seconds
  • Memory Usage 2,307KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete