0
Welcome Guest! Login
0 items Join Now

SOLVED background image in the header

    • beamaria's Avatar
    • beamaria
    • Elite Rocketeer
    • Posts: 513
    • Thanks: 6

    SOLVED background image in the header

    Posted 12 years 2 months ago
    • I'm working on local with the latest Gantry framework and template.
      The base is preset 3, now renamed to mypresets after my personal customisation.
      I've a Roksprocket gallery (only images) in header-a position and mainmenu in header-b position, just beside the gallery. I'd like to change the dark header to a texture image, but I'm not sure:
      1) in which folder I must put my image
      2) which css code I must use
      3) if in a future I update the gantry fw, all my changes willl be saved? and where?
      Thanks!
    • Last Edit: 12 years 2 months ago by beamaria.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • 1. up to you - anywhere you like
      2. without seeing your site it is difficult to adivse you.
      3. see below...

      As GANTRY4 now incorporates LESS. There are two recommended methods for dealing with your custom changes to the template.

        1. For those of you that want to stick with traditional CSS, you can simply create a file called "
      <TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where TEMPLATENAME is the name of the template e.g. rt_fracture). GANTRY4 will automatically load this CSS file. you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"
        2. For those of you that want to use the power of
      LESS (compiled CSS), you can simply create a file called "template-custom.less" (that is the file name - don't change it) and put this file in the less folder of the template. Now clear your cache! GANTRY4 will automatically detect this file and automatically compile the LESS code therein and put it into the compiled css for your site (along with the other compiled LESS files from the template). Note that you can just put ordinary CSS in a LESS file but you are strongly encouraged to learn more about LESS as it will speed up your development and make it clearer.

      Do not change the CSS files in the compiled-css folder as these changes will be lost whenever Gantry 4 detects a change in a LESS file, or the cache gets cleared.

      For more information on LESS please see the documentation on Gantry 4 at http://www.gantry-framework.org . Also, see this tutorial http://www.rockettheme.com/forum/index.php?f=662&p=860738&rb_v=viewtopic#p860738 .

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • beamaria's Avatar
    • beamaria
    • Elite Rocketeer
    • Posts: 513
    • Thanks: 6

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • Hi Mark
      unfortunately I've only a screenshot of my header, but it's on local, so no http Url to give you: is there any system to attach my image? (maybe through PM??)
      THANKS
    • webarnes's Avatar
    • webarnes
    • Sr. Rocketeer
    • Posts: 107
    • Thanks: 6

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • You can upload your background image via the media manager in the joomla administrator.
      You can then directly edit the css to access the image. Include the location of the image -
      ./images/my-folder/my-bg-image.png

      Follow MrT comment ^ for editing your css files.

      Regards,
      William
    • -- William
    • beamaria's Avatar
    • beamaria
    • Elite Rocketeer
    • Posts: 513
    • Thanks: 6

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • Thanks William,
      I know how to upload my image in joomla, but my problem is different: I want to know how to attach the screenshot of my header in this post....
      and I 've have the same problem in another post of this forum, concerning a wrong layouts with 4 columns roksprocket mosaic :oops:
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • To attach a screenshot to a post: Just click on the orange button "Post reply" (not that hard to find) ... it will give you an option for uploading your files.

      The place inside a css file doesnt matter (in most cases).
      To make it easier for you to find stuff again ... add your lines at the end of the file your are working on.
      It doesn't matter wich css file that is ... it just needs to get loaded.
      Since you seem to be new to webdesign I suggest to create a custom css file.
      In Gantry 4 all you need to do for that is create a file "template-name"-custom.css in the css folder of your template. So that would be "gantry-custom.css" in the basic gantry template.

      Never change a thing in libraries/gantry ...
      Never change a thing in css-compiled ...
      The custom folder has nothing to do with css ...

      Since you have a valid membership read this also
      www.rockettheme.com/forum/index.php?f=66..._v=viewtopic#p861222
      And of course work yourself through the docs on www.gantry-framework.org
      www.gantry-framework.org/documentation/j...-a-custom-stylesheet
    • beamaria's Avatar
    • beamaria
    • Elite Rocketeer
    • Posts: 513
    • Thanks: 6

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • Thanks Henning,
      the link to post:
      www.rockettheme.com/forum/index.php?f=66..._v=viewtopic#p861222
      doesn't let me in, ("you are not authorized to read this forum" message), maybe because I've a membership only for extensions, not for templates.
      Now I'll try to read again all the material and understand the right procedure to display the bg image in my header
      Sorry to make a nuisance of myself, but no one was born master in something!! :wink:
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • Basically Dan in that link explains what the different folders are for.
      And yes you need to have a valid joomla membership for that link.
      We all started a some point. :-)
    • beamaria's Avatar
    • beamaria
    • Elite Rocketeer
    • Posts: 513
    • Thanks: 6

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago
    • Mmm, i suppose that changing the bg image is beyond my capabilites...

      I created a custom css file in css folder of my template and wrote this:
      #rt-header .mysite/images/my-bg-image.png
      then I cleaned the browser cache ...but no result

      Then I wrote this:
      #rt-top-surround .mysite/images/my-bg-image.png

      same procedure , but no result

      :oops: :oops: :oops:
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED background image in the header

    Posted 12 years 2 months ago

Time to create page: 0.058 seconds