How to remove the site url and name displayed on the Moodle Mobile App

How to remove the site url and name displayed on the Moodle Mobile App

by Sarath P -
Number of replies: 6

Hello Everyone,

I have downloaded the Moodle mobile source code for Phone gap builds from the Moodle HQ repository .(https://github.com/moodlehq/moodlemobile-phonegapbuild). 

I have entered my site URL and name so that when app opens, it will go directly to the user login page. When I installed the app, I could see that in the login screen the site URL and name appears. I want that to be removed or hidden. So what I did is that I created a new rule in the moodle.css and made the URL hidden. When I run the app on Desktop, the site URL is gone. But when I took the build and installed the app on my phone, I still could see the site URL and name. 

This is the rule which I have added at the end of the moodle.css file:

p.item-heading.core-siteurl.ng-star-inserted {

    visibility: hidden;

}

Can anyone please suggest me a solution ?

Thanks in Advance. 

Average of ratings: -
In reply to Sarath P

Re: How to remove the site url and name displayed on the Moodle Mobile App

by Sarath P -
Suggestion please..
In reply to Sarath P

Re: How to remove the site url and name displayed on the Moodle Mobile App

by Sarath P -

Please find the screenshots below:

After specifying the css rule in moodle.css, the URL is gone.

Desktop view



After updating the css rule, still the URL is visible.

Mobile View


Can anyone please suggest a solution for this?

In reply to Sarath P

Re: How to remove the site url and name displayed on the Moodle Mobile App

by Olalekan Adeniyi -
Hello Serath,

You can comment the line out in the core file since you are building a custom APP.

goto src=>core=>login=>pages=>credentials=>credentials.html you can comment out lines 21, 23 & 24.

Regards
In reply to Olalekan Adeniyi

Re: How to remove the site url and name displayed on the Moodle Mobile App

by Sarath P -
Hello Olalekan,

Thank you for your responsesmile Is there any similar kind of code that can be commented out for the PhoneGap build as well? Because currently, I am using the PhoneGap repository( https://github.com/moodlehq/moodlemobile-phonegapbuild ).

Regards
In reply to Sarath P

Re: How to remove the site url and name displayed on the Moodle Mobile App

by Olalekan Adeniyi -
Hello Sarath P

You can comment it out in the index.html (The App entrance)

Regards