My new blog present here.

Featured Post

Insights into Sitecore Search: A Definitive Introduction

A key component of digital experience management is effective information retrieval. A simplified approach is required for websites, applications, and platforms containing a lot of material so that consumers can easily get the data they require. This need is met by Sitecore, a well-known name in the field of digital experience platforms (DXPs), which provides powerful and comprehensive search functionality. We will travel into the realm of Sitecore Search in this article, learning about its capabilities, architecture , and the enormous value it offers both developers and end users. Introduction to Sitecore Search    A headless content discovery platform powered by AI , Sitecore Search enables you to build predictive and custom search experiences across various content sources. To extract and index you

Customize Sitecore Experience Accelerator (SXA) OOTB Components: Part-2

Apply Custom Styling (CSS) on Sitecore Experience Accelerator (SXA) Site and OOTP Components:

In the previous article "Customize Sitecore Experience Accelerator (SXA) OOTB Components: Part-1 " we created the custom css style file, which contains the customization for Sitecore Experience Accelerator (SXA) OOTB Carousel component.

Now, we have to apply the custom css style file in the SXA website and for this we will be utilizing the Themes which created during the creation of SXA Site.

For this login into Sitecore CMS as ADMIN and go to SXA website custom theme location /sitecore/media library/Themes/Company/Brand A/India/IndiaTheme/styles :



In the above content tree the details about Tenant Folder/Tenant/Site are:
=>Company (Tenant Folder)
      > Brand A (Tenant)
                    o   India (Site)

For example name of custom css style file is company-component-carousel.css. Now upload the file at /sitecore/media library/Themes/Company/Brand A/India/IndiaTheme/styles folder:

One important things, the files which are present at /sitecore/media library/Themes/Company/Brand A/India/IndiaTheme/styles loaded on to the page in the order they are displaying in the Styles folder, because, first it will load all the required framework files from SXA Base Themes folder then it will come to individual Site Theme folder and load the files one by one, so in order to render custom css styling, its suggested to load those styling at the end.

For this navigate to Appearance > Sortorder attribute and set the higher number, so that file will come automatically at the end or give the name of the file starting with alphabet which come at the end.

If you are not able to see Sortorder attribute then from top navigation go the VIEW > Select the Standard fields check box.

The above steps also applicable, if you are applying the custom branding to your SXA website. By following above steps, you can customize any Sitecore Experience Accelerator (SXA) Site and OOTP Components.

Comments

Popular posts from this blog

Sitecore GraphQL Queries

Sitecore Experience Edge GraphQL Queries

Configuring Sitecore Next.js Headless SXA Multisite App in a Sitecore Container