How to add Theme(css files) while using Blazor component as a module in Orchard Core Cms #14727
Unanswered
hamna-python
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@hamna-python little old sample but should wok on .NET 6 https://github.com/surevelox/OrchardCore.Samples/tree/ns8482e/blazor-wasm/MultiTenantBlazorWasm |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Orchard Community,
I have created an orchard core website with blazor integration, I am using blazor component as a module but I am not able to use theme while using blazor as a module, maybe blazor files overwriting the theme files. kindly check and help us in this regard.
I want to change background color of this page which created from dashboard and want to add styling here, here I am using blazor compoenent as a module, as you can see counter here PFA

Let me kindly let me know if you need more details in this
`using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
namespace OrchardSkills.OrchardCore.OrchardCMS
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
}
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Options;
using System;
using System.IO;
namespace OrchardSkills.OrchardCore.OrchardCMS
{
public class BlazorConfigureStaticFilesOptions : IPostConfigureOptions
{
private readonly IWebHostEnvironment _environment;
private readonly IHttpContextAccessor _httpContextAccessor;
private const string TenantName = "hamna"; // Name of your tenant
}
`
Beta Was this translation helpful? Give feedback.
All reactions