Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1060303
    yoni p
    Participant

    Hi, 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.php

    the 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.

    #1060349
    yoni p
    Participant

    the url is daisydesignblog.com

    #1060352
    yoni p
    Participant

    i forgot to delete the function.php extra code from parent theme.
    stupid me.
    it’s ok now

    #1060448
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1060303 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>