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

XF 1.4 Need help making this Background .css code fit on one page only.

Discussion in 'Styling and Customization Questions' started by oO5 Dynasty, Jul 2, 2015.

  1. oO5 Dynasty

    oO5 Dynasty Active Member

    Code:
    /* START - Background image on forum */
    html {
    background: url(/@imagePath/xenforo/background/your_image.jpg) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    }
    /* END - Background image on forum */
    trying to make this background show on one page only. The form_List page
     
    Last edited: Jul 2, 2015
  2. batpool52!

    batpool52! Well-Known Member

    Could be due to the background color?
     
  3. Dylan V

    Dylan V Well-Known Member

    Hello,

    You can apply this directly by implanting a condition in the html tag in the "PAGE_CONTAINER" template. Replace this:
    Code:
    <html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
    With:
    Code:
    <html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml" <xen:if is="{$contentTemplate} == 'forum_list'">style="background-color: #000000;"</xen:if>>
    Change "background-color: #000000" with what you want.
     

Share This Page