Last Updated 11 months ago

Safe styling of modules

Below we describe guidelines for styling our modules - how to do it without breaking the module, e.g. while updating the module or store.

WHAT TO DO:

  • Override templates in the theme - copy the file from: modules/pshowtrustedreviews/views/templates/ to: themes/[your_theme]/modules/pshowtrustedreviews/views/templates/
  • Add your own CSS in theme files instead of modifying the module's CSS
  • Use more specific CSS selectors instead of !important

WHAT NOT TO DO:

  • Do not modify files directly in the modules/pshowtrustedreviews/ folder
  • Do not change the module's original CSS files

Example

Instead of editing:

modules/pshowtrustedreviews/views/css/front.css
create your own CSS file in the theme and override the styles:

.pshow-tr-star {
color: #your-color;
}
This approach guarantees your changes survive every module update.


Please Wait!

Please wait... it will take a second!

Kliknij by skopiować