How to add favicon to your wiki on mediawiki? - mediawiki

Is there any way to add favicon to your wiki pages created by mediawiki? As a Main/privileged user can i make changes on any page on wiki to get the favicon on all the pages?

In your LocalSettings.php, set $wgFavicon to the path to the favicon file, i.e:
$wgFavicon = '/path/to/favicon.ico'
Alternately, naming your file favicon.ico at the site root will work, because $wgFavicon defaults to /favicon.ico.
These will only work if you have direct access to the server, so you can't do it from the MediaWiki interface.

Related

failed to load resource hexo.js

I'm using HexoJS to create a blog. I was able to generate the static files using hexo generate. Even though there are css files and JS files generated, they are not properly linked to the index.html.
So, I have to open each html page and correct each page links given in href and src attributes one by one. I believe that this is not very practical. Can anyone help ?
The localhost is used for preview the website. When we publish our blog, it should be on a server, then the path will be interpreted correctly, we don't need to change any thing. What we saw on http://localhost:4000 will be same when you published your website.
So, we don't have to worry about the broken paths in the public folder.

Putting robots.txt, favicon and other files to another directory

I have my own directory for static files and that's why I want to move my favicon, robots.txt, sitemap and other files of the same sort to it. Therefore, these files will be accessible not as my_website.com/robots.txt, my_website.com/favicon.ico, but my_website.com/my_files_path/robots.txt, my_website.com/my_files_path/favicon.ico
I wonder, won't this hurt my website in terms of SEO? Are there other drawbacks? Is it better to put these files in the root directory?
Web robots will look for the robots.txt in your root directory. So it's a good idea to place it there. On this page Google says:
In order to make a robots.txt file, you need access to the root of your domain.
Most browsers will look for a favicon.ico in your root aswell. You can specify a different path to your icon with the <link> element. However, remember that all files on your site is not HTML. If a user views an image, PDF or similar then the <link> element will not work. In such cases, the browser will likely fall back on the file in the root folder.

Static HTML page that links to current Wordpress blog

So, I currently have a WP blog installed. What I want to do is put a static HTML landing page at the root of the site and then a link to the blog. The HTML landing page does not look similar in theme and everything is hosted under the same domain.
How can I do this with this current structure?
I suppose I would have to somehow move the blog to /blog instead of the root?
Thanks.
Depending on what server you're running, you might not need to do anything. Certain servers, like Apache, have a DirectoryIndex which gives priority to .html files by default. So even if you had index.html and index.php in the same folder, it would load the index.html file.
You could also define the priority in an htaccess file or use the commenter above's suggestion of pasting the HTML into the index.php template and then making a "home" template and telling Wordpress to use that specific page as the homepage.
That being said, I would strongly recommend installing Wordpress in a sub-directory, such as "/blog" as you mentioned. Just as a fail-safe.

Why aren't my images showing up on my github page?

I've setup a github page, but my images are not loading.
The site and
The Site's Repo
I saw this question Images in github pages and relative links where it said that GitHub is run on Linux servers, thus case-sensitive. I can checked that the href directory is the same case.
Files with underscores are treated specially by GitHub pages. You need to add a .nojekyll file in the root path, to turn off jekyll.
Look at this page for details
First of all you could try removing the tailing slashes in your <img>-tags (and all the others that have it) as this violates the HTML 5 specification.

How do I make a hyperlink go to a page on another website?

When creating the html files for my website, I had no problem understanding how to create links so that users could navigate between pages. For example, this worked fine to send someone to the about page:
ABOUT
I'm having issues upon uploading the html files to my web server.
How, do I get About link to send the user to: www.blahblahblah.com/about ?
My landing page has been renamed index.html.
You need to add http:// in the href to go to a page on an external site:
About page on blahblahblah.com
This is because when you simply link to it without the http:// in front (hyper text transfer protocol) it is trying to go to the page "www.blahblahblah.com" which obviously does not eixst on your server. When you add the http://, the browser knows that it is another website and therefore will bring you to the external site.
Your web server will be configured with a "document root" directory. Usually this is the directory where index.html is located. Place your about.html in the same directory, and the link you provided will link to it if it is served from the same URL-path (that is to say, it's not in a sub-folder). If your files are indeed in the document root, you may prefix your link href attributes with a forward-slash, which indicates that the path is relative to the document root.
As noted in the previous comment, this technique only works for pages hosted in the same directory as each other, on the same host. If the files are in different directories, you must start with the slash, and if they are on different hosts, you must include the full domain and path.
This is what he meant:
<input type="button" value="SampleText" onClick="window.location='http://www.blahblahblah.com/about';">
and this will open it in a new window:
<input type="button" value="SampleText" onclick="window.location='http://www.blahblahblah.com/about';" target="_blank">