0
Welcome Guest! Login
0 items Join Now

SOLVED Add a custom css file to a template override

  • Re: SOLVED Add a custom css file to a template override

    Posted 10 years 1 month ago
    • Thank you.

      I am new to RocketThemes and getting started is always trying.

      Thanks alot.

      Bill S.
    • D.Bell's Avatar
    • D.Bell
    • Sr. Rocketeer
    • Posts: 127
    • Thanks: 2

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • Hi,

      I'm having the same problems where I would create a custom css file as per the instructions here - www.gantry-framework.org/documentation/j...custom_stylesheet.md

      I have placed my custom css file here /public_html/templates/rt_clarion/css

      I have named the css file rt_clarion-custom.css

      I have cleared the cache and browser cache, no luck.

      The css I am trying to apply is this:

      h1: before {content:" ";background: url("csgoicon.png") no-repeat; height: 38px ; width: 50px; display: inline-block; margin-right: 10px;}
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • Is this site online? If so, please provide the URL to the issue.
      :)
    • D.Bell's Avatar
    • D.Bell
    • Sr. Rocketeer
    • Posts: 127
    • Thanks: 2

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • cdavis411 wrote:
      Is this site online? If so, please provide the URL to the issue.
      :)

      Indeed it is -

      www.csgoreplays.com

      I have a feeling that gzip or compression might be having some impact.
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • Please disable all caching and compression until this issue is resolved. (e.g.Joomla, caching, RokBooster or RokGzipper plugins or the Gantry Gzipper or the Less compiler in the "Advanced" tab of template manager and any 3rd party caching extensions).
    • D.Bell's Avatar
    • D.Bell
    • Sr. Rocketeer
    • Posts: 127
    • Thanks: 2

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • cdavis411 wrote:
      Please disable all caching and compression until this issue is resolved. (e.g.Joomla, caching, RokBooster or RokGzipper plugins or the Gantry Gzipper or the Less compiler in the "Advanced" tab of template manager and any 3rd party caching extensions).

      I have disabled all caching, RokBooster, RokGzipper etc. Still the same.

      Edit: Issues with the CSS, Resolved.

      Thank you for the help.
    • Last Edit: 9 years 4 months ago by D.Bell.
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Add a custom css file to a template override

    Posted 9 years 4 months ago
    • it is likely that the cache just needed to be cleaned. so that it would pull in the new css rules tot he cached files.
    • Denis's Avatar
    • Denis
    • Newbie
    • Posts: 12
    • Thanks: 0

    Re: SOLVED Add a custom css file to a template override

    Posted 8 years 10 months ago
    • Hi all,

      It seems like I have the similar problem. My situation is next: I am trying to implement this image as a background image on this site (it is under construction, so you may visit it as login:rocketguest passw:rocketguest).

      I make the css file called rt_lexicon-custom.css and put it in /templates/rt_lexicon/css:
      body {
          background-image: url("https://download.unsplash.com/photo-1430165558479-de3cf8cf1478");
           background-size: cover;
           background-repeat: no-repeat;
      	}

      But the image does not displayed as background image on the site. I cleaned up all the cashe, but nothing has changed.

      Please help me in solving the problem. What I need to do?
    • Last Edit: 8 years 10 months ago by Denis.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Add a custom css file to a template override

    Posted 8 years 10 months ago
    • add

      div#rt-page-surround {
      background: transparent;
      }

      to your css
    • Denis's Avatar
    • Denis
    • Newbie
    • Posts: 12
    • Thanks: 0

    Re: SOLVED Add a custom css file to a template override

    Posted 8 years 10 months ago
    • Henning, thanks, bu unfortunately, it doesn't fix.

      I activated the needed image as Page Surround Background Image in the template manager but I am not satisfied by the result of such activation, because mainbody area has not became transparent after my implementation of the css code submitted by you.

      Maybe you have any other idea?

Time to create page: 0.064 seconds