• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

how to add social image in footer

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › how to add social image in footer

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 9 years, 8 months ago by Doug Edgington.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 5, 2016 at 6:57 pm #180727
    webgirl20
    Member

    Hello,
    How would you add a social media image in the footer, it would be located next to copyright.
    Copyright 2016 l Privacy Policy l website by xxx l social media image

    Tried the code below on localhost first but the linkedIn image didn't show.

    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'sp_custom_footer' );
    function sp_custom_footer() {
    	?>
    	<p>&copy; 2016 &middot; Privacy Policy &middot; website by xxx &middot; <a href="http://linkedin.com">
         <img src="<?php bloginfo("template_url") ?>/uploads/2016/03/linkedin24px.png" alt="LinkedIn" />
    </a></p>
    	<?php
    

    thanks

    March 5, 2016 at 10:54 pm #180732
    Doug Edgington
    Member

    I typically use the Genesis Simple Edits plugin to modify the footer in case changes need to be added later. It prevents the need to modify the theme.

    You are missing the closing bracket for your function.

    Your image likely isn't showing due to the bloginfo() function. Since you need the value for use in the php, you would want to use get_bloginfo('template_url'). You can also use get_stylesheet_directory_uri().
    Additionally, since you are trying to reference an image located in the theme directory, you would not be referencing the uploads folder.

    So if you are trying to reference an image stored in an image folder within your theme folder, it might look something like the following:

    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'sp_custom_footer' );
    function sp_custom_footer() {
    	?>
    	<p>&copy; 2016 &middot; Privacy Policy &middot; website by xxx &middot; <a href="http://linkedin.com">
           <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/linkedin24px.png" alt="LinkedIn" />
           </a></p>
    	<?php
    	}

    Doug Edgington
    http://www.dougedgington.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble