- This topic has 6 replies, 3 voices, and was last updated 8 years, 11 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
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.
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!
Have you figured out how to do this yet?
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?
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.
Duh! You're right. It's ok now.
Thanks a lot Christoph 🙂
© 2024 WPEngine, Inc.