We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[SOLVED] Inserting the logo in Crayon Theme | Forum

Topic location: Forum home » Development » Themes
Dave S
Dave S May 22 '13
My theme is Crayon, and i want to add a logo instead of the text, but I don't know how. I see that CSS and HTML from master_pages are missing the codes for the logo. Please share the codes. Thank you!
The Forum post is edited by Dave S May 23 '13
dave Leader
dave May 22 '13

how big is your logo?

 

also fyi BIG PLEASE REPLY is a moot point... it takes time for everyone.. patience is needed..:)

The Forum post is edited by dave May 22 '13
Dave S
Dave S May 22 '13
@dave: how big is your logo? --> about 100 x 28px.


I know that BIG PLEASE REPLY is...but i need to rush to finish the website. Sorry for this. ^^

dave Leader
dave May 22 '13

I installed the theme and i have included an image for you.   If you go to admin appearance edit theme.   You can choose two things for the header

 

page header image and page promo image. 

 

The image i have included shows the black box where these will be located.

 

 

Attachments:
  crayonsample.jpg (72.1Kb)
Dave S
Dave S May 22 '13

I want like this:


dave Leader
dave May 22 '13

try ow_themes/crayon/master_pages/

 

on line 5 in dndindex.html

 

you see

<div class="ow_logo_wrap"><a href="{$siteUrl}">{$siteName}</a></div>

 

change to

 

<div class="ow_logo_wrap"><a href="{$siteUrl}"><img src="{$siteUrl}images/yourlogo" border="0" alt="" /></a></div>

 

do the same to general.html

 

and refresh your cache..

 

i have tested this but if your logo is only 28px height it should work. 

dave Leader
dave May 22 '13
you may need a  / infront of images/   like so  /images/yourlogo,  but test to see first...
Dave S
Dave S May 22 '13

Mine doesn't show up.


<div class="ow_logo_wrap"><a href="{$siteUrl}"><img src="{$siteUrl}images/untitled.png" border="0" alt="test" /></a></div>

to both HTMLs.


I think that "{$siteUrl}images/ is bad...I don't know. Please correct me, if i'm wrong.


dave Leader
dave May 22 '13

yes i figured it would take some tweeking, right click on that and see what the properties are, it will show you the url and you can fix that code from there. 

 

try /images/........       you might also try {$site_url}images/.....

 

what does it show when you do a page source ?

The Forum post is edited by dave May 22 '13
Dave S
Dave S May 23 '13
Okay, it works, but weird because it can work only with the file from the static folder.


<div class="ow_logo_wrap"><a href="{$siteUrl}"><img src="http://www.name.com/ow_static/themes/crayon/images/untitled.png" border="0" alt="test" /></a></div>


name.com/ow_themes/crayon/images/untitled.png shows a forbidden page. It says:


"You don't have permission to access /ow_themes/crayon/images/untitled.png on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


This is normal?

dave Leader
dave May 23 '13

check your permissions on the ow_themes folder and also make sure you clear your cache, do this by changing dev mod to true and then hit f5  or use the extreme cache plugin. 

 

Also it might be a good idea if you have personal images to keep them in a seperate images folder just for better management, just a preference is all.  If you do that such as root/images you will need to add some code to your htaccess.

Dave S
Dave S May 23 '13
Okay, i will try it.


check your permissions --> what permission should i set for this folder? to 777 from 644?

dave Leader
dave May 23 '13
themes should actually be 755, that is the normal setting
Dave S
Dave S May 23 '13
Now i understand that Forbidden thing. It's the same to other files from Images folder. It means that logo works. The CHMOD is normal, 755 for folders, 644 for files. All looks normal.


I'm happy that works. Dave, many thanks for your help. ,)

dave Leader
dave May 23 '13
happy you got it.... glad to help... is my check in the mail lol.... just kidding :)  if you need anything just holler...