Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Background header - image not working

Featured Replies

Hi

Very new to this and I am sure this is something simple. I've uploaded a resource, and in the theme editor using custom CSS I have added the following:

.ipsHeader__primary {

background-color: transparent;

background-image: url('{resource="custom/Banner Image.JPG" app="core" location="front"}');

width: 100%;

background-position: center bottom;

background-size: cover;

background-repeat: no-repeat;

}

However it does nothing - the file address is the address in the resource above the 'Use this tag in templates to insert this resource'.

Any help would be welcome! Also - how do you change the images in grid view?

Thanks

 

Hi, I've just come acrosss this myself. I think it might be a bug. I assume you are using IC5 from the CSS class name?

The code that is generated in Manage Resources won't work when you use it in CSS templates, it appears as empty quotes when you inspect the source code.

image.png

  • Community Expert

That bug has been fixed for the next update. If you add your code to the front end Custom CSS area (in the Theme Editor), it'll work correctly.

Awesome, thanks @Ehren

Confirmed this workaround works!

Edited by The Old Man

This workaround has its hazards!

  • 2 weeks later...
On 6/9/2025 at 5:19 AM, Ehren said:

That bug has been fixed for the next update. If you add your code to the front end Custom CSS area (in the Theme Editor), it'll work correctly.

Hi @Ehren

I just wanted to double check this is definitely fixed in the next release, as I couldn’t see a bug in the tracker for it. It is so vital that we can parse PHP in the CSS and JS templates in the back-end Theme Designer Mode Settings.

Many thanks!

Graham

  • Community Expert

Yep. I reported this issue to the devs on May 16 and Esther fixed it on May 22, ready for 5.0.9.

Fantastic, thanks Ehren!

cake dessert GIF by HuffPost

I don't think this has been fully fixed after all.

I upgraded from v5.0.8 to v5.0.9 then I moved my custom CSS back to the AdminCP Theme Settings CSS template, and whilst the PHP is now being correctly parsed inside the CSS template (to control what gets output in the generated CSS), the CSS image resources are still not appearing inside the generated CSS.

image.png

The CSS excerpt:

background-image: url( '{resource="custom/moonlight-night-horror-full-moon-703553-2000.webp" app="core" location="front"}' );

image.png

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.