Как отключить JL Comments на мобильной версии?

More
6 years 2 weeks ago #7707 by rdw
Здравствуйте.
Использую JL Comments для обычных материалов. Скажите, можно ли как-то отключить вывод плагина на мобильной версии сайта? Пробовал использовать определение методом фреймворка джумлы $client->mobile, но в силу низкой квалификации у меня ничего не получилось

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

More
6 years 2 weeks ago #7709 by JoomLine
Этот метод не будет корректно работать, так как он не корректно определяет мобильные устройства.

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

More
6 years 2 weeks ago #7710 by rdw
А каким образом тогда можно отключить плагин на мобильных устройствах?

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

More
6 years 2 weeks ago #7712 by JoomLine
самое простое в зависимости от media запросов скрыть блок

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

More
6 years 4 days ago #7738 by rdw
Можете описать как это сделать?

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

More
5 years 11 months ago #7747 by JoomLine
Вам надо прописать, что-то типа вот этого в стили вашего шаблона.
@media screen and (max-width: 800px){
#jlcomments_container {
display:none;
}
}

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

Powered by Kunena Forum

Last from the forum

    • blogsandarticleslife
    • After eating sugar, the frame's blood sugar level rises swiftly, growing serotonin, making humans satisfied and enhancing their immediately experience of nicely-being. But, whilst blood sugar drops again, the frame will speedy feel worn-out and even have trouble concentrating. And when the frame can not produce greater serotonin on its very own, once it's miles reduced, it will make your temper turn low and depressed again; steadily, you becomes conversant in consuming candies to meet your self.
    • In Component / JL TV
    • mytopbestblog
    • [Cassia Seed and Chrysanthemum Tea] One cup an afternoon can clean the liver, improve eyesight, and shield the heart and liver! Suitable for folks who stay up late and paintings time beyond regulation, have a bad complexion, are prone to acne, have horrific breath, are in poor situ
    • In Component / JL Mail
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.