Tagged: x
-
AuthorPosts
-
June 26, 2016 at 1:54 pm #1060303
yoni pParticipantHi, i want to update wordpress and x theme version, so i installed and activated the child theme.
i am using ethos.
i have 2 files modified:
single.php , which i copy to same path as it is now but in child theme folder:
public_html/daisydesignblog.com/wp-content/themes/x-child/framework/views/ethos/the second modified file is function.php.
mine is modified on public_html/daisydesignblog.com/wp-content/themes/x/function.php
so i have add my extra code in the end of the file in the twin folde on child theme
public_html/daisydesignblog.com/wp-content/themes/x-child/function.phpthe extra code is i have added is:
// extra code about author
function add_after_content($content) {
if ( is_singular( ‘post’ ) ) {
$author_text = do_shortcode( ‘[gap size=”3em”][author class=”man” title=”על הכותבת”]’ );
return $content.’ ‘.$author_text;
}
}
add_filter(‘the_content’, add_after_content);// extra code url address color
add_action(‘wp_head’, function(){?>
<!— YOURE META HERE -START –>
<meta name=”theme-color” content=”#FF9A00″>
<!— YOURE META HERE -END –>
<?php });after adding the code, i get fatal error when access my wp-admin backend.
i delete the code from function.php on child theme and i now can access my backend.
i wish you can help.June 26, 2016 at 3:06 pm #1060349
yoni pParticipantthe url is daisydesignblog.com
June 26, 2016 at 3:10 pm #1060352
yoni pParticipanti forgot to delete the function.php extra code from parent theme.
stupid me.
it’s ok nowJune 26, 2016 at 5:18 pm #1060448
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1060303 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
