i use a Solution for my Custom Bootstrap Template.

Here is my idea: If a certain component open in the frontend, they add the word "-fluid" to my containter css class.

but i don't know how i can check if the certain component open in the frontend.

Any Idea?


  • In the frontend vs the backend? – Javatasse Jul 30 '18 at 0:39
$component = JFactory::getApplication()->input->get('option');

if ($component === 'com_example')
    // do something
  • wow, wow ,wow! Great Thank you! That's it! – Danny Jul 30 '18 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.