Hello im trying to add a costum font from file to my website I have tried everything but I keep getting the 404 error, What am I doing wrong
this is my file structure with my css url code:
File structure with css url code
and this is the error i get:
error message
hope you guys can help me out !
You should fix the extension:
starwars.tff -> starwars.ttf
Your error message shows that the path to the file is not correct, and the file name is not correct.
Try setting your path absolutely
src:url("/fonts/starwars.ttf")
Make sure your file name with extension is correct.
starswars.ttf
Related
I have a problem in loading my image, i got an error when i go to page source. The error it was saying is : Failed to load the given URL. When i copy the url and paste it in a browser, the image URL works fine. How can i solve this?
Here is the image of the error
Here is the path of my codeigniter picture
Try giving the relative path like
url("../uploaded_images/toguru.jpg")
try yoursite/(projectname)/asset/uploaded_images/togoru.jpg
i have just finished building a new website (wordpress), and i have a very strange problem linking to a PDF file.
I've uploaded a file to my website - http://goo.gl/tNxXYc - however when i enter the link in my browser it says that the page cannot be found, instead of showing the pdf.
Can anyone suggest what the problem might be? Thanks in advance for your help.
well, the given google.gl shortcode forwards to https://www.grasshopperlanguagecentre.com/wp-content/uploads/2014/11/hello.pdf
and that file does not exist.
So find the correct location of hello.pdf and link to that.
Please check permission of folder where pdf stored. Also try if any of following plug can solve your issue :
https://wordpress.org/plugins/search.php?q=pdf&sort=
My CSS files do exist. They just don't have anything inside - they are empty.
Chrome however, show 404 errors for my CSS files.
Putting some dummy code e.g. comments in a CSS file makes the error goes away.
Any idea what went wrong for me?
Updates:
The document root of the website is /var/www/html/niuniu/.
Some of you mentions permission issue but how does it explain the issue when I put in some comments in the CSS file and the error went away - no changes in permission?
I'm using Prestashop but I don't believe that has to do with the issue here.
It appears this is just how Chrome's Developer Tools and Firebug report empty CSS file. This is not a real error that can break my website.
I need to modify a couple of classes in the css of the site i'm currently woking on. another person worked in it, so i really don't know where he has put the styles. i know firebug shows the css path on the corner, but it's just showing the url like this: http://localseo.org#3(line 149) . what does it mean? how do I get the file path? Thanks for the help everyone.
Click on that URL.
It will open the correct file to the correct line. From there you can easily see the path...
However, if you mean file path, on the server, you cannot get that from the browser or Firebug; it depends on your server settings.
Open firebug and you'll see a CSS pane/tab you can then select the stylesheet you want/need to edit.
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".