hey guys and girls. im really new to this, and im not 100% sure how to add in my own custom images. can anyone please tell me how to do this, aswell as not just changing the header, footer, index etc. but how to also change the background, if thats possible.
add images
(6 posts) (3 voices)-
Posted 1 year ago #
-
Simply adding the images you want to include in your theme via the library/media/images/ folder should do the trick.
In order to change the background, all you have to do is add this into your css stlyes:
.body { background-image('../images/name-of-image.jpg') }
Just change the name of the image, and you're all set!
Posted 1 year ago # -
mate, i knew about the adding the images into library/media/images folder (from the .txt doc) but i dont know how to place them in my site. or, more importantly, where in the code do i place it to change header, index, etc. thank mate.
Posted 1 year ago # -
Ah, then this should do the trick:
<img src="<?php echo IMAGES . '/name-of-image.jpg'; ?>" alt="" />
There's also CSS, and JS, that point to their respective folders.
Posted 1 year ago # -
have tried to add images to templates, for example the head. however the line you referred aint working.
<img src="<?php echo IMAGES . '/name-of-image.jpg'; ?>" alt="" />
what exactly could i be doing wrong?
i fixed it by just adding the full url, but thats pretty messy.when i want multiple 'fixed' images, do you suggest adding them through css or using the method described above?
kind regards,marcel
Posted 1 year ago # -
Marcel, do you have a link that I can check out? If the images are fixed, I'd suggest using the method I described and keep the images in the template.
Posted 11 months ago #
Reply
You must log in to post.