• 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

Agency Pro background image only in Homepage

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 › Agency Pro background image only in Homepage

This topic is: not resolved

Tagged: Agency, background, image

  • This topic has 6 replies, 3 voices, and was last updated 11 years, 4 months ago by Frank.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 8, 2015 at 9:33 am #143673
    Frank
    Member

    Hello,

    I want to use an image in the homepage and have a simple white color on all other pages. I'm sure there is some code that can be changed, so that the image displays only in the homepage.

    Can you help me telling me where is the code (functions.php, fron-page.php, elsewhere) and what line should I change to appear "only in the homepage"?

    Thanks in advance!

    March 30, 2015 at 8:41 am #146105
    Amy Kvistad
    Member

    Have you figured out how to do this yet?

    March 30, 2015 at 10:43 am #146129
    Frank
    Member

    Nope 🙁 The SP support team told me to come here and ask, but as you see, there is no answer yet to the question.

    Can anyone tell us how to have the background image in the Agency pro theme to appear _only_ in the homepage?

    March 30, 2015 at 11:33 am #146148
    Christoph
    Member

    Hi,

    look here:
    http://wpsites.net/web-design/display-agency-pro-background-image-only-on-front-page/


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

    March 30, 2015 at 12:19 pm #146161
    Frank
    Member

    Hello Christoph,

    Thanks for your reply but it seems the post may refer to a prior version of the theme or maybe I'm doing something wrong, because using method one, I get this error:

    Fatal error: Cannot redeclare agency_enqueue_backstretch_scripts() (previously declared in /wp-content/themes/agency-pro/functions.php:46) in /wp-content/themes/agency-pro/front-page.php on line 108

    And I'm not sure where the code from method 2 should be placed in the funstions.php file. I believe this second way to do it is best, so I would appreciate if you could explain it for the current version of the theme.

    Thanks!

    March 30, 2015 at 12:37 pm #146170
    Christoph
    Member

    Hi,

    you have to cut and paste the code or delete the code from the functions.php after you pasted it into the front-page.php.
    You cannot have the code in both the functions.php and the front-page.php.


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

    March 30, 2015 at 12:57 pm #146175
    Frank
    Member

    Duh! You're right. It's ok now.

    Thanks a lot Christoph 🙂

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