Reordering header elements with a child theme leads to undefined error
-
Hey! I’m a newbie WP user, so please be kind.
I’m using a premium stock theme. In order to reorder my header’s menus, I copy-pasted header.php into a child theme’s function.php and reordered the code.
When I save the changes and try to reload the site, I’m given a fatal error message that
ct_tracks_social_site_list()
is undefined in a file.I tried copy-pasting the referenced file’s code into the child theme’s functions.php, too, but that just leads to more errors.
Am I on the right track? If so …
While I am somewhat familiar with coding, I don’t know PHP or WordPress. Are there some rules I have to obey when copying code from different files into the child theme’s functions.php file?
Here is the code referenced by the undefined error: https://pastebin.com/ySCtE94q I’m not even using any of the social networks mentioned in the file anywhere on the site.
- The topic ‘Reordering header elements with a child theme leads to undefined error’ is closed to new replies.