Open Closed

Custom MainFooterComponent.razor not displayed #6558


User avatar
0
karl.ettinger@energieag.at created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

Hi!

In a Blazor.server project that was created with abp suite, the MainFooterComponent.razor component is created in Components/Layout. However, this is not displayed at runtime. What do I have to do to display the MainFooterComponent.razor from Components/Layout? What do I have to do so that the footer is not displayed on a mobile device?

Download sample project: https://powershare.energieag.at/s/8Sa9ytgm42BsEYg

Please request the password by e-mail

Best regards karl

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello ,

    You can add following code in MainFooterComponent.razor page

    @using Volo.Abp.DependencyInjection @using Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu @inherits Footer @attribute [ExposeServices(typeof(Footer))] @attribute [Dependency(ReplaceServices = true)]

    <span class=" copyright-text text-center" > My Custom Footer </span>

    Thank you.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    karl.ettinger@energieag.at created

    Thanks for the quick answer, it worked.

    Is there also a way to deactivate the footer on mobile devices?

    Thank you.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Yes it is possible , you have to customize your code at your side.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    karl.ettinger@energieag.at created

    Thank you.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 07:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.