Code won't work in Child Theme Functions.php
-
I am editing this php file here: http://pastebin.com/VuH3C1XH
Line 54. I need to replace this line with this code:
<?php if (is_user_logged_in ()): ?> <?php $current_user = wp_get_current_user (); echo get_avatar ($current_user->user_email, 100); ?> <?php else: ?> <img src="http://richtrix.com/wp-content/uploads/2016/07/Register.jpg" alt="No avatar is available" /> <?php endif; ?>I edited this on my parent theme (bad, I know) and the changes worked perfectly. I undid the changes and went to my child theme to implement this edit.
Problem is, no matter how I edit my child theme functions.php, my website breaks down. Can someone please assist me in the correct way to make this edit?
I would be so grateful! I am driving myself insane trying to do this.
Jeff Arnold
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Code won't work in Child Theme Functions.php’ is closed to new replies.