1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 can user fields be used in EXTRA.css?

Discussion in 'Styling and Customization Questions' started by CrispinP, Apr 20, 2016.

  1. CrispinP

    CrispinP Active Member

    Hi folks,

    Can this be done?

    .userBanner.hasFlag
    {
    color: white;
    background-image: url("/custom/images/flags/{$user.customFields.country_flag.value}");
    background-repeat: no-repeat;
    background-position: center;
    }

    It's not working for me but I'm not sure if it's just plain wrong of because it is in EXTRA.css.

    if not, how else can I dynamically put a value into the background image?


    Thanks
    Crispin
     
  2. CrispinP

    CrispinP Active Member

    Actually - I see that it's all wrong. I want that in the postbit to show their country flag but extra.css is all wrong. Never mind :(
     

Share This Page