Can someone provide the env.config.jsx
code to remove “My Courses” and “Discover” from the header and the user dropdown menu? Sorry, I’m not very skilled at writing code using JavaScript and its frameworks.
Hi @abylaikhan.suev.02 are these helpful? Customizing Site Header Using Frontend “Slots” — Latest documentation
I figured out the plugin slots, but I can’t remove ‘My Courses’ and ‘Discover’ from inside the course.
I think there should be a learning_slot or something like that, but I haven’t found it in the GitHub repositories."
frontend-component-header/src/plugin-slots at v6.3.0 · openedx/frontend-component-header
Where is that in the page? Could you share a screenshot of the whole page not just a small segment?
That I believe is a different header, for the Learning MFE, I don’t quite remember though.
@brian.smith could I pull you in here?
“My Courses” and “Discover” don’t seem to appear in the learning header using the default theme
Maybe it’s an Indigo thing?
Hello, @brian.smith. Yes, indeed, it’s because of the indigo plugin. I disabled this plugin, and those lines disappeared. Now, there’s this question. I’ve started noticing a lot of problems with the indigo plugin enabled. Can you explain how you work with the MFE and indigo plugins, so everything follows the same style but doesn’t conflict with each other? For example, I removed the “My Courses” and “Discover” lines from the navbar-authenticated.html page (inside the indigo plugin), but these lines were removed everywhere except where I needed them (inside the course at http://apps.open2.kaznu.kz/learning/course/). If I completely disable the indigo plugin, I don’t like the styling on some pages where I believe MFE is not being used. If the recommendation is just to disable the indigo plugin, then I don’t understand what it was created for. Thank you very much. I will mark your previous response as correct.
Edit:
It’s not a problem for me to fork the platform and change the styling where MFE is not applied, but I believe that if there are issues with the indigo plugin, it should not be automatically enabled or included in new platform versions (I didn’t notice it being enabled by default previous version). It’s a huge waste of time trying to figure it out (it’s easier to just change the styling myself). Is it possible to open a discussion somewhere on this topic to see if I’m the only one facing this issue with indigo?
@tutor-maintainers how to disable the indigo plugin completely?
@Chelsea_Rathbun flagging you on this:
I believe that if there are issues with the indigo plugin, it should not be automatically enabled or included in new platform versions (I didn’t notice it being enabled by default previous version). It’s a huge waste of time trying to figure it out (it’s easier to just change the styling myself). Is it possible to open a discussion somewhere on this topic to see if I’m the only one facing this issue with indigo?
tutor plugins disable indigo
tutor config save #redundant but just in case
tutor images build openedx mfe #this because indigo override these images
tutor local/dev restart
Running the above suppose to restart the platfrom without indigo effects, if it was enabled before.
I’d like to note that this method doesn’t always work. It’s best to follow these steps instead,
in my case, this is what helped.
tutor plugins disable indigo
pip uninstall tutor-indigo
tutor config save
tutor images build openedx mfe --no-cache
docker system prune -a
No, this is incorrect. If you need to perform these additional steps, then it means there is something wrong with your setup. I can confirm that the following are all that’s necessary:
tutor plugins disable indigo
tutor images build mfe openedx
tutor local launch
yes, it’s also working. Thanks!