• Resolved DancingFighterG

    (@dancingfighterg)


    Hello, how do I remove the following from the footer of the theme:

    Designed by Themes & Co

    Currently my site is showing “? 2014 Shades of Happiness · Designed by Themes & Co” but I only want to show “2014 Shades of Happiness”

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter DancingFighterG

    (@dancingfighterg)

    Currently I’m using a child theme to customize the footer to include a logo:

    add_filter('tc_colophon_right_block', 'my_image');
    function my_image(){
        $img_url = get_stylesheet_directory_uri().'/imgs/hdfooterlogo.png'; //put your image in child-theme/imgs
        $width = '250px'; /* change these values */
        $height = '79px'; /* ^ */
        $img = '<a href="https://hunterdouglas.com"><img alt="logo" src="'.$img_url.'" width="'.$width.'" height="'.$height.'" class="pull-right"></a>';
        return '<div class="span4 right-image">'.$img.'</div>';
    }
    
    ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I would like to modify the child them to take away what I want

    Thread Starter DancingFighterG

    (@dancingfighterg)

    Here is the url to the site:

    https://shadesofhappiness.com/

    Thread Starter DancingFighterG

    (@dancingfighterg)

    In in a past post that I did here was some code to modify the credits for the theme:

    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> · ? %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
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Trying to see if I can place this in the function.php for my child theme

    Thread Starter DancingFighterG

    (@dancingfighterg)

    Ok, I was able to modify the function to do what I need it to do. Thanks!!

    There’s a snippet for this on the themesandco site: https://www.themesandco.com/snippet/altering-adding-footer-credits/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing Designed by Themes & Co ·’ is closed to new replies.