Jump to content
Sign in to follow this  
JasonLA

Coding Error

Recommended Posts

JasonLA

So I was watching the video on hooks for base child themes. I went into the folder functions.php and copy-pasted the code for the stumbleupon icon onto my site. Upon doing this I got this error message and now everything on the site is messed up. Parse error: syntax error, unexpected $end in /nfs/c09/h02/mnt/135242/domains/zoxstraps.com/html/wp-content/themes/platformpro/functions.php on line 23 Website is zoxstraps.com Code I put into the site is // add_action('hook_name','function name'); add_action('pagelines_branding_icons_end', 'add_icons_to_branding'); // function name function add_icons_to_branding(){ // what the function does??“in this case adds a stumbleupon icon to the header of your theme. The class referenced in the link can be seen in the style.css // and is the image from the CSS is placed in the images folder ?> If you could help me get everything back that would be awesome! Thanks

Share this post


Link to post
Share on other sites
JasonLA
I went into the server and fixed it.

Share this post


Link to post
Share on other sites
Danny
Hi Jason, The reason for the error is that you're editing the Platform Pro functions.php, you should be using Platform Base functions.php file for add your own code. Please download Platform Base from your account and install that and activate it, if you plan on adding your own code.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×