I have recently created a Joomla module that's a slider. Only problem is that it loads images through a Background:Url CSS property and the images are in a folder in the module but it doesnt seem to want to link unless i insert the full URL in.
I noticed "baseurl ?>" is how they link the stylesheets, but that doesnt seem to want to work on a Background:Url CSS property.
Any Help please.
Thanks
The url to the image must be relative to the CSS file path.
If your CSS-file is at modules/mod_touchheader/css/style.css,
then your url to the image must be url(../tmpl/images/h-slider-1.jpg).
Related
This is driving me insane!
My joomla image folder is "images"
Images appear fine on my home page
when I create an article the image path turns into article_name/images but the correct path is /images and in global + media settings it shows images
I disabled SEF, cleared cache F -no difference
I tried to disable URL rewriting - no difference
Even the site logo path changes on a article page to article_name/images/imagename.jpg when it should be images/imagename.jpg
The joomla site is installed in the public_html folder
Is there a rewrite condition I can use in htaccess file to make sure images always load from the images folder and do not have the article name added?
I found a link which might solve the problem. Here's the link: https://forum.joomla.org/viewtopic.php?t=298582
Modify inlcudes/application.php at row 108, from this:
Code: Select all
$document->setBase(JURI::current());
to this:
Code: Select all
$document->setBase(JURI::base())
;
I tried giving the image path like
<img src="<?php print $directory; ?>/images/yourimage.gif" />
in Drupal 7.
But it's not working. The images are still not loading.
If I give the path like
its working.
I heard its not a good practice.
Is there any other way to add image source in drupal?
your question is not clear. Where did you put your image? Did you use custom content type to save your image? Did you used IMCE in a text field? Do you mean this image is in your template folder, and you call it in your html or page template?
Usually, an image is saved in a node content, customized by editing/creating a content type suitable to the data you want to show.
I seem to be having a problem linking my image. I'm trying to link the logo.svg to my header , yet it's not working. My folder structure is down below. I believe It's linking to the right path.
/logo.svg" />
http://oi61.tinypic.com/311km1k.jpg
Here is the code: pastebin.com/TQ75PDdJ
Open bugzilla when page loads to see if you have any errors or simply view the source and click the link for the SVG file. can you provide a link to the website?
I am customizing the default theme provided with roundcube. however i am facing problems while adding image in my template. the image is inside the images folder inside mytheme. i want to add that image using an img tag but i just cant figure out how.
I have already tried these paths..none of them are working.
/images/myimage.png
../images/myimage.png
http://local.mysite.com/images/myimage.png
How can i insert an image residing on my own server using img tag?
Assuming your webmail installation is at the root of your url (e.g. http://mail.example.com/), try:
<img src="/skins/mytheme/images/myimage.png">
I have a download.php file to display images on a web page as well as downloading files like pdfs, docs, etc.
in ckeditor if the src for the image is /download.php it dispalys like there is no image or broken link image, if the src for the image is http://www.mydomain.com/download.php my image displays just fine in ckeditor.
Any thoughts? And no i cant just make it put the full domain. There is a reason to long, complicated, and stupid to explain thanks to the web hosting company.
In the configuration you need to set the baseHref to the full path, then it will add that to the images/files you upload and insert.