Adding A Site Logo

By pieterhpieterh

Description

This snippet lets you add a logo to the site by creating a custom CSS.

Code

  1. Create logo, 90px high by (e.g.) 500px wide
  2. Upload logo to start page as file 'logo.jpg'
  3. Go to site manager
  4. Choose Appearance/Custom themes
  5. Create a new theme called 'custom'
  6. Enter CSS code below and save theme
  7. Choose Appearance/Themes
  8. For _default, choose custom theme
#header {
    height: 100px;
}
#header h1 a span{
    display: none;
}
#header h2 {
    display: none;
}
#header h1 a,#header h1 a:hover{
    margin: 0;
    padding: 0;
    background-image: url(/local--files/logo.jpg);
    height: 90px;
    width: 500px;
    position: absolute;
    top: 10px;
    left: 20px;
}

In action

See http://www.digitalmajority.org

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +72+x
sayanrijusayanriju 1183108715|%e %b %Y, %H:%M %Z|agohover

Good tip, mate! :)
Just to add : I've used http://cooltext.com to get my own custom logo text, and then adjusted the CSS slightly to its size!

unfold by sayanrijusayanriju, 1183108715|%e %b %Y, %H:%M %Z|agohover
Re: Logo
PanfiloFelixPanfiloFelix 1193868567|%e %b %Y, %H:%M %Z|agohover

I've put the code in, but my logo does not appear. What gives?

#header {
height: 120px;
}
#header h1 a span{
display: none;
}
#header h2 {
display: none;
}
#header h1 a,#header h1 a:hover{
margin: 0;
padding: 0;
background-image: url(/local—files/start/logo.jpg);
height: 87px;
width: 508px;
position: absolute;
top: 10px;
left: 20px;
}

unfold Re: Logo by PanfiloFelixPanfiloFelix, 1193868567|%e %b %Y, %H:%M %Z|agohover
Re: Logo
Mountain MuleMountain Mule 1197779946|%e %b %Y, %H:%M %Z|agohover

I had the same problem.

Changed the following line to my image url as follows:

Before:
background-image: url(/local—files/start/logo.jpg);

After:
background-image: url(http://mywikidotsite.wikidot.com/local--files/start/logo.jpg);

And now it all works fine.

unfold Re: Logo by Mountain MuleMountain Mule, 1197779946|%e %b %Y, %H:%M %Z|agohover
Re: Logo
Brian SBrian S 1222295834|%e %b %Y, %H:%M %Z|agohover

THANK YOU! Finding this URL fix just saved me a huge headache.

unfold Re: Logo by Brian SBrian S, 1222295834|%e %b %Y, %H:%M %Z|agohover
Re:
zefazefa 1216917459|%e %b %Y, %H:%M %Z|agohover

Thanks for the link man very helpful

unfold Re: by zefazefa, 1216917459|%e %b %Y, %H:%M %Z|agohover
Data Entry Work From Home
john1john1 1191917568|%e %b %Y, %H:%M %Z|agohover

online jobs, work at home, from home work, data entry, typing jobs, paid survey, complete online survey, make money online, make money at home, home job work, type jobs at home, get paid for online sur0vey, free opportunities, type at home jobs, make money from home, work from home

unfold Data Entry Work From Home by john1john1, 1191917568|%e %b %Y, %H:%M %Z|agohover
Data Entry Jobs
john1john1 1192173225|%e %b %Y, %H:%M %Z|agohover

Make money typing ads online, online jobs, work at home, from home work, data entry, paid survey, complete online survey, make money online, make money at home, home job work, type jobs at home, get paid for online survey, free opportunities

unfold Data Entry Jobs by john1john1, 1192173225|%e %b %Y, %H:%M %Z|agohover
Didn't work for me.
ameruneamerune 1194827389|%e %b %Y, %H:%M %Z|agohover

Also, on the instructions page it says your new theme won't be updated automatically, but must be "synched" "here." Unintelligible. :-<

unfold Didn't work for me. by ameruneamerune, 1194827389|%e %b %Y, %H:%M %Z|agohover
Good tip!
karl3ikarl3i 1213444411|%e %b %Y, %H:%M %Z|agohover

Thanks for that :)

