Hi all
D7.3.4
Is it possible without too much tech knowledge to upload a background image and for that image to remain static while you scroll through? I''ve seen it on many sites and quite like the idea for my own site.
TIA
Ed
Hi all D7.3.4 Is it possible without too much tech knowledge to upload a background image and for that image to remain static while you scroll through? I''ve seen it on many sites and quite like the idea for my own site.
TIA Ed It ain't easy being this stupid all of the time |
What template are you using? Geeks, making the world a better place |
Hi geek_girl, I'm currently using UNI It ain't easy being this stupid all of the time |
Step 1. Create a directory/folder preferably, inside the templates directory e.g /public_html/templates/my-custom-things . my-custom-things is the directory you are creating and you can give it any name you want.
Step 2. Upload the image into that directory or folder. That is the image you want to use as background-image. You must take note of the name of the image and its extension e.g .jpg, png etc
Step 3: Open Notepad on your computer and Paste the following CSS code in it
body {
Step 4: Save the Notepad file with .css extension. You can give this css file any name e.g my-design.css
Step 5: Upload this css file into the directory you created. In this example, upload it into "my-custom-things" directory or folder. At this point, the CSS file and the background image are in the same directory or folder
Step: 6. Go to the admin side of your site. Click on "Settings", then click on "Basic Settings" at the bottom left or use this link http://yoursitedomain/administration/basic_settings.php . Replace "yoursitedomain" with actual domain name of your site.
Step 7: Finally, scroll to the bottom and paste this link <link rel="stylesheet" type="text/css" href="http://yoursitedomain/templates/my-custom-things/my-design.css"> in the <HEAD> Injections . (There is a space there where you will see <HEAD> injections. Again remember to replace yoursitedomain with actual domain name of your site. Also replace my-custom-things with the actual name of the directory you create (In case you gave it a different name)
Step 8. Click on SAVE and you are done.
To see the changes, please clear your browser cache and also clear cache from your site admin.
Hope it works for you. |
Hi geek_girl, I'm currently using UNI It appears that UNI uses the CSS from the base files; so that means if you add a css directory and inside of that directory create a common.css file; it won't get changed by any Dolphin upgrade. In that file place:
@import url(../../base/css/common.css);
body { background-attachment: fixed; Geeks, making the world a better place |
thanks both, i'll take a large slug of coffee and give it a go. It ain't easy being this stupid all of the time |
thanks both, i'll take a large slug of coffee and give it a go. If you can't, then send me a PM. Geeks, making the world a better place |
This sample may help you : https://www.webpagefx.com/blog/web-design/responsive-background-image/ "Your future is created by what you do today, not tomorrow." @ www.dexpertz.net |
You may also be interested in the Background Switcher module. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Thanks for your tips! Learn more https://whidegroup.com/blog/how-to-choose-the-best-shopping-cart-for-e-commerce-store/ |