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

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

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

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

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

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

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

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

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

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

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

More
4 years 5 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

    • Авторизация не работает совсем
    • Дело только в кейшировании Как не странно, даже отключение кейшировании в основных настройках всеравно создаёт кеши в 4 версии . Нкскажу банк это или фича Проверить просто Заходите в админку в раздел Кеша и делаете полною очистку. После этого авторизация срабатывает. Однако она также срабатывает один раз на один аккаунт после этого если из аккаунта выйти будет открываться главная страница. Пускает только через 15 минут или после повторной очистки Кеша. Это я побороть так и не смог . Оставил как есть. Также надо отключить кейшировании модуля главного меню
    • In Component / Slogin
    • Google search and robots.txt
    • Hi. Your documentation says "the robots.txt file in the root of the site. Add the "sitemap: site.ru/sitemap.xml" entry to it. site.ru is your domain name." If I use sitemap.xml for Google search Console, should I add this line to the file robots.txt ? Or is it enough for Google indexing that I will add a link to sitemap.xml to the Sitemaps tab of Google search Console?  Thanks
    • In Component / JL Sitemap
© 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.