Support » Plugins » Hacks » Problems with functions.php child file

  • Hi everyone,

    I’m using a child theme to work with my Explorable wordpress theme (by Elegant Themes).
    I tried to create a functions.php file and add some lines:

    * To modify a bit my YARPP plugin
    * To modify my user profil page by adding three fields:
    – Twitter
    – Linkedin
    – Public email

    My codes are working pretty well when I’m testing it with Wampserver. But when I put my code on the internet, I get this message for the Yarpp line:

    Fatal Error : Call to unidentified function phpadd_image_size() in /homez.744/moi/www/wp-content/themes/Explorable-child/functions.php on line 1

    and my fields won’t appear on my user profil page, so I couldn’t fill them (pretty logic…) !!!!! *mad*

    My functions.php file:

    add_image_size( 'yarpp-thumbnail', 110, 110, true ); // Définir la largeur puis la hauteur des thumbnails de YARPP
    #### Big thanks Aky Joe for its tut! ####
    Edit Custom Author Fields
    function extend_author_profile_twit( $twitfields )
    $twitfields['twitter'] = 'Twitter';
    return $twitfields;
    function extend_author_profile_linkin( $linkinfields )
    $linkinfields['linkedin'] = 'LinkedIn';
    return $linkinfields;
    function extend_author_profile_publicmail( $publicmailfields )
    $publicmailfields['publicmail'] = 'Mail <em>(public)</em>';
    return $publicmailfields;

    Could some one help me please?

    Thanks a lot,


Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    Try adding add_theme_support( 'post-thumbnails' ); before the call to add_image_size(). I believe it is required to add sizes even if you are not using featured images or post thumbnails. I’m just guessing, I’m not sure that is the problem.

    Pb solved.

    I put my code in the functions.php of my theme, not in my child theme.

    Thank you for your help 😉

    Best regards,


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems with functions.php child file’ is closed to new replies.