Viewing 10 replies - 1 through 10 (of 10 total)
  • You have to create the child theme, and functions.php.

    Read this documentation

    Thread Starter Decimal

    (@decimalcs)

    Dave, I already created a Child to Customizr theme to accomodate my modifications, I only find one css (below)
    => Child-Customizr: Stylesheet (style.css)

    no functions.php.

    You need to create the functions.php file. The link rdellconsulting provided does mention some info on the functions.php file in relation to a child theme. You also may want to review this information. Specifically the Functions File section

    Thread Starter Decimal

    (@decimalcs)

    This time I did install ‘Customizr Child’ Theme and tried to updated its functions.php file still got hit with the same error(500).
    May be something wrong…

    Below is the code I used:

    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    function my_custom_credits(){
    $credits = ”;

    $newline_credits = ‘<span style=”color: #808080;”>?</span><span style=”color: #808080;”> BALIMI –
    </span>Disclaimer‘;
    return ‘
    <div class=”span4 credits”>
    <p> · © ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Designed by Themes & Co‘).’ ·’.($newline_credits ? ‘
    · ‘.$newline_credits.’ ·’ : ”).'</p> </div>’;
    }

    Thread Starter Decimal

    (@decimalcs)

    This time I did install ‘Customizr Child’ Theme and tried to updated its functions.php file still got hit with the same error(500).
    May be something wrong…

    Below is the code I used:

    /*
    add_filter(‘tc_credits_display’, ‘my_custom_credits’);
    function my_custom_credits(){
    $credits = ”;

    $newline_credits = ‘<span style=”color: #808080;”>?</span><span style=”color: #808080;”> BALIMI –
    </span>Disclaimer’;
    return ‘
    <div class=”span4 credits”>
    <p> · ? ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Designed by Themes & Co’).’ ·’.($newline_credits ? ‘
    · ‘.$newline_credits.’ ·’ : ”).'</p> </div>’;
    }
    */

    Any comments !!

    Did you actually put your code in between the /* */ marks? In PHP, that marks a comment, meaning your code won’t be executed. If you want to show code here, you need to either put it in backticks (`) or paste it somewhere like pastebin and post the link here.

    Thread Starter Decimal

    (@decimalcs)

    I didn’t used /* */ in my code, My bad if above posting gave that impression.
    Any suggestions appreciated.

    That’s alright. Can you post your code again, either in backticks (`) or somewhere like pastebin? What happened in your last post is that the forum parses your code as HTML and it makes it hard to figure out exactly what might be wrong.

    Thread Starter Decimal

    (@decimalcs)

    Here you go,

    add_filter('tc_credits_display', 'my_custom_credits');
    function my_custom_credits(){
    $credits = '';
    
    $newline_credits = '<span style="color: #808080;">?</span><span style="color: #808080;"> BALIMI -
    </span>Disclaimer';
    return '
    <div class="span4 credits">
    <p> · ? '.esc_attr( date( 'Y' ) ).' '.esc_attr(get_bloginfo()).' · '.($credits ? $credits : 'Designed by Themes & Co').' ·'.($newline_credits ? '
    · '.$newline_credits.' ·' : '').'</p> </div>';
    }
    Thread Starter Decimal

    (@decimalcs)

    I managed to figure it by myself.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding additional Credits at bottem’ is closed to new replies.