• 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

Add a link to background image

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 › Add a link to background image

This topic is: not resolved

Tagged: background image, News Pro

  • This topic has 3 replies, 3 voices, and was last updated 10 years, 2 months ago by Brad West.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 4, 2016 at 2:11 am #180618
    comicsbeat
    Member

    I am using News Pro theme and I would like to add a link to a background image so that when you click on it it goes to a different page. Any ideas for how to do this?

    March 4, 2016 at 2:20 am #180620
    Brad West
    Member

    You can't add a link to a background image per say, but you can wrap that area with an a tag so it will appear to be a link on the image.

    So I'll assume you've got something like this now:

    <div class="wrapper">
      <div class="inner"></div>
    </div>
    
    .inner {
      background-image: url('/images/img.jpg');
    }

    All you'll need to do is add the a tag around your inner div:

    <div class="wrapper">
      <a href="http://yourlink.com/">
        <div class="inner"></div>
      </a>
    </div>
    
    .inner {
      background-image: url('/images/img.jpg');
    }
    March 4, 2016 at 2:23 am #180623
    Doug Edgington
    Member

    A link can reside over top of a background image. Can you provide a link to the page that contains the background image you are referring to?


    Doug Edgington
    http://www.dougedgington.com

    March 5, 2016 at 3:01 am #180690
    Brad West
    Member

    Here's a code sample demonstrating what I was talking about: https://jsfiddle.net/bradonomics/0aq78o5s/

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

© 2026 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