Open Closed

Empty layout in leptonX #3914


User avatar
0
yasin.hallak.89@gmail.com created
  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:

Hi there.

I need to use empty layout for specific page like printing page , How can I use it in leptonX

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
    Dicky.tech@gmail.com created

    I Am unable to change the favicon. I checked on the header and it references /images/favicon/logo-favicon_1.svg .

    I tried to change the below and it shows favicon which is not clear.

    --lpx-logo-icon: url('../../images/favicon/favicon.svg');

    As per below, I created the .css files, it works well on local host. on publishing to the server, it doesn't work, how do i make it work ?

    Lastly, where can i change the below cookie consent widget background colors from ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can just try this:

    printing.cshtml

    @{
       Layout = null;
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    Hi.

    We need to use libraries like css in empty layout because we need priniting page like this :

    https://x.leptontheme.com/custom-pages/invoice/

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Sorry I didn't get it.

    When you set Layout = null, the layout is now empty:

    @{
       Layout = null;
    }
    

    BTW, we have a empty layout , you can use:

    @inject IThemeManager ThemeManager
    @{
        Layout = ThemeManager.CurrentTheme.GetEmptyLayout();
    }
    
    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, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.