Here is my piece of code to:

  • increase a little bit the header height
  • increase a little bit the image width
  • put a PNG instead of the JPG (using transparency)

Here is the code:

#header {
height: 120px;
}
#header h1 a span{
display: none;
}
#header h2 {
display: none;
}
#header h1 a,#header h1 a:hover{
margin: 0;
padding: 0;
background-image: url(http://dents-de-sagesse.wikidot.com/local--files/start/logo.png);
height: 90px;
width: 502px;
position: absolute;
top: 10px;
left: 20px;
}

Here is the result:
http://dents-de-sagesse.wikidot.com/

Happy wikying to all!

unfold Good tip! by karl3ikarl3i, 1213444411|%e %b %Y, %H:%M %Z|agohover
Re: Good tip!
wowstrategywowstrategy 1215054112|%e %b %Y, %H:%M %Z|agohover

i tried putting this exact code into mine, no image. i cant get this tip working at all, no image shows up.

unfold Re: Good tip! by wowstrategywowstrategy, 1215054112|%e %b %Y, %H:%M %Z|agohover
Re: Good tip!
wowstrategywowstrategy 1215054734|%e %b %Y, %H:%M %Z|agohover

it doesnt seem to work when extending shiny…any ideas?

unfold Re: Good tip! by wowstrategywowstrategy, 1215054734|%e %b %Y, %H:%M %Z|agohover
Extending Shiny For Logo Insertion
KeysoftServicesKeysoftServices 1216006324|%e %b %Y, %H:%M %Z|agohover

Hi Here is my piece of code to:Logo Insertion

#header-extra-div-1 {
height: 150px;
width: 200px;
float: left;
background-image: url('http://keysoftbiservices.wikidot.com/local--files/start/KEYSOFT%20LOGO');
background-repeat: no-repeat;
padding: 0;
position: absolute;
top: 5px;
right:102%;
}

Here is the result:
http://keysoftbiservices.wikidot.com/

Regards

unfold Extending Shiny For Logo Insertion by KeysoftServicesKeysoftServices, 1216006324|%e %b %Y, %H:%M %Z|agohover
Re: Extending Shiny For Logo Insertion
VashTexanVashTexan 1220732656|%e %b %Y, %H:%M %Z|agohover

I'm not certain about your image, but using that code, it cuts off a considerable amount of the image. For me the right:102%; worked much more exact as right:101.12%; , by painstakingly testing it little by little. I could get even more exact, but I don't think the differences would be noticeable that far.

unfold Re: Extending Shiny For Logo Insertion by VashTexanVashTexan, 1220732656|%e %b %Y, %H:%M %Z|agohover
Don't forget
viszlaiviszlai 1213714198|%e %b %Y, %H:%M %Z|agohover

In my version the file name was Case sensitive logo.JPG vrs logo.jpg

unfold Don't forget by viszlaiviszlai, 1213714198|%e %b %Y, %H:%M %Z|agohover
REFRESH!
VashTexanVashTexan 1220733090|%e %b %Y, %H:%M %Z|agohover

I tried all three versions of the code and none of them seemed to work…
SOLUTION: REFRESH THE PAGE!!! Even when you click on the start page several times, the image / updated image wont show up, UNLESS you refresh the page. I think even if you just visit the website again after closing the browser the image wont show. Your browser pre-fetches / caches items (stores them on your hard-drive), so that loading will be faster the next time you visit the page, so it will use those instead of getting them for the server. Only refreshing will solve the problem.

last edited on 1220733433|%e %b %Y, %H:%M %Z|agohover by VashTexan + show more
unfold REFRESH! by VashTexanVashTexan, 1220733090|%e %b %Y, %H:%M %Z|agohover
Inserting images from a hard drive into a wiki page
Bill BuchananBill Buchanan 1234212966|%e %b %Y, %H:%M %Z|agohover

