Viewing 6 replies - 16 through 21 (of 21 total)
  • Say you put this image in your child-theme/imgs (create that imgs dir)
    then the code you have to use would be something like:

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

    Thread Starter DancingFighterG

    (@dancingfighterg)

    One last question:

    What do I need to modify in the code to allow the image to link to a website?

    you see that $img ?
    Wrap it in a <a href="URL"></a>.
    Eg:
    $img = '<a href="https://www.google.com" target="_blank"><img alt="logo" src="'.$img_url.'" width="'.$width.'" height="'.$height.'" class="pull-right"></a>';

    Thread Starter DancingFighterG

    (@dancingfighterg)

    Cool thanks!! You are great. Will be using more of your themes include this one for other projects as well. What other themes do you support other than this one?

    This theme is not “my” theme, this theme is written by @nikeo : https://profiles.www.ads-software.com/nikeo/

    I just give an hand here.. ??

    Thanks for your appreciation and enjoy the theme.

    p.s.
    if you think your issue is solved could you mark this topic as resolved?
    Thanks

    Thread Starter DancingFighterG

    (@dancingfighterg)

    Thanks!!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Adding footer image to right corner’ is closed to new replies.