All popular questions related to OS Property will be posted here

How do I disable OS Property style files in a Joomla template?

  • Konstantin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #145565 by Konstantin
Joomla 3.9.28, OS Property 3.19.1.

Both the component and its search module drag along with them a bunch of unnecessary and disturbing .js and .css files. Some style files could be disabled when overriding component and module. The scripts turned out to be disabled like this:
Code:
unset($this->_scripts[$this->baseurl . '/media/com_osproperty/assets/js/ajax.js']);
But here are the styles like this:
Code:
unset($this->_styles[$this->baseurl . '/media/com_osproperty/assets/css/frontend_style.css']);
can not be turned off. I have to hack the component, and in several places, which I, for obvious reasons, do not want to do. And the style file /components/com_osproperty/templates/default/style/style.css is generally not clear where it comes from, at least I could not find it.

I ask the community for help.

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan