Adding a function to a child theme's functions.php file
-
I have a simple newbie question:
I am using the Twenty Eleven theme and want to add a function to my child theme’s functions.php file.
Right now, my child functions.php file has only the following lines in it:
<?php /* adding second & third nav to child theme */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'twentyeleven-child' ), 'secondary' => __( 'Secondary Menu', 'twentyeleven-child'), 'third' => __( 'Third Menu', 'twentyeleven-child'), ) ); ?>I want to add a function to this child functions.php file that will be a modification to the function “twenty eleven_posted_on()” that appears in the main (parent) functions.php file.
What I want to know is simply this: do I add the modified function right below the code I have in functions.php already?
In other words, can I simply add the code:
function twentyeleven_posted_on() { …modified function code goes here... );Thank you.
My site: http://roadslesstraveled.us
The topic ‘Adding a function to a child theme's functions.php file’ is closed to new replies.