Hi All, I am trying to hide the default footer using frontend slots.i have created a tutor plugin by followingthis and in myplugin.py i have posted the below code
(
“all”,
“footer_slot”,
“”"
{
op: PLUGIN_OPERATIONS.Insert,
widget: {
id: ‘custom_footer’,
type: DIRECT_PLUGIN,
RenderWidget: () => (
This is the footer.
), }, }“”" ) ])
then i build the mfe image.unfortunately its not overriding the default footer.both footer are showing
Hmm.. that’s confusing. Might be a bug in the Indigo theme? Can you disable the Indigo tutor plugin and give it another try?
When I tested, nothing happened until I disabled the Indigo theme. So I thought the Indigo theme was replacing the frontend-component-footer and didn’t have the slot. But if one of the config is working and the other isn’t I am not sure what exactly is going on.
Indigo messes with the plugin slots in a confusing way. Disabling Indigo will allow you to use the slots as documented. If you don’t want to disable Indigo, search the forums - there’s definitely been posts about this previously.
Indigo basically has its own custom headers and footers baked in, which are outdated and don’t include the plugin slot functionality. We’re currently doing R&D on removing Indigo’s headers/footers and replacing them with the default Open edX ones — once that’s in place, plugin slots will work out of the box.