Jump to content


Photo
- - - - -

Add HTML Hook to Header


  • Please log in to reply
4 replies to this topic

#1 acephysio

acephysio

    Member

  • Members
  • 26 posts

Posted 14 August 2011 - 10:53 PM

Hi I would like to add the contact info in HTML format to my header for my website at acephysio.ca I attempted to do this by following the Hook video but I was unsuccessful. Using firebug I have identified that I would like to add my code into
or before the social media icons using a hook. I would like to add the following Div. Can you please explain how to do this, it seems like this should be a very simple modification yet the video does not address this fully. Thank you
Ace Physio
2 Carlton St, Suite 1307
Toronto, ON
M5B1J3
Thank you

#2 acephysio

acephysio

    Member

  • Members
  • 26 posts

Posted 14 August 2011 - 11:19 PM

Figured it out myself...now just gotta align correctly // add_action('hook_name','function name'); add_action('pagelines_branding_icons_end','contact_info'); // function name function contact_info() { ?>
Ace Physio
2 Carlton St, Suite 1307
Toronto, ON
M5B1J3
}

#3 acephysio

acephysio

    Member

  • Members
  • 26 posts

Posted 15 August 2011 - 12:00 AM

How can I align my social media and contact info to the top? acephysio.ca

#4 Jenny

Jenny

    Owned by PageLines

  • Unicorn Store Dev

  • 2917 posts
  • LocationWV
  • Country: Country Flag

Posted 15 August 2011 - 12:40 AM

You will need to add CSS to your custom CSS file for the "contact_info".

Otherwise you can do some inline styling. Adding

Please Login or Register to see this Hidden Content

moves it up nicely. I also suggest adding font elements since it doesn't match the rest of the page.

#5 acephysio

acephysio

    Member

  • Members
  • 26 posts

Posted 15 August 2011 - 03:19 AM

Perfect, thank you for your quick response, for anyone else who is looking to create a header this was the code // add_action('hook_name','function name'); add_action('pagelines_before_branding_icons','contact_info'); // function name function contact_info() { ?> Company Info
Address
Address Tel: 555-5555 Fax: 555-5555