Jump to content


Photo
- - - - -

HOOK Trouble


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 Karoleena Homes

Karoleena Homes

    Advanced Member

  • Members
  • 32 posts

Posted 03 January 2011 - 09:33 PM

Just trying to add my first 'hook' and having some trouble. I updated my base theme functions.php file with the following code and it allowed me to save, but I'm not seeing anything. I'm trying to add an image BEFORE the social icons area in the site branding section.

Please Login or Register to see this Hidden Content


Any help or advice would be so appreciated. I'm really stuck and have read almost every post I can find on hooks, watched the video, etc.

Thanks,
Amanda

#2 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 04 January 2011 - 02:39 AM

I think you need to update to: ` // Add MODA logo to header before social media icons add_action( 'pagelines_branding_icons_start', 'moda_logo'); ?> function moda_logo(){

#3 Karoleena Homes

Karoleena Homes

    Advanced Member

  • Members
  • 32 posts

Posted 04 January 2011 - 03:17 AM

Hi Bryan, Thanks so much for your reply. I just tried that and when I tried to save my functions.php file, I got the following error: Parse error: syntax error, unexpected '}' in /home/karoleen/public_html/wp-content/themes/platformbase/functions.php on line 68 Thanks for any insights you might be able to offer! Best, Amanda

#4 Karoleena Homes

Karoleena Homes

    Advanced Member

  • Members
  • 32 posts

Posted 04 January 2011 - 04:58 AM

I have no idea why this worked but I just replaced the stumbleupon hook that was sampled in the functions.php file with my new code and that worked. Random. Wish I could post a 'why' here but when I tried to add it to the bottom, I kept getting that error message. Thanks!