• 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

Making background clickable on all pages except home page

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 › Making background clickable on all pages except home page

This topic is: resolved

Tagged: background, clickability, clickable, genesis, home page, modern blogger pro

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by AdamDobay.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 20, 2014 at 4:09 pm #120087
    AdamDobay
    Member

    Hi guys,

    We're trying to come up with a solution to a design issue we're having right now, concerning a wallpaper advert that has to appear on all pages except the home page AND has to be clickable on all pages except the home page.

    Following an earlier thread's suggestion I am now able to make the background image disappear by editing home.php, this solves the first problem.

    But I can't seem to find a solution to change the clickability of the home page.

    I'm currently making the background clickable using the Genesis Hooks plugin to introduce a clickable div as the header starts, and then wrapping the content area in another div, defining z-indexes for both in style.css so it's not the entire blog that becomes clickable.

    But since Hooks are globally loaded, I don't know how I can disable the background's clickability on the home page while retaining clickability on all other pages.

    Do you know of a way we could not only disable the background image from the home page but also make clickability dependent on whether the user has loaded the home page or not?

    Is there something perhaps I could add to home.php that would make the site disregard some of the custom hooks?

    (I tried to solve this with the Background Manager plugin but it's a very resource-intensive plugin and our current server configuration can't take the load if it's turned on, so I have to find a way to do this in code.)

    Thank you in advance.

    Adam Dobay
    site admin
    urban-eve.hu

    http://www.urban-eve.hu
    August 20, 2014 at 7:41 pm #120108
    Anita
    Keymaster

    You can add a conditional statement to whatever code you are using - http://codex.wordpress.org/Conditional_Tags - !is_home() or !is_front_page().


    Love coffee, chocolate and my Bella!

    August 21, 2014 at 4:26 am #120170
    AdamDobay
    Member

    Excellent, it works wonderfully!

    Thank you so much, this saves my day. 🙂

    Adam

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Making background clickable on all pages except home page’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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