416
Views
9
Comments
Solved
CSS classes of theme not working in browser 
Question

Hi all,

I have overridden the base theme and done some changes in CSS classes but after execution, browser is still pointing to the CSS classes of base theme.

Please help me with this,how can I force my overridden CSS classes to work.

Thanks. 

2018-11-06 14-26-44
Suraj Borade
Solution

Hi All

Thanks for the replies. Actually this project is being run under me and Pratima is able to resolve the issues. Problem was that all dependencies from all modules were not refreshed. So some modules were using old theme and some modules were using new theme that's why new classes were not being applied. Now new theme is applied everywhere.

Thanks and Regards,

Suraj Borade

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pratima,

How have you overridden the base theme? Where did you apply the changes? Are you sure the new theme is used? Did you check the devtools of your browser to inspect which CSS is being used and why?

UserImage.jpg
osuser

Hi Kilian,

Yes I have to apply the new theme.

Actually, I have copied the base theme(Theme_TH) in my default theme(Revamp). I want to change some CSS classes of the base theme like color of the menu link but after execution, the browser is showing the color of the base theme only.

Thanks.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pratima,

You must also make sure your eSpace or Flow actually uses the new Theme. Did you do that?

(check eSpace properties, section "Web", "Default Theme" and Flow property "Theme")

UserImage.jpg
osuser

Kilian Hekhuis wrote:

Hi Pratima,

You must also make sure your eSpace or Flow actually uses the new Theme. Did you do that?

(check eSpace properties, section "Web", "Default Theme" and Flow property "Theme")


Hi Kilian,

Yes, I have selected the new theme only.

Thanks for reply :)


2016-04-21 20-09-55
J.
 
MVP

what does your browser show in developer-tools? 

(chrome/firefox use F12 and inspect the element )



UserImage.jpg
osuser

J. wrote:

what does your browser show in developer-tools? 

(chrome/firefox use F12 and inspect the element )




Hi J.,

After inspect browser is taking the base theme css classes only.It's not even showing the classes which I have change in default theme.

But, I can able to see the changes in webscreen of application but after execution in browser its taking the css classes of base theme only.

Thanks.

2024-03-25 06-19-08
Harlin Setiadarma

Hi Pratima,

Try to add !important like this:

.Menu .TopMenu a {

    color: blue !important;

}

2022-01-17 05-19-27
Kavita

Hi Pratima Solanki,

You need to use of RGB color:rgba(192,192,192, .75); instead of  Color:#c0c0c0; 


2018-11-06 14-26-44
Suraj Borade
Solution

Hi All

Thanks for the replies. Actually this project is being run under me and Pratima is able to resolve the issues. Problem was that all dependencies from all modules were not refreshed. So some modules were using old theme and some modules were using new theme that's why new classes were not being applied. Now new theme is applied everywhere.

Thanks and Regards,

Suraj Borade

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.