The Wiki Syntax about images is indecipherable and doesn't seem to address how to simply insert an image from your hard drive, much as you would into a Word doc. Anyone have any ideas?

Thanks,

Bill Buchanan

unfold Inserting images from a hard drive into a wiki page by Bill BuchananBill Buchanan, 1234212966|%e %b %Y, %H:%M %Z|agohover
Re: Inserting images from a hard drive into a wiki page
Helmuti_pdorfHelmuti_pdorf 1234256236|%e %b %Y, %H:%M %Z|agohover

You cannot insert images from your "internal" hard disk "directly" !( instead external omages from flickr, or from other storages ( =url) in the internet-cloud..

You have first to "upload" your images onto one of your pages (attach them) with the "files" button.
( and store them on wikidot.ocm)

1. Be careful to write the correct file-ectension
2. Be careful to write no space in the file-name.

3. Than you can easily insert the images from your "local" storage on wikidot.com on any page of your site.

Links:
http://handbook.wikidot.com/en:introduction-to-images
http://handbook.wikidot.com/en:upload-an-image

http://community.wikidot.com/howto:put-pictures-with-footnotes-in-the-text

or (more advanced):
http://community.wikidot.com/howto:put-pictures-with-footnotes-in-the-text-using-divs


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

help
Dragon KingDragon King 1243310929|%e %b %Y, %H:%M %Z|agohover

how do you get the logo to cover the entire top of the page?

unfold help by Dragon KingDragon King, 1243310929|%e %b %Y, %H:%M %Z|agohover
Re: help
Helmuti_pdorfHelmuti_pdorf 1243353766|%e %b %Y, %H:%M %Z|agohover

http://community.wikidot.com/howto:use-logo - hope there is the answer - clickable logo at the top.

I know that RobElliott has a logo over the complete top-area..


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: help by Helmuti_pdorfHelmuti_pdorf, 1243353766|%e %b %Y, %H:%M %Z|agohover
Re: help
Dragon KingDragon King 1243395204|%e %b %Y, %H:%M %Z|agohover

Thank you.

unfold Re: help by Dragon KingDragon King, 1243395204|%e %b %Y, %H:%M %Z|agohover
balbottabalbotta 1258126502|%e %b %Y, %H:%M %Z|agohover

Hey eveyrbody, I've put in the code, but the logo doesn't appear.
Can anybody help me out? The theme on which I'm working is the Localize one.

Thanks!

unfold by balbottabalbotta, 1258126502|%e %b %Y, %H:%M %Z|agohover
please , show us here your code!
Helmuti_pdorfHelmuti_pdorf 1258129003|%e %b %Y, %H:%M %Z|agohover

or nobody can help you !


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold please , show us here your code! by Helmuti_pdorfHelmuti_pdorf, 1258129003|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
balbottabalbotta 1258367989|%e %b %Y, %H:%M %Z|agohover

Hello.
Sorry I forgot to post the code. here it is:

#header {
height: 100px;
display: none;
display: none;
margin: 0;
padding: 0;
background-image: urlhttp://nataleitaliano.wikidot.com/local—files/start/logo.PNG);
height: 90px;
width: 500px;
position: absolute;
top: 10px;
left: 20px;

The only logo that gets showed is the Localize theme one, and not mine.

last edited on 1258368067|%e %b %Y, %H:%M %Z|agohover by balbotta + show more
unfold Re: please , show us here your code! by balbottabalbotta, 1258367989|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
Helmuti_pdorfHelmuti_pdorf 1258369276|%e %b %Y, %H:%M %Z|agohover

I think your code is wrong..
urlhttp:..../ should be
background-image: url(ttp://nataleitaliano.wikidot.com/local--files/start/logo.PNG);

missing opening ( …


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: please , show us here your code! by Helmuti_pdorfHelmuti_pdorf, 1258369276|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
balbottabalbotta 1258369844|%e %b %Y, %H:%M %Z|agohover

thanks!
I changed the code correcting the typo but it doesn't work anyways… :(

unfold Re: please , show us here your code! by balbottabalbotta, 1258369844|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
Helmuti_pdorfHelmuti_pdorf 1258372932|%e %b %Y, %H:%M %Z|agohover

I made a typo too ! ( url(ttp://nat instead of url(http://nat…)

Questino :
1. Where did you get the file name - from Info.-button?
2. is the extension really PNG and not png ?
Try to rename the file name. to lower character and change the url…

and have a look on type too in comparison with the others above in the thread..

AND: have you setup in your site manager this custom changes to use?

AND: have you .reset your browser - cache - it is often not showing new changes without deleting all cached informations..


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: please , show us here your code! by Helmuti_pdorfHelmuti_pdorf, 1258372932|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
Helmuti_pdorfHelmuti_pdorf 1258381927|%e %b %Y, %H:%M %Z|agohover

I had a look at the top of this page and see some differences… in comparison to your code:

#header {
    height: 100px;
}
#header h1 a span{
    display: none;
}
#header h2 {
    display: none;
}
#header h1 a,#header h1 a:hover{
    margin: 0;
    padding: 0;
    background-image: url(/local--files/logo.jpg);
    height: 90px;
    width: 500px;
    position: absolute;
    top: 10px;
    left: 20px;
}

Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: please , show us here your code! by Helmuti_pdorfHelmuti_pdorf, 1258381927|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
balbottabalbotta 1258464918|%e %b %Y, %H:%M %Z|agohover

Hey, I tried both using this last piece of code and correcting the typo above, but it still doesn't work! :(

Could it be the localize template I'm working on?! Shall I use another one?

edit: I tried using other themes, but it's not working anyways.

last edited on 1258465114|%e %b %Y, %H:%M %Z|agohover by balbotta + show more
unfold Re: please , show us here your code! by balbottabalbotta, 1258464918|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
Helmuti_pdorfHelmuti_pdorf 1258469442|%e %b %Y, %H:%M %Z|agohover

Some useful links:

http://community.wikidot.com/howto:use-logo <==== ! !
http://community.wikidot.com/howto:design-your-own-css-theme
http://community.wikidot.com/howto:fiddle-with-css-the-easy-way

and my questions:
Have you created your own "custom" theme?

Have you used the [[code type="CSS"]] ?
giving :

#header {
height: 100px;
display: none;
display: none;
margin: 0;
padding: 0;
background-image: url(http://nataleitaliano.wikidot.com/local—files/start/logo.PNG);
height: 90px;
width: 500px;
position: absolute;
top: 10px;
left: 20px;

And: I miss here in your code thew beginning lines of the Code:


#header {
height: 120px;
}
#header h1 a span{
display: none;
}
#header h2 {
display: none;
}
#header h1 a,#header h1 a:hover{
margin: 0;
padding: 0;
background-image: url(/local—files/start/logo.jpg);
height: 87px;
width: 508px;
position: absolute;
top: 10px;
left: 20px;
}


And: do you use an css-page wiothg the code ( have you "synchronized" it ?)
or are you typing the code directly into your custom theme?


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

last edited on 1258469903|%e %b %Y, %H:%M %Z|agohover by Helmuti_pdorf + show more
unfold Re: please , show us here your code! by Helmuti_pdorfHelmuti_pdorf, 1258469442|%e %b %Y, %H:%M %Z|agohover
Re: please , show us here your code!
leigerleiger 1258499414|%e %b %Y, %H:%M %Z|agohover

Hey, I tried both using this last piece of code and correcting the typo above, but it still doesn't work! :(

After changing your CSS:

  1. Press Ctrl+Shift+Del , and confirm that you want to clear your cache
  2. Press Ctrl+R to refresh the page

You may need to refresh twice.

Do this every time you make a change to the theme.

last edited on 1258499439|%e %b %Y, %H:%M %Z|agohover by leiger + show more
unfold Re: please , show us here your code! by leigerleiger, 1258499414|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page_revision: 2, last_edited: 1217318473|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License