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

XF 1.5 Remove Background only for profile page

Discussion in 'Styling and Customization Questions' started by NicoKuroKusagi, Jan 15, 2016.

  1. Is it possible to remove the background image definded in the style body settings just for profiles?
  2. katsulynx

    katsulynx Well-Known Member

    You could create a second background laying above the original one, effectively removing it from sight, but the first indicator on what type of page you are happens 3 levels below the body, so you can't alter it directly from what I see spontaneously.
  3. I just want to remove the background completely from the profile page.. is that possible ? some changes in TMS maybe?
  4. Optic

    Optic Well-Known Member

    If you declare your background as CSS inline within page_container, you could wrap this conditional around it:

    <xen:if is="{$contentTemplate} != 'member_view'">
    <body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'} style="background-image:url(yourBG.jpg)">
    <xen:else />
    <body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
    <xen:hook name="body">
    Untested but that should work..
  5. Yes works perfectly! thanks!

Share This Page