Centre your site_logo

Articles and Information - phpBB 3.0 modifications and tweaks

Centre your site_logo

Postby Mick » Sun Mar 19, 2017 1:10 pm

To centre your logo:

Make a copy of common.css and save it somewhere safe.

Open common.css and find:
Code: Select all
#logo‚ {
float:‚ left;
width:‚ auto;
padding:‚ 10px‚ 13px‚ 0‚ 10px;
 }

Replace with:
Code: Select all
#logo‚ {
width:‚ auto;
padding:‚ 0px;
}

Find:
Code: Select all
#site-description‚ {
float:‚ left;
width:‚ 70%;
}

Replace with:
Code: Select all
#site-description‚ {
text-align:‚ center;
width:‚ 100%;
}


You may find the gap between the banner and the navbar is too big so you can edit:

Code: Select all
<h1>{SITENAME}</h1>

To:
Code: Select all
<h1‚ style="display:‚ none;">{SITENAME}</h1>‚ ‚

And or:
Code: Select all
<p>{SITE_DESCRIPTION}</p>‚ ‚

To:
Code: Select all
<p‚ style="display:‚ none;">{SITE_DESCRIPTION}</p>‚ ‚

From overall_header.html if you aren't using them. This last part basically stops the site name and site description from displaying rather than removing them altogether which can effect the SEO.

I would also recommend moving the search box from the header to the navbar (much neater) using this: Remove Search Box & add search icon to the navigation bar
"The more connected we get the more alone we become" - Kyle Broflovski
User avatar
Mick
 
Posts: 24
Joined: Wed Mar 15, 2017 9:14 am

Return to Articles and information

Who is online

Users browsing this forum: No registered users and 2 guests

cron