Jump to content


Photo
- - - - -

Hardcoding Subdomain header to link to main domain home page


  • Please log in to reply
11 replies to this topic

#1 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 01:09 PM

I have a site that consists of a main domain and (1) subdomain. Can anyone help with how to hardcode the header image link in the subdomain to redirect to the main domain homepage..?

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 24 February 2011 - 02:01 PM

Hi Curtis - Is the PageLines theme installed in the subdomain?

#3 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 02:04 PM

Yes, both the domain & subdomain are running platform pro & base.

#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 February 2011 - 05:43 PM

Curtis, you can use the pagelines_site_logo filter to change the image href location:

The forum broke my code here is a pastebin:

Please Login or Register to see this Hidden Content



#5 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 05:57 PM

Does this go in the functions.php..?

#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 February 2011 - 06:16 PM

Does this go in the functions.php..?

If you are using a child theme yes.

#7 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 07:26 PM

This is what I've done, but it doesn't seem to do anything..?
Located in base/functions.php

Posted Image

#8 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 February 2011 - 07:45 PM

Ahh yes, slight typo

Please Login or Register to see this Hidden Content

This snippet actually works as promised! Tested just now on my dev box.

#9 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 08:36 PM

It still seems to do nothing for me..? I am however working inside of my "localhost" on my computer at the moment (waiting on some DNS transfers) then I can try this within the live server environment and maybe it will function properly... Hopefully, I'll be able to give this a try within a couple of hours or so...

#10 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 February 2011 - 09:13 PM

It still seems to do nothing for me..?

Stab in the dark, you have setup a custom logo right? The filter only applies to custom logos.

#11 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 24 February 2011 - 09:41 PM

Yep, custom logo uploaded as site header.

#12 cgouldie

cgouldie

    Member

  • Members
  • PipPip
  • 27 posts

Posted 01 March 2011 - 06:42 PM

Thanks for the help here... I may never get to know if it actually works... I stumbled upon a fantastic plug-in that allowed for this as well as the ability to create custom headers for any page within the site... Thanks.