How do I center my banner logo?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
Zhaan
Registered User
Posts: 2
Joined: Sun Jul 19, 2009 5:53 pm

How do I center my banner logo?

Post by Zhaan »

I'm new to using this board and I need help. I can't find any info on doing this. I would also like to know how to remove the text that appears in the banner space that says "yourdomain.com" with info after.

User avatar
Greenweaver
Former Team Member
Posts: 3913
Joined: Tue Jan 10, 2006 5:25 am
Location: In the rain
Contact:

Re: How do I center my banner logo?

Post by Greenweaver »

Can you give us a link to your board and style please?
Image
Modage: Page Title Number MOD
Linkage: Find me at Styles Support & Discussion | Get a new style | Customise your style | phpBB userguide
Noteage:
Graphics requests to members over 20 posts and genuine phpbb requirements | I do not provide custom psd files

chase_turpin
Registered User
Posts: 469
Joined: Fri Jun 10, 2005 12:02 am
Location: South Carolina
Contact:

Re: How do I center my banner logo?

Post by chase_turpin »

Hello,


Its hard to say what needs to be changed without knowing what style you are using. If you don't know much about css it might be best to find a style that doesn't need to be changed.

Post a link to your forums and someone should be able to help you out.

As for removing the text that's easy just got to the admin control panel acp and clear out the boxes. That and the sites description are in the same place.
My current project Gamer Union Any and all help is welcome!

Zhaan
Registered User
Posts: 2
Joined: Sun Jul 19, 2009 5:53 pm

Re: How do I center my banner logo?

Post by Zhaan »

http://cnstarfleet.com/

That's my forum. Is this something that has to be done in the css?

User avatar
Josh
Former Team Member
Posts: 1882
Joined: Sun Jan 25, 2009 3:08 pm
Location: Melbourne, AUS
Name: Josh Simpson
Contact:

Re: How do I center my banner logo?

Post by Josh »

open overall_header.html
search

Code: Select all

<td height="150" align="left" valign="middle"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
replace with

Code: Select all

<td height="150" align="left" valign="middle" style="text-align: center;"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
Josh Simpson- Formerly known as "HardStyle"
Styles: Submission Policy | Database | Knowledge Base | Demo
Please do not PM me for personal support.
Image

badbrain
Registered User
Posts: 21
Joined: Mon Aug 10, 2009 2:58 am

Re: How do I center my banner logo?

Post by badbrain »

is there a way to have the banner aligned in such a way that there is no visible header background to the left or above or under it? So it's just kinda pressed up against the left wall of the browser

bwanaaa
Registered User
Posts: 4
Joined: Wed Sep 02, 2009 9:20 pm

Re: How do I center my banner logo?

Post by bwanaaa »

could someone point out how to change the text that says 'your domain.com'? Where is that text kept?

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: How do I center my banner logo?

Post by Arty »

admin control panel -> board settings
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

bwanaaa
Registered User
Posts: 4
Joined: Wed Sep 02, 2009 9:20 pm

Re: How do I center my banner logo?

Post by bwanaaa »

Thank you. But for my own edification can u tell me which document holds this information?

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: How do I center my banner logo?

Post by Arty »

When you enter data in admin control panel, phpBB stores it in phpbb_config table as sitename and site_desc. Then when user is browsing forum, phpBB gets it from phpbb_config table (or from cache) to $config array, then in includes/functions.php it assigns $config['sitename'] and $config['site_desc'] to template variables {SITENAME} and {SITE_DESCRIPTION}, then when template is being shown those variables are replaced by its values. Those variables can be used anywhere in templates, but usually its used only in overall_header.html
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

McBaboon
Registered User
Posts: 57
Joined: Tue Feb 08, 2011 11:55 am

Re: How do I center my banner logo?

Post by McBaboon »

Can someone advise how to do this with avalon?

User avatar
TheIlluminative
Former Team Member
Posts: 2451
Joined: Thu Jun 26, 2003 11:34 pm
Location: Egypt
Name: Mahmoud
Contact:

Re: How do I center my banner logo?

Post by TheIlluminative »

Try this, open file: styles/avalon/theme/stylesheet.css, find:

Code: Select all

#logo-right {
	background: url(images/logo_right.gif) top right no-repeat;
	padding: 4px 15px 0 15px;
	text-align: left;
	overflow: hidden;
}
Replace with:

Code: Select all

#logo-right {
	background: url(images/logo_right.gif) top right no-repeat;
	padding: 4px 15px 0 15px;
	text-align: center;
	overflow: hidden;
}

McBaboon
Registered User
Posts: 57
Joined: Tue Feb 08, 2011 11:55 am

Re: How do I center my banner logo?

Post by McBaboon »

That worked, Thanks!

Locked

Return to “[3.0.x] Styles Support & Discussion”