I am using absolute paths for images on a WordPress site (currently in dev) but when the page loads the images are missing.
Here is an example:
<img src="/images/img_tonsmeire-properties.png" alt="tonismere" >
The only thing I can think that may be causing this is that the dev environment that I am creating this in is not at the root of the parent site. The URL for this is is:
http://opteracreative.com/~baybr/
What is the correct way to reference the images?
Thanks.
The problem was with the path. I had to add /~baybr/ in front of the image path and it worked.
Related
I'm new to JSF and can't figure out how to add the link for my image in my Navbar for Bootsfaces.
<b:container>
<b:navBar brandImg="WHAT_DO_I_PUT_HERE?"
id="navbar-main"
inverse="false"
sticky="true"
I've looked everywhere to try and figure out how to link the image inside of BrandImg and there isn't any information that I can find. I have my logo.png file stored in my resources -> images folder.
The brandImg is simply the URL of the image to display. It may be relative or absolute.
Currently, there's no support for images stored in the resources folder. Of course, you can always use an URL like "#{request.contextPath}/resources/images/logo.png".
i run command firebase deploy in my Project/public folder which contains index.html, main.css and an images folder, my webpage is hosted but images are not showing up in my webpage.
Hope this will help Someone who face this type of issue:
Problem
Images not showing up on firebase hosted website. This problem mainly arise due to some version issues..
Solution to the Problem:
This may cause due to the dot extension format(.png, .jpg..etc) of the image. Changing this will help to resolve the problem [eg. If your image format is .png just change it to .jpg format and check].
Next solution is to change the way you give the path to the image i.e
background-image: url("src/img/imageName.format"); //normal way
background-image: url("../img/ImageName.jpg"); //use this way
=> Reffer site: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Dealing_with_files#:~:text=Some%20general%20rules%20for%20file%20paths%3A
Thanks in Advance :)
I faced the same problem.
Resolved it by providing relative path urls
example: Instead of using img src="User/local/..../img/pic.png
use img src="img/pic.png"
where img is folder in public directory containing all the images
Since firebase console is reading your page from public directory,( which you might have created after all the coding done in some other folder)so changing the parent folder will not effect the webpage images if you use relative path of image.
Now use firebase deploy.
I've installed phplist in a folder in public_html folder in my site
http://www.parcuri.ro/news/
It's working, but the images and the css are not "used"
The paths in config file are
$pageroot = '/news';
$adminpages = '/news/admin';
Why is this happening?
When I try to access your css or images, I am getting redirected to your homepage. I am assuming this is your 404 page so the CSS and Images dont "exist". This means your file paths are wrong or you have not saved the css/images in the right area.
Perhaps your images/css are stored in http://www.parcuri.ro/styles rather than http://www.parcuri.ro/news/styles.
when copying and pasting images in tinymce (in wordpress) the url of the image loses its prefix. is there some way to fix this. I am using wordpress mu 2.9.2 and tinymce advanced.
Here is the solution:
from: http://nerdee.blogspot.com/2009/02/tinymce-relative-path-img-problem.html
TinyMCE relative path IMG problem
I've been using TinyMCE as a WYSIWYG editor on my website www.puppages.com. I absolutely LOVE it. There was one issue that was a little frustrating. When someone tried to link back to another page on the site (or an image/document on the site), the TinyMCE code would convert the absolute path into a relative path and the relative path would not work. I was able to fix this by doign some javascript editing.
Here's the solution:
Open the tiny_mce.js file.
Find all references to the function: toRelative(u)
replace with return u
save
On certain pages drupal_get_path isn't working correctly (or it is and I've got the wrong function)
The base path is wrong
Example:
Image is supposed to be at
http://domain.com/sites/all/modules/pecapture/images/headline_dontmissout.jpg
But when on
http://domain.com/node/9
The URL is
http://domain.com/node/sites/all/modules/pecapture/images/headline_dontmissout.jpg
The same happens on the page
http://domain.com/admin/build/ and block edit page
How do I get the right path?
added base_path() to beginning of my paths...
base_path (http://api.drupal.org/api/base_path), if you use php code.
In html case, just add "/", like: /sites/all/modules/pecapture/images/headline_dontmissout.jpg
One problem: if you work on subfolder (Drupal installed in internal folder of main site): http://domain.com/subfoldersite, it will not correct, becase will remove "subfoldersite".