News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Editing the word 'Newbie' etc.

Started by Big Gee, October 24, 2013, 11:56:15 AM

Previous topic - Next topic

Kindred

well, that is just plain silly

it's also a stupid design, IMO...   why would you ever use the logo as a background image?   and why the hell would you add it as inline CSS rather than defined in the CSS file?

Bad theme design, IMO.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

Not really, it is in the CSS file, actually. That safe_logo_header_blablabla think is another subject. And I've "print_r'd" $settings and it's not existant.
The CSS has a "background image" for the "header" class.

The think is, it's not that easy to create a link from a CSS background image...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

margarett

Well, because I'm stubborn :P and despite I've said that this should be taken to the support topic, here it goes :P

index.css, find and remove:

background: url('../images/header.png') no-repeat;


index.template.ph, find:

<div id="header"', !empty($settings['header_logo_url_html_safe']) ? ' style="background-image: url(' . $settings['header_logo_url_html_safe'] . ')"' : '', '>

Replace with:

<div id="header"><a href="http://www.google.pt"><img src="' . $settings['images_url'] . '/header.png"></a>

Please note that you should have your header as "header.png" inside your "images" folder and NOT defined through ACP. It could be improved that way, but it's not important for now :P

Oh, and you probably don't want to go to google.pt ;) Change the link to your homepage.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Big Gee

DEFINATELY not in the Bright Forest index.template.php file:



Where to from here Fellas?

G

margarett

Did you read my previous post(s), specifically the last one? :o

Also, DON'T use Notepad for your file edits... Use a decent editor (Notepad++ or others)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Big Gee

Quote from: margarett on October 25, 2013, 12:46:45 PM
Did you read my previous post(s), specifically the last one? :o

Also, DON'T use Notepad for your file edits... Use a decent editor (Notepad++ or others)

Yes thanks Bruno - I'm working on it right now - we have tea breaks in the UK!.

I'm using Notepad because I'm on someone else's machine - I usually use EditPad Lite on my own machine.

I'll come back to let you know how I got on as soon as I've finished.

Thnx -

G.

Big Gee

Works a treat - MISSION ACCOMPLOSHED!

Thanks Chaps! Especially you Bruno.

A lot of faff for a small function on - but there you go - such is life sometimes  ;)

All the best to you all -

G.

kat


Advertisement: