Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

Reply To: Using various background/content colors

Home Forums Support Using various background/content colors Reply To: Using various background/content colors

Home Forums Support Using various background/content colors Reply To: Using various background/content colors

#99839
Tom
Lead Developer
Lead Developer

Ah, so you’re trying to display a different image inside GP Hooks for each page?

If so, you’ll need to use PHP conditionals.

For example:

<?php if ( is_page( 'page-slug' ) ) : ?>
Image for yourURL.com/page-slug
<?php endif; ?>

<?php if ( is_page( 'another-page' ) ) : ?>
Image for yourURL.com/another-page
<?php endif; ?>

Then click “Execute PHP” for that hook.