Theme: Clean. Where logo apears on the front page should be the course long name in a course.
How does one do that, without too much hacks?
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Copy the layout file used by the 'frontpage' layout as defined in config.php, make 'frontpage' use the copy, change the original to remove the logo and only show the name. CSS hack with 'display: none' won't work as you need the PHP to put back the course name.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
That was quick! A small problem though: I have no clue what you are talking about. I should have mentioned that my web design experience is next to none!
Anyway, I went through my $moodle/config-dist.php and found nothing suspicious, nor in $moodle/theme/clean/layout/.
$moodle/theme/clean/settings.php looks more promising. For example:
// Logo file setting.
$name = 'theme_clean/logo';
$title = get_string('logo','theme_clean');
$description = get_string('logodesc', 'theme_clean');
$setting = new admin_setting_configstoredfile($name, $title, $description, 'logo');
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
Is that the right place? What should happen now?
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
config.php of the theme. I suggest reading most of these: https://docs.moodle.org/dev/Themes before proceeding.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Hi Visvanath,
No this will only confuse matters.
I have added a zip file that contains a whole new set of layout files. I am assuming you have access to the server where your Moodle site is and that you are the Administrator?
Here is what you need to do:
- Extract the zip file to your desktop
- change your clean theme layout directory to layout_old
- add the new layout directory I sent you to your clean theme.
- rename your clean/config.php file to config_old.php
- place the config.php I sent you in your clean theme folder.
Having done all that you can go to your Moodle site and Purge all cache. Then you will be able to see what it looks like with a Logo in the frontpage only and just titiles in your other pages.
I hope this helps?
Cheers
Mary
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
This is all magic to me! Well, at least the command line didn't leave me. No, I won't "touch" a machine if I don't have shell access!
I did what you said. Now ./theme/clean/layout/ is what you sent, and also ./theme/clean/config.php. One thing I noticed is that now there is a layout/frontpage.php but no counterpart in layout_old/?
There must be a major omission somewhere. The site brings "Fatal error: Call to undefined method theme_bootstrapbase_core_renderer::user_menu() in /path/to/theme/clean/layout/frontpage.php on line 64".
There is no great hurry: The site is meant for a single blended class. The next presence class is on Friday.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Sorry...my mistake! I sent you 2.8 instead of 2.7 files!
To save time can you put all the original files back and I will redo the changes in a new 'child' theme.
Sorry for my blunder!
Mary Evans
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
In case, if you do not plan to invest on 2.7, I can upgrade my site to 2.8. As I said earlier, this site is used by me for just one class.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Hi Visvanath,
In that case upgrade to 2.8 as Moodle does not support 2.7 any longer, that is why I don't use it. I had forgotten that the User menu was added in 2.8 so forgot to remove those bits of code.
Moodle 2.8 works quite nicely, so you should see a difference in the navbar as that has a Log in and changes to a user (drop-down) menu, it also displays the user name and avatar.
However I am still tempted to send you a child theme, so that you keep the changes otherwise an upgrade would wipe them out.
Cheers
Mary
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Then I'll hold on to 2.7. There'll be plenty of others to test on 2.8, etc. Please upload a 2.7 patch when you have time.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Hi Visvanath,
You should create a Moodle Tracker for this as it really needs altering.
I wish I had done that originally, when I put Clean theme together, it would also make better sense if there was a Frontpage that people could configure in a better way than we have at the moment, like the Logo. There should also be the site name on the front page too, not just the logo.
And yes...have the course pages without the logo.
So please do report it as an Improvement...thanks
Mary
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Done: https://tracker.moodle.org/browse/MDL-50661. Hope it is clear.
@all
Feel free to comment, vote, blog, tweet, ...
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Well isn't that up to you to sort out? You have the power to give your two courses unique names.
Please do not get sidetracked thinking that whatever is wrong with your Moodle site is theme related because it isn't. The only thing themes do is adds some colour and uniqueness to your Moodle site. It is not an Aspirin to cure a Moodle headache.
As for the child theme I promised you, well I did make it and it works well, the only thing is it is a Moodle 2.8 theme, as we no longer support 2.7. Si ti use it you would need to upgrade.
Cheers
Mary
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Sure, I give courses unique names! Possibly I am doing something wrong. Screen-shots of the two course pages are attached.
Sure, I can add the course name again in the "General" topic as in the third screen-shot. But that is not ideal - ideally the logo should make space for the course name.

Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
Re: Theme: Clean. Where logo apears on the front page should be the course long name in a course.
https://tracker.moodle.org/browse/MDL-50661