WordPress.org

Forums

Customizr
[resolved] Adding additional Credits at bottem (11 posts)

  1. Decimal
    Member
    Posted 1 year ago #

    Hi There,
    I am using Customizr theme.
    Trying to add additional costume credits at footer of my website but not getting (Used as Ref : http://www.themesandco.com/snippet/altering-adding-footer-credits/) I couldn't find child theme’s functions.php as mentioned in the snippet.
    Please advice.

    http://www.decimalcs.com/

  2. rdellconsulting
    Member
    Posted 1 year ago #

    You have to create the child theme, and functions.php.

    Read this documentation

  3. Decimal
    Member
    Posted 1 year ago #

    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.

  4. mlddev
    Member
    Posted 1 year ago #

    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

  5. Decimal
    Member
    Posted 1 year ago #

    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>';
    }

  6. Decimal
    Member
    Posted 1 year ago #

    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 !!

  7. stephencottontail
    Member
    Posted 1 year ago #

    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.

  8. Decimal
    Member
    Posted 12 months ago #

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

  9. stephencottontail
    Member
    Posted 12 months ago #

    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.

  10. Decimal
    Member
    Posted 12 months ago #

    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>';
    }
  11. Decimal
    Member
    Posted 11 months ago #

    I managed to figure it by myself.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic