1. wallis
  2. Sherlock Holmes
  3. Commercial Templates
  4. Tuesday, 21 March 2017
  5.  Subscribe via email
Hi Ciarán
Here I am again. This time is to find out if there is a possibility to add an image as a background of the entire page (not only a module) in Hannah template. Can I use some code for that?
Thanks
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try adding the following to the Custom CSS field of your templates parameters where # is the URL to your image (edit to taste)...

body {
background-attachment: fixed;
background-image: url("#");
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciarán for your answer. Unfortunately the code you gave me doesn't work on my website. I put it in the first page and its subordinated page and doesn't work in both.
Regards
wallis
References
  1. https://www.agrupamento-alfredodasilva-sintra.pt/work
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Wallis

Checking your site source, I am unable to see the suggest custom CSS. If you have cache enabled be sure to clear your Joomla cache (System -> Cear Cache). If this still does not resolve the issue may I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

We have amended your Custom CSS to the following which has resolved the issue...

body {
background-attachment: fixed;
background-image: url("https://www.agrupamento-alfredodasilva-sintra.pt/work/images/fundo-azul-claro.jpg");
}
body, #body_panel {
background-color: transparent;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
It works. Thank you Ciarán. For the sake of the members of the forum I tell you what I did next. As a consequence of adding a background image, I needed the top and the bottom modules be transparent to have the image visible through them. Following the logic of the code you gave me, I adjusted the last line to read:

body, #body_panel,
#container_top1_modules .wrapper960,
#container_bottom3_modules .wrapper960 {
background-color: transparent;
}

I don’t want to abuse your patience and time but I still have a problem with that background image.

To test what image resolution I should use I got an image I used successfully as a background in another project with the J51_Creative template (http://www.work-ais.enasa.aero)

My PC screen horizontal resolution is 1920px
J51_Creative template size: 1120px
The horizontal resolution of the background image: 1400px
The image shows complete in the screen.

The same image in the same PC in Hannah template:
J51_Hannah template size 1200px (http://www.agrupamento-alfredodasilva-sintra.pt/work) only in the main page submenus.
As I mentioned, the image horizontal resolution is 1400px
The image covers only part of the screen coming from the left and repeats.
If I add no-repeat to the code (background-repeat: no-repeat;) the image does not repeat and the screen is blank to the right.

What shall I do to adjust the Hannah defaults?
Best ragards
wallis
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Wallis

Presuming I understand you correctly try also adding the following to the Custom CSS field of your templates parameters...

body {
background-attachment: fixed;
background-size: cover;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok