Favicon

Favicon

by Harvey Arkawy -
Number of replies: 22

We are in the process of upgrading our site to a new server as well as upgrading from 1.9.10 to 2.6.

One problem that I have run into is the web page header favicon.

Our site still shows the M with the mortor board even though our favicon ico is listed in the root directory.

That is where it was under 1.9.10.  Where do I need to move it so our logo displays instead of the Moodle logo?

Average of ratings: -
In reply to Harvey Arkawy

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Harvey, you'll find favicons related to themes in themes folder.so for example you are using a custom theme, then go into custom theme folder and you will find favicon icon there, just replace it with your icon and to see changes, you have to flush theme cache.

In reply to Usman Asar

Re: Favicon

by Harvey Arkawy -
Usman,
 
Thank you for the information.  Unfortunately it doesn't do what I want it to do.
The browser tab at the top shows two things, the favicon and the name of the site that the tab has landed on.
I have attached a couple of jpg images of screen prints with arrows showing exactly what I need to change.
Following your suggestion didn't place our icon there, it placed it on the actual Moodle page.
As you can see, our front end contains the favicon.ico
 
Attachment For Moodle.jpg
Attachment For Moodle2.jpg
In reply to Harvey Arkawy

Re: Favicon

by Jason Martinez -

Harvey,  in moodle 2.6, I believe your favicon file needs to be in your theme directory  

example: /var/www/moodle/theme/essential/pix/

 

Jason

-It's the small things that make the difference

In reply to Jason Martinez

Re: Favicon

by Harvey Arkawy -

Thanks, Jason.

Under /www/ there is no Moodle folder as shown in the image below.

I went into the Education folder and then into the Theme folder and added the favicon.ico there, but that didn't do it either.

Attachment For Moodle3.jpg
In reply to Harvey Arkawy

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Harvey, this is what I had told you about.

I am attaching pictures as well, for your reference.

 

as well, showing you path for placing your favicon.ico

 

 

you have to make sure one thing, that your favicon is in proper format, as you cannot make any image (jpg, png, gif) to work as favicon just by renaming it as favicon. images are first converted into ICON format to be placed in appropriate folder to be fetched by browser as favicon for the site. there is a good website I always use, http://favicon-generator.org/ that converts your images into favicon.ico format (note the extension of the favicon is .ico and not jpg/png/gif).

Hope you get the idea, if still not,get me your image to be used as favicon, and let me know the FTP details for your server so that I can upload it for you.

 

Preciously, your favicon.ico will be placed in following folder, in reference to your site. (assuming you have named your site with moodle as "lockquiz" where moodle is installed on root, and the theme you are using is "my_theme".

public_html/lockquiz/theme/my_theme/pix/favicon.ico

Average of ratings:Useful (1)
In reply to Usman Asar

Re: Favicon

by Tim Trimble -

Just as a side note because of the discussion we did some testing on 2.6.2 and 2.7 and found that if your chosen style does not include a favicon then the system reverts to one at an unknown location and placing a favicon.ico file in the Moodle root (Public_html/moodle/) directory will override it for that theme.  But, if there is one in your (/pix/) directory it will chose that one first. 

Also, Harvey if you need to create a favicon we use a free creation site that seems to work real well http://www.favicon.cc/ if you ignore the ads and just download your created favicon file.  It even allows you to upload your one pic or animation and then creates the .ico file for you.

Good luck...

In reply to Tim Trimble

Re: Favicon

by Harvey Arkawy -

Thanks, Tim.

Our favicon icon is not a jpg, jif or any thing other than an icon.  If displayed properly on our 1.9.10 site but won't display on our 2.6.2 site, even after following all the previous suggestions. 

In reply to Usman Asar

Re: Favicon

by Harvey Arkawy -

Usman,

Thank you for your support.

I still can't get the favicon to list.

Via CPanel...

Under Files, I clicked on File Manager.  I then chose Home Directory.  Then Public_HTML then Education (which is our sub-domain ie.  www.lockquiz.com/education).  Then I clicked on Theme, then Standard (which is what we are using). There is a folder called pix.  I added our favicon.ico to that folder.

But the favicon still won't display.

I have included three screen dumps here.  I will need to reply two more times as I have a total of 7 dumps.

Attachment cpanel1.jpg
Attachment cpanel2.jpg
Attachment cpanel3.jpg
In reply to Harvey Arkawy

Re: Favicon

by Harvey Arkawy -

To continue...with the next three screen dumps.

Attachment cpanel4.jpg
Attachment cpanel5.jpg
Attachment cpanel6.jpg
In reply to Harvey Arkawy

Re: Favicon

by Harvey Arkawy -

And the final screen dump and the actual favicon.ico

This is the same icon that we used on our 1.9.10 site.  But it won't display.

Attachment cpanel7.jpg
In reply to Harvey Arkawy

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Harvery, steps you mentioned are cent per cent right. Have you tried purging cache? also, delete the cache of the browser as sometimes browser's offline cache over rides the fresh content.

 

for clearning theme cache's you can go to (in your moodle site, not CPanel)

Administration > Appearence > Themes > Themes Selector

and on top you'll see button "Clear Theme Cache"

 

alternatively, you can go into

Administration > Development > Purge All Caches

 

and in the end, do delete cache of your browser as well.

though I have just tested it myself @ lockquiz.com/education and it still is showing the moodle logo. in case if this doesnt work, let me have access to your CPanel and Moodle plus your logo, and I will do it for you.

In reply to Usman Asar

Re: Favicon

by Harvey Arkawy -

Usman,

Thank you!!!!  We now have a proper icon on the tab.  I cleared the both caches and that did the job.

In reply to Harvey Arkawy

Re: Favicon

by Amer Child -

I have been running into this same issue using Elegance.  I have a favicon in the theme dir, and in my root dir.  I just cleared theme cache but to no avail.  Any additional suggestions?

In reply to Amer Child

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Amer, within the theme Elegance folder, there must be a PIX folder, you'll be adding favicon.ico to that pix folder (overwrite or delete and then add), after that clear theme cache's.

In reply to Harvey Arkawy

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Harvey, yes now I can see the favicon at my side as well, there is a very small issue left, infact there are 2 (so far I have seen without entering your main site)

Favicon issue:

The favicon is showing WHITE background, although wont break anything, BUT doesnt look professional either, for that you can either, save your logo as GIF or PNG (after removing the background - you can use any image editing application like Photoshop, Corel Painter etc), as both these file formats support transparency (means transparent background), then convert into favicon.ico that will only keep logo and get rid of white background from favicon.

 

Second Issue - WWW Redirect

That doesnt as well break anything, but looks very unprofessional, let me give you example, you can use two forms of URLs to get to your site.

1: http://lockquiz.com/education

2: http://www.lockquiz.com/education/

in first case, it will take anyone to the website (as it should), but if you type WWW prior to the URL, it will show the redirect screen before taking user to the site. as shown below

 

go into moodle directory (from CPanel), go to LIB folder, then find the file "setuplib.php" (as shown).

right click and click Edit Code, and go to line 795 (as shown) and replace the digit 3 with 0

this digit is showing times in second to show that warning (shown above), as you replace it with 0, it will instantly go to the site without showing warning.

In reply to Usman Asar

Re: Favicon

by Harvey Arkawy -

Usman,

Thank you for the information.  I just took care of the WWW issue.  I will take care of the favicon issue later as I still need to verify our courses are doing what they are supposed to do.

While I have your attention, I have another question.

What is the difference between Self Enroll and PayPal.

We have some courses that show PayPal only, some that show Self Enroll only and some with both.

If we show PayPal, do we really need to show Self Enroll.

Attachment pp.jpg
Attachment ppself.jpg
In reply to Harvey Arkawy

Re: Favicon

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Self enrolment allows students to enrol themselves for free in a course whereas Paypal requires them to pay. So if you have Paypal you should not also have self enrolment.

In reply to Harvey Arkawy

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

Harvey,

PayPal is payment processor (third party), and Moodle lets you use your PayPal account to take payments for courses which eventually goes to your PayPal. So user taking course with PayPal symbol, must make payment via their PayPal to take the course, and with pre-set criteria (like Payment is monthly or weekly), once Payment expires, user's enrollment automatically cancels.

Self Enrollment is like, users can self enroll in the course, either by clicking enroll me in this course, or by using the pre-shared enrollment key that course creator can give to prospected students.
Other method is manual enrollment which is opposite to self enrollment, in manual enrollment only course creator assigns users to the course, users dont have ability to self enroll.

 

so courses that show PayPal + Self Enroll, means users can self enroll in the course, but they have to make payment before they can actually take the course.

PayPal + NO Self Enroll means, users are allocated courses only by course creator, but, to take that course they have to make payment through PayPal.

as per showing either is concerned, it all depends on how your teaching methodology works, You may be registering students on session basis or site is open to take course at anytime by anyone.

if its session/semester system teaching, then you dont have to keep self enroll ON, as users will be assigned courses and at the end of the session/semester, they will leave the course/sent out manually.

if its open site to take course anytime by any registered user, then self enrollment has to be turned on so site users can come and take course they like anytime.

if you are not taking payment separately before session start, then PayPal will let you take payments online as well at the time of someone taking the course. if you are taking fee for the course prior to session start, then you can turn off the PayPal option.
hope I have made you confused, if you still cannot understand, let me know, I will use case scenario of a University or something.

 

 

In reply to Usman Asar

Re: Favicon

by Harvey Arkawy -

Usman,

That was almost as clear as mud.  But since I take mud baths (LOL) I believe I understand.

For those courses where the student needs to pay before enrollment, we list the PayPal method.  We could also include the self enroll method but it is overridden by the PayPal method. 

Since most of our courses are not free we won't list the Self Enroll method for these courses.

The one or two courses that are free will not include the PayPal method but will include the Self Enroll method.

 

In reply to Harvey Arkawy

Re: Favicon

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Just to clarify: if you use the self enrolment plugin in a course then users can enrol without paying. You can either use this as it is or add an enrolment key and users can then only enrol if the know the key. But they still don't pay. The Paypal plugin offers them a button to enrol in the course via Paypal. If you have both enrolment methods enabled then as far as I can recall they could self enrol without paying unless you have an enrolment key. 

Note also the difference between the authentication method of Email-based self-registration and the course enrolment method of Self enrolment

In reply to Mary Cooch

Re: Favicon

by Usman Asar -
Picture of Plugin developers Picture of Testers

To make things easier

Self Registration > Applies to whole site.

Self Enrollment > Applies to a course.