WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] Removing Designed by Themes & Co · (6 posts)

  1. DancingFighterG
    Member
    Posted 1 month ago #

    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"

  2. DancingFighterG
    Member
    Posted 1 month ago #

    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="http://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

  3. DancingFighterG
    Member
    Posted 1 month ago #

    Here is the url to the site:

    http://shadesofhappiness.com/

  4. DancingFighterG
    Member
    Posted 1 month ago #

    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

  5. DancingFighterG
    Member
    Posted 1 month ago #

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

  6. ElectricFeet
    Member
    Posted 1 month ago #

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

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.