• Resolved yavarkhan

    (@yavarkhan)


    i want to display footer saying customized by Team eldiablo and developed by themes&co

    add_filter( 'tc_credits_display', 'my_credits_display' );
    function my_credits_display($html) {
    	$logo_src    			= esc_url ( tc__f( '__get_option' , 'tc_logo_upload') ) ;
    	if ( empty($logo_src) )
    		return $html;
    	?>
    	<div class="span4 credits">
        	<?php
    	    	$credits =  sprintf( '<p> ·Team Eldiablo ? %1$s <a href="%2$s" title="%3$s" rel="bookmark">%4$s</a> · Designed by  %5$s ·</p>',
    				    esc_attr( date( 'Y' ) ),
    				    esc_url( home_url() ),
    				    esc_attr(get_bloginfo()),
    				    '<img src="'.$logo_src.'" alt="'.esc_attr(get_bloginfo()).'">',
    				    '<a href="'.TC_WEBSITE.'">Themes & Co</a>'
    
    			);
    			echo $credits;
    		?>
    	</div>
    	<?php
    }
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter yavarkhan

    (@yavarkhan)

    hey i tried but got error could u jst include a line abt themes&co contribution

    add_filter( 'tc_credits_display', 'my_credits_display' );
    function my_credits_display($html) {
    $logo_src = esc_url ( tc__f( '__get_option' , 'tc_logo_upload') ) ;
    if ( empty($logo_src) )
    return $html;
    ?>
    <div class="span4 credits">
    <?php
    $credits = sprintf( '<p> Team Eldiablo ? %1$s <a href="%2$s" title="%3$s" rel="bookmark">%4$s</a> ... Customized by %5$s... </p>',
    esc_attr( date( 'Y' ) ),
    esc_url( home_url() ),
    esc_attr(get_bloginfo()),
    '<img src="'.$logo_src.'" alt="'.esc_attr(get_bloginfo()).'">',
    '<a href="https://www.google.com/">Symon Inc </a> '
    
    );
    echo $credits;
    ?>
    </div>
    <?php
    }

    solved?

    Thread Starter yavarkhan

    (@yavarkhan)

    nop i tried didnt help

    Sorry, don’t get. I just used this function you pasted, it works, no errors. What kind of error you get?

    Thread Starter yavarkhan

    (@yavarkhan)

    actually i want it like this cause i want to give credit to the developer Nicolas Guillaume (nikeo).

    Customized by Symon Inc & designed by themes&co

    add_filter( 'tc_credits_display', 'my_credits_display' );
    function my_credits_display($html) {
    $logo_src = esc_url ( tc__f( '__get_option' , 'tc_logo_upload') ) ;
    if ( empty($logo_src) )
    return $html;
    ?>
    <div class="span4 credits">
    <?php
    printf( '<p> Team Eldiablo ? %1$s <a href="%2$s" title="%3$s" rel="bookmark">%4$s</a> ... Customized by %5$s... </p><p>designed by %6$s</p>',
    esc_attr( date( 'Y' ) ),
    esc_url( home_url() ),
    esc_attr(get_bloginfo()),
    '<img src="'.$logo_src.'" alt="'.esc_attr(get_bloginfo()).'">',
    '<a href="https://www.google.com/">Symon Inc </a> ',
    '<a href="https://www.themesandco.com/">Themes & Co</a> '
    );
    ?>
    </div>
    <?php
    }
    Thread Starter yavarkhan

    (@yavarkhan)

    d4z_c0nf,

    THANKU !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘help with footer credits’ is closed to new replies.