Advertisement:

Author Topic: How to add a Home link to my Logo [ SOLVED ]  (Read 2743 times)

stanjohn123

  • Jr. Member
  • **
  • Posts: 76
How to add a Home link to my Logo [ SOLVED ]
« on: November 10, 2013, 06:47:31 pm »
Hi Everyone ,

         I want to add a home link to my logo so that users can just click the logo from any page and be redirected to my homepage. This is my site http://classifieds.wheelnmotor.com/ . FYI , this option was 'ON' by default but I had it disabled with the help of digitalconcepts. But I don't know how he did it.

        So I hope someone/ DC can help me get it back to how it was before since users like and want this option.

Thanks.
« Last Edit: November 15, 2013, 11:16:46 pm by stanjohn123 »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to add a Home link to my Logo
« Reply #1 on: November 10, 2013, 09:15:31 pm »
@stanjohn123

Go to oc-content/themes/your_theme/header.php and find this line:

Code: [Select]
<!--<a id="logo" href="http://classifieds.wheelnmotor.com/"><a id="logo" href="http://classifieds.wheelnmotor.com/"><img border="0" alt="WNM Auto Classifieds" src="http://classifieds.wheelnmotor.com/oc-content/themes/realestate/images/logo.jpg" /></a></a>-->

change it to

Code: [Select]
<a id="logo" href="http://classifieds.wheelnmotor.com/"><a id="logo" href="http://classifieds.wheelnmotor.com/"><img border="0" alt="WNM Auto Classifieds" src="http://classifieds.wheelnmotor.com/oc-content/themes/realestate/images/logo.jpg" /></a></a>

Then go to style.css and find this:
Code: [Select]
#header {width: 1100px;height: 150px;position: relative;margin: 0 auto;background: none repeat scroll 0% 0% rgb(56, 56, 56);border-radius: 10px;background-image: url('./images/Image3.png');}

change it to:
Code: [Select]
#header {width: 1100px;height: 150px;position: relative;margin: 0 auto;background: none repeat scroll 0% 0% rgb(56, 56, 56);border-radius: 10px;}

stanjohn123

  • Jr. Member
  • **
  • Posts: 76
Re: How to add a Home link to my Logo
« Reply #2 on: November 10, 2013, 10:21:37 pm »
Thanks Frosticek,

         Your code worked perfectly. It's working now.

close2u

  • Newbie
  • *
  • Posts: 16
Re: How to add a Home link to my Logo [ SOLVED ]
« Reply #3 on: December 08, 2013, 09:53:09 pm »
how about if i want both Page title  and  logo image!!

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: How to add a Home link to my Logo [ SOLVED ]
« Reply #4 on: January 14, 2014, 10:51:09 pm »
In that case you could make a logo including text and only show the logo?  :)

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a Home link to my Logo [ SOLVED ]
« Reply #5 on: January 14, 2014, 11:07:13 pm »
how about if i want both Page title  and  logo image!!

Though I prefer SmaRTeY's answer. You could also:
 
Edit theme header.php file.
Find - <div id="header">
Add directly below above line:
<?php echo osc_page_title() ; ?>
This will show the website Title to the left of the Logo.
 
You could add it directly below:
                <div id="user_menu">
This should place the website Title directly above the Login - Register on the far right of page.
 
 Likely there will be no styling so you may want to edit the css file.
 
Tom
« Last Edit: January 19, 2014, 11:49:46 am by tomshaft »

close2u

  • Newbie
  • *
  • Posts: 16
Re: How to add a Home link to my Logo [ SOLVED ]
« Reply #6 on: January 19, 2014, 10:06:21 am »
Big thanks to tomshaft  ;D