Jump to content


Photo
- - - - -

Add different logos to different pages with hooks

hooks logo different pages

  • Please log in to reply
5 replies to this topic

#1 helvetik_a

helvetik_a

    Advanced Member

  • Members
  • 99 posts
  • Locationrome - italy
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 17 June 2013 - 12:17 PM

Hi,

I would like to add to every page a different logo. How can i do this? I read something about hooks, but there is no further information.

Or is this possibile with css?

 

Thx

 

Corina



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 17 June 2013 - 01:10 PM

Hi Corina,

 

To be brutally candid, this is not a recommended practice as it will adversely affect your SEO.

 

You can however, add a branding image (logo) by CSS on an individual page.

 

You'll have to remove the Branding or BrandNav from your template and replace it with one of the available sidebars, or after installing, the Content Box.  In there you'd implement a customized div with a unique class like <div class='mycustomlogo">place the link to the destination</div>

 

For the CSS, you'll prefix the code with the page ID like such:

.page-id-2 .mycustomlogo { background-image: url ('theurltotheimage');}

 

For each page, you'll paste code for the unique logo.



#3 helvetik_a

helvetik_a

    Advanced Member

  • Members
  • 99 posts
  • Locationrome - italy
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 17 June 2013 - 01:22 PM

thx a lot! i will try this out and let you know. i was unsure what would be the best way to do that :)



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 17 June 2013 - 01:50 PM

Excellent.



#5 helvetik_a

helvetik_a

    Advanced Member

  • Members
  • 99 posts
  • Locationrome - italy
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 17 June 2013 - 02:19 PM

That worked perfectly! Thx a lot!!!



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 17 June 2013 - 03:40 PM

You're very welcome.







Also tagged with one or more of these keywords: hooks, logo, different pages