Setting a rocket theme background to fixed

You can probably find this information of the rocket theme forum but I thought I'd put how I resolved this here.

 The issue is basically that you want the background to stay in its position in the browser while the rest of the elements scroll about.

  1.  Go to Extensions -> Template Manager> Edit the CSS for the template
  2. You should be given an option of css files, select styles.css and click on the Edit button 
  3. Look for these lines:
    body.bgstyle1 #main-background {background: url(/../images/backgrounds/bgstyle1/bgimage.jpg) 50% 0 no-repeat;}
    1.  body.bgstyle1 #main-background {background: url(../images/backgrounds/bgstyle1/bgimage.jpg) 50% 0 no-repeat;} 
  4. where 1 is the number of the style of the template I am setting the background for and I add the "fixed" attribute to this id.  This will yield the following:
    body.bgstyle1 #main-background {background: url(/../images/backgrounds/bgstyle1/bgimage.jpg) 50% 0 no-repeat fixed;} 
    1.  body.bgstyle1 #main-background {background: url(../images/backgrounds/bgstyle1/bgimage.jpg) 50% 0 no-repeat fixed;}  
  5.  Click on the 'Save' button.
  6. The theme is getting it from a generated php file.  Look in the CSS folder of the template.
  7. You should find a PHP file in this folder with the body.bgstyle# line you need to change as in steps 3 and 4.
Category: Joomla :: Article: 166

Credit where Credit is Due:

Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: The information on this website is provided without warranty and any content is merely the opinion of the author. Please try to test in development environments prior to adapting them to your production environments. The articles are written in good faith and, at the time of print, are working examples used in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman

Related Articles

Joes Revolver Map

Joes Word Cloud


Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Donate to Joel Lipman via PayPal

Donate to Joel Lipman with Bitcoin - Valid till 8 May 2022 3QnhmaBX7LQSRsC9hh6Je9rGQKEGNQNfPb
© 2022 Joel Lipman .com. All Rights Reserved.