• Resolved daisyli29

    (@daisyli29)


    Hi all, I’m trying to edit the footer credit by using the formula provided by cutomizrpress. I’ve added the lines below to my functions.php, but have been getting Parse error: syntax error, unexpected ‘6’ (T_LNUMBER) in /home/arecoper/public_html/wp-content/themes/arecoperf-child/functions.php on line 4.

    I tried adding my credits in $credits and $newline_credits, but it was giving me an error as well. The input below was from another source. Regardless, it’s not working at all. At a loss here so it would be amazing if someone can give me a hand

    add_filter(‘tc_credits_display’, ‘my_custom_credits’, 20);
    function my_custom_credits(){
    $credits = ”;
    $newline_credits = ”;
    return ‘
    <div class=”span6 credits”>
    <p> · © ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Areco Perforating Technology Inc. All Rights Preserved’).’ ·’.($newline_credits ? ‘<br />· ‘.$newline_credits.’ ·’ : ”).'</p> </div>’;
    }

    • This topic was modified 7 years, 2 months ago by daisyli29.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try this

    /********************************************************/ 
    /* edit footer copyright notice */
    /********************************************************/ 
    add_filter('tc_credits_display', 'my_custom_credits');
    function my_custom_credits(){
    echo '<div class="span4 credits">
        		    	<p> &copy; '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'">'.esc_attr(get_bloginfo()).'</a> &middot; <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.get_bloginfo( 'description' ).'</a> </p></div>';
    }
    Thread Starter daisyli29

    (@daisyli29)

    Thank you! Would you mind letting me know where I can input my credit information? I’m trying to display ? 2017 Areco Perforating Technology Inc – All Rights Reserved

    Download and install My Custom Functions Plugin, activate it then go to appearance > Custom Functions and paste code into field.

    @daisyli29

    Or just stay with what you tried first.

    
    add_filter('tc_credits_display', 'my_custom_credits');
    function my_custom_credits()
    
    {
    $credits = 'Areco Perforating Technology Inc – All Rights Reserved';
    $newline_credits = 'Customizr theme by <a href="https://www.themesandco.com/">Press Customizr</a>';
    return '
    <div class="span6 credits">
              <p>  &copy; '.esc_attr( date( 'Y' ) ).' '.($credits ? $credits : '').' '.($newline_credits ? '<br /> '.$newline_credits.' ' : '').'</p> </div>';
    }

    Assuming you will be so nice to give credits to Customizr too ;o))
    If not, you might put your All Rights Reserved in the newline_credits instead.

    And if you want the circled-R instead of the (c) then change the &copy; to &reg;

    Thread Starter daisyli29

    (@daisyli29)

    Thank you all!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Footer credit question’ is closed to new replies.