• This is what I’m trying to accomplish. I would like to add additional social icons above the author bio. I can remove them by going into the theme options and removing the # from the link box.

    I found the author bio section in the parent theme’s function.php. If I add this section of code to the list of other social sites in function.php

    if ( '' != of_get_option('g_author_bio_social_pinterest') ) {
    			echo "<a href='".esc_url( of_get_option('g_author_bio_social_pinterest') )."'><i class='icon-pinterest'></i></a>\n";
    		}

    and then add this code to options.php,

    $options['g_author_bio_social_pinterest'] = array( "name" => __( "Author Pinterest URL", "duena" ),
    							"desc" => __( "Enter Author Pinterest URL", "duena" ),
    							"id" => "g_author_bio_social_pinterest",
    							"type" => "text",
    							"class" => "hidden",
    							"std" => "#");

    I have to go into the theme options and save the changes (even though I didn’t actually change anything in the options) then when I go to my site, I have the new social icon.

    The problem is, I had to add this code to the parent’s theme. How can I use my child theme to accomplish this? I’m pretty sure it has to do with using the functions.php but I’m a php noob and any guide I’ve found online hasn’t help. Can someone provide any assistance please?

    Thanks in advance.

The topic ‘using functions.php can someone help?’ is closed to new replies.