• 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

Enterprise Pro Theme – Adding Image & Text Link to single.php File

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 › Enterprise Pro Theme – Adding Image & Text Link to single.php File

This topic is: resolved

Tagged: Enterprise Pro child theme, Genesis single.php file

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 7 months ago by alethamcmanama.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 20, 2015 at 7:09 am #141438
    alethamcmanama
    Member

    Hi,

    How do I go about adding an image and text link to a single.php file so that each time a visitor reads a single blog post, at the end of each article, you have a way of going back to a blog archive page? Below is a screenshot of exactly what I'm wanting to add to the single.php file.

    Back to Blog screenshot

    Here is an example of this on the bottom of this web page:
    http://srinikahealing.com/draft/blog-summary/

    I understand that the single.php file is located under the Genesis theme folder, not the child theme, Enterprise Pro, so I guess I really need to know how to create a child version of the single.php file so I can edit it, adding the image and text I want.

    Help?

    Thanks!

    Warmly,
    Aletha McManama

    http://srinikahealing.com/draft/blog-summary/
    February 20, 2015 at 1:22 pm #141523
    Christoph
    Member

    Better practice would be to hook into the genesis_entry_footer and insert your link and image.

    You can either install the Genesis Simple Hooks plugin or edit the functions.php directly.

    The code would look something like this:

    function link_blog_archive () {
    	if ( is_single( ) )
    	echo '<a href="link_to_your_blog_archive"><img src="link_to_your_image">Back to Main Blog</a>';
    };
    
    add_action( 'genesis_entry_footer', 'link_blog_archive' );

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    February 20, 2015 at 4:07 pm #141564
    Brad Dalton
    Participant

    Use this:

    add_theme_support( 'genesis-after-entry-widget-area' );


    Tutorials for StudioPress Themes.

    February 20, 2015 at 4:47 pm #141569
    Christoph
    Member

    @braddalton: Thanks! I forgot about that.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    February 20, 2015 at 7:45 pm #141589
    alethamcmanama
    Member

    Thanks, Christoph and Brad! I grabbed Brad's code above and added it to the functions.php file. Worked like a charm!

    Thanks again!

    Warmly,
    Aletha

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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