xenzia Posted September 14, 2018 Share Posted September 14, 2018 Установил Facebook Pixel на сайт чтоб отслеживать конверсию. Появилась вот эта штука внизу сайта, причём с компьютера она не мешает абсолютно, а вот в мобильной версии сайта даже после нажатия кнопки "принять" не исчезает и занимает много места на экране. Можно её как-то убрать? Или хотя бы настроить, чтоб пропадала после принятия? Link to comment Share on other sites More sharing options...
xenzia Posted September 14, 2018 Author Share Posted September 14, 2018 7 часов назад, xenzia сказал: Установил Facebook Pixel на сайт чтоб отслеживать конверсию. Появилась вот эта штука внизу сайта, причём с компьютера она не мешает абсолютно, а вот в мобильной версии сайта даже после нажатия кнопки "принять" не исчезает и занимает много места на экране. Можно её как-то убрать? Или хотя бы настроить, чтоб пропадала после принятия? Никто не знает как это можно скрыть??? Link to comment Share on other sites More sharing options...
xenzia Posted September 16, 2018 Author Share Posted September 16, 2018 Мдаа... Link to comment Share on other sites More sharing options...
yastman Posted December 9, 2018 Share Posted December 9, 2018 Подскажите как вы решили проблему ? Link to comment Share on other sites More sharing options...
whiteblue Posted January 8, 2019 Share Posted January 8, 2019 В 10.12.2018 в 01:54, yastman сказал: Подскажите как вы решили проблему ? сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь Link to comment Share on other sites More sharing options... yastman Posted January 8, 2019 Share Posted January 8, 2019 2 часа назад, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь Спасибо. Link to comment Share on other sites More sharing options... 4 weeks later... sysopdt Posted February 5, 2019 Share Posted February 5, 2019 Та же проблема. Есть нормальное решение? Link to comment Share on other sites More sharing options... Gmp Posted February 6, 2019 Share Posted February 6, 2019 Если у кого есть такая проблема и готов дать доступы - хотел бы глянуть ради интереса что за зверь и в чем сложность. Link to comment Share on other sites More sharing options... 1 month later... zilmer Posted March 8, 2019 Share Posted March 8, 2019 у кого есть решение по этой теме. Такая же проблема? Link to comment Share on other sites More sharing options... colaweb Posted March 9, 2019 Share Posted March 9, 2019 Дайте ссылку. Можно решить при помощи JS Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 bloxa.in.ua Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, colaweb сказал: Дайте ссылку. Можно решить при помощи JS bloxa.in.ua Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, zilmer сказал: bloxa.in.ua Link to comment Share on other sites More sharing options... colaweb Posted March 9, 2019 Share Posted March 9, 2019 var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Link to comment Share on other sites More sharing options... Gmp Posted March 9, 2019 Share Posted March 9, 2019 Можно открыть catalog/view/javascript/facebook/cookieconsent.min.js и добавить в конец файла строчку .cc-revoke { display: none; } Но правильнее будет добавить эту строчку в "Пользовательские стили" если в вашем шаблоне есть такая настройка (обычно есть во всех платных шаблонах), тогда это не слетит при обновлении. А вообще я бы полностью выпилил этот код. <link rel="stylesheet" type="text/css" href="catalog/view/theme/css/facebook/cookieconsent.min.css" /> <script type="text/javascript" src = "catalog/view/javascript/facebook/cookieconsent.min.js"></script> <script> window.addEventListener("load", function(){ function setConsent() { fbq( 'consent', this.hasConsented() ? 'grant' : 'revoke' ); } window.cookieconsent.initialise({ palette: { popup: { background: '#237afc' }, button: { background: '#fff', text: '#237afc' } }, cookie: { name: fbq.consentCookieName }, type: 'opt-out', showLink: false, content: { dismiss: 'Agree', deny: 'Opt Out', header: 'Our Site Uses Cookies', message: 'By clicking Agree, you agree to our <a class="cc-link" href="https://www.facebook.com/legal/terms/update" target="_blank">terms of service</a>, <a class="cc-link" href="https://www.facebook.com/policies/" target="_blank">privacy policy</a> and <a class="cc-link" href="https://www.facebook.com/policies/cookies/" target="_blank">cookies policy</a>.' }, layout: 'basic-header', location: true, revokable: true, onInitialise: setConsent, onStatusChange: setConsent, onRevokeChoice: setConsent }, function (popup) { // If this isn't open, we know that we can use cookies. if (!popup.getStatus() && !popup.options.enabled) { popup.setStatus(cookieconsent.status.dismiss); } }); }); </script> 1 Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 3 часа назад, colaweb сказал: var textSearch = document.querySelectorAll('body > div'); for (let i = 0; i < textSearch.length; i++) { const element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Извините за тупой вопрос. Куда этот код вставлять? Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 В любой JS файл подключенный к странице Вставить нужно после $(document).ready(function() { // сюда вставить Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Link to comment Share on other sites More sharing options... zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options... 3 weeks later... whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Услуги Настройка и мелкая работа по уже существующему сайту Убрать cookies policy - мешает на сайте Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Buttons Social Share By Parallax request-price By mr_garik Мессенджеры + Обратный Звонок By Parallax Последние товары с любой категории By Kingfrelance Вес и размеры в категориях, производителях, акциях и во всех модулях. By rtsasuk × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
yastman Posted January 8, 2019 Share Posted January 8, 2019 2 часа назад, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь Спасибо. Link to comment Share on other sites More sharing options...
sysopdt Posted February 5, 2019 Share Posted February 5, 2019 Та же проблема. Есть нормальное решение? Link to comment Share on other sites More sharing options...
Gmp Posted February 6, 2019 Share Posted February 6, 2019 Если у кого есть такая проблема и готов дать доступы - хотел бы глянуть ради интереса что за зверь и в чем сложность. Link to comment Share on other sites More sharing options...
zilmer Posted March 8, 2019 Share Posted March 8, 2019 у кого есть решение по этой теме. Такая же проблема? Link to comment Share on other sites More sharing options...
colaweb Posted March 9, 2019 Share Posted March 9, 2019 Дайте ссылку. Можно решить при помощи JS Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 bloxa.in.ua Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, colaweb сказал: Дайте ссылку. Можно решить при помощи JS bloxa.in.ua Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, zilmer сказал: bloxa.in.ua Link to comment Share on other sites More sharing options... colaweb Posted March 9, 2019 Share Posted March 9, 2019 var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Link to comment Share on other sites More sharing options... Gmp Posted March 9, 2019 Share Posted March 9, 2019 Можно открыть catalog/view/javascript/facebook/cookieconsent.min.js и добавить в конец файла строчку .cc-revoke { display: none; } Но правильнее будет добавить эту строчку в "Пользовательские стили" если в вашем шаблоне есть такая настройка (обычно есть во всех платных шаблонах), тогда это не слетит при обновлении. А вообще я бы полностью выпилил этот код. <link rel="stylesheet" type="text/css" href="catalog/view/theme/css/facebook/cookieconsent.min.css" /> <script type="text/javascript" src = "catalog/view/javascript/facebook/cookieconsent.min.js"></script> <script> window.addEventListener("load", function(){ function setConsent() { fbq( 'consent', this.hasConsented() ? 'grant' : 'revoke' ); } window.cookieconsent.initialise({ palette: { popup: { background: '#237afc' }, button: { background: '#fff', text: '#237afc' } }, cookie: { name: fbq.consentCookieName }, type: 'opt-out', showLink: false, content: { dismiss: 'Agree', deny: 'Opt Out', header: 'Our Site Uses Cookies', message: 'By clicking Agree, you agree to our <a class="cc-link" href="https://www.facebook.com/legal/terms/update" target="_blank">terms of service</a>, <a class="cc-link" href="https://www.facebook.com/policies/" target="_blank">privacy policy</a> and <a class="cc-link" href="https://www.facebook.com/policies/cookies/" target="_blank">cookies policy</a>.' }, layout: 'basic-header', location: true, revokable: true, onInitialise: setConsent, onStatusChange: setConsent, onRevokeChoice: setConsent }, function (popup) { // If this isn't open, we know that we can use cookies. if (!popup.getStatus() && !popup.options.enabled) { popup.setStatus(cookieconsent.status.dismiss); } }); }); </script> 1 Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 3 часа назад, colaweb сказал: var textSearch = document.querySelectorAll('body > div'); for (let i = 0; i < textSearch.length; i++) { const element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Извините за тупой вопрос. Куда этот код вставлять? Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 В любой JS файл подключенный к странице Вставить нужно после $(document).ready(function() { // сюда вставить Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Link to comment Share on other sites More sharing options... zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options... 3 weeks later... whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Услуги Настройка и мелкая работа по уже существующему сайту Убрать cookies policy - мешает на сайте Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Buttons Social Share By Parallax request-price By mr_garik Мессенджеры + Обратный Звонок By Parallax Последние товары с любой категории By Kingfrelance Вес и размеры в категориях, производителях, акциях и во всех модулях. By rtsasuk × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
zilmer Posted March 9, 2019 Share Posted March 9, 2019 bloxa.in.ua Link to comment Share on other sites More sharing options...
zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, colaweb сказал: Дайте ссылку. Можно решить при помощи JS bloxa.in.ua Link to comment Share on other sites More sharing options...
zilmer Posted March 9, 2019 Share Posted March 9, 2019 2 часа назад, zilmer сказал: bloxa.in.ua Link to comment Share on other sites More sharing options...
colaweb Posted March 9, 2019 Share Posted March 9, 2019 var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Link to comment Share on other sites More sharing options... Gmp Posted March 9, 2019 Share Posted March 9, 2019 Можно открыть catalog/view/javascript/facebook/cookieconsent.min.js и добавить в конец файла строчку .cc-revoke { display: none; } Но правильнее будет добавить эту строчку в "Пользовательские стили" если в вашем шаблоне есть такая настройка (обычно есть во всех платных шаблонах), тогда это не слетит при обновлении. А вообще я бы полностью выпилил этот код. <link rel="stylesheet" type="text/css" href="catalog/view/theme/css/facebook/cookieconsent.min.css" /> <script type="text/javascript" src = "catalog/view/javascript/facebook/cookieconsent.min.js"></script> <script> window.addEventListener("load", function(){ function setConsent() { fbq( 'consent', this.hasConsented() ? 'grant' : 'revoke' ); } window.cookieconsent.initialise({ palette: { popup: { background: '#237afc' }, button: { background: '#fff', text: '#237afc' } }, cookie: { name: fbq.consentCookieName }, type: 'opt-out', showLink: false, content: { dismiss: 'Agree', deny: 'Opt Out', header: 'Our Site Uses Cookies', message: 'By clicking Agree, you agree to our <a class="cc-link" href="https://www.facebook.com/legal/terms/update" target="_blank">terms of service</a>, <a class="cc-link" href="https://www.facebook.com/policies/" target="_blank">privacy policy</a> and <a class="cc-link" href="https://www.facebook.com/policies/cookies/" target="_blank">cookies policy</a>.' }, layout: 'basic-header', location: true, revokable: true, onInitialise: setConsent, onStatusChange: setConsent, onRevokeChoice: setConsent }, function (popup) { // If this isn't open, we know that we can use cookies. if (!popup.getStatus() && !popup.options.enabled) { popup.setStatus(cookieconsent.status.dismiss); } }); }); </script> 1 Link to comment Share on other sites More sharing options... zilmer Posted March 9, 2019 Share Posted March 9, 2019 3 часа назад, colaweb сказал: var textSearch = document.querySelectorAll('body > div'); for (let i = 0; i < textSearch.length; i++) { const element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Извините за тупой вопрос. Куда этот код вставлять? Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 В любой JS файл подключенный к странице Вставить нужно после $(document).ready(function() { // сюда вставить Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Link to comment Share on other sites More sharing options... zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options... 3 weeks later... whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Услуги Настройка и мелкая работа по уже существующему сайту Убрать cookies policy - мешает на сайте Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Buttons Social Share By Parallax request-price By mr_garik Мессенджеры + Обратный Звонок By Parallax Последние товары с любой категории By Kingfrelance Вес и размеры в категориях, производителях, акциях и во всех модулях. By rtsasuk
Gmp Posted March 9, 2019 Share Posted March 9, 2019 Можно открыть catalog/view/javascript/facebook/cookieconsent.min.js и добавить в конец файла строчку .cc-revoke { display: none; } Но правильнее будет добавить эту строчку в "Пользовательские стили" если в вашем шаблоне есть такая настройка (обычно есть во всех платных шаблонах), тогда это не слетит при обновлении. А вообще я бы полностью выпилил этот код. <link rel="stylesheet" type="text/css" href="catalog/view/theme/css/facebook/cookieconsent.min.css" /> <script type="text/javascript" src = "catalog/view/javascript/facebook/cookieconsent.min.js"></script> <script> window.addEventListener("load", function(){ function setConsent() { fbq( 'consent', this.hasConsented() ? 'grant' : 'revoke' ); } window.cookieconsent.initialise({ palette: { popup: { background: '#237afc' }, button: { background: '#fff', text: '#237afc' } }, cookie: { name: fbq.consentCookieName }, type: 'opt-out', showLink: false, content: { dismiss: 'Agree', deny: 'Opt Out', header: 'Our Site Uses Cookies', message: 'By clicking Agree, you agree to our <a class="cc-link" href="https://www.facebook.com/legal/terms/update" target="_blank">terms of service</a>, <a class="cc-link" href="https://www.facebook.com/policies/" target="_blank">privacy policy</a> and <a class="cc-link" href="https://www.facebook.com/policies/cookies/" target="_blank">cookies policy</a>.' }, layout: 'basic-header', location: true, revokable: true, onInitialise: setConsent, onStatusChange: setConsent, onRevokeChoice: setConsent }, function (popup) { // If this isn't open, we know that we can use cookies. if (!popup.getStatus() && !popup.options.enabled) { popup.setStatus(cookieconsent.status.dismiss); } }); }); </script> 1 Link to comment Share on other sites More sharing options...
zilmer Posted March 9, 2019 Share Posted March 9, 2019 3 часа назад, colaweb сказал: var textSearch = document.querySelectorAll('body > div'); for (let i = 0; i < textSearch.length; i++) { const element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } Извините за тупой вопрос. Куда этот код вставлять? Link to comment Share on other sites More sharing options...
colaweb Posted March 10, 2019 Share Posted March 10, 2019 В любой JS файл подключенный к странице Вставить нужно после $(document).ready(function() { // сюда вставить Link to comment Share on other sites More sharing options... colaweb Posted March 10, 2019 Share Posted March 10, 2019 // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Link to comment Share on other sites More sharing options... zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options... 3 weeks later... whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Услуги Настройка и мелкая работа по уже существующему сайту Убрать cookies policy - мешает на сайте
colaweb Posted March 10, 2019 Share Posted March 10, 2019 // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Link to comment Share on other sites More sharing options... zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options... 3 weeks later... whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page.
zilmer Posted March 10, 2019 Share Posted March 10, 2019 4 часа назад, colaweb сказал: // найдите $(document).ready(function() { // сюда вставить var textSearch = document.querySelectorAll('body > div'); for (var i = 0; i < textSearch.length; i++) { var element = textSearch[i]; if (element.textContent.includes('Cookie Policy')) { element.parentNode.removeChild(element); } } ... Я правильно понял: Например, можно так /bloxa.in.ua/www/catalog/view/theme/название темы/js/common в файле common находим $(document).ready(function() { и после вставляем приведенный код Link to comment Share on other sites More sharing options...
whiteblue Posted March 26, 2019 Share Posted March 26, 2019 В 08.01.2019 в 21:00, whiteblue сказал: сделано топорно и костылем временно Не рекомендовано ... ..\catalog\view\theme\css\facebook\cookieconsent.min.css через поиск замену: найти: } заменить на: ; visibility:hidden;} ******* Грешен...Каюсь этот способ оказался самым простым и быстрым.. Link to comment Share on other sites More sharing options... 9 months later... egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options... 2 months later... Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options... Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options... Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options... Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options... Prev 1 2 Next Page 1 of 2 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2
egress Posted January 25, 2020 Share Posted January 25, 2020 Может и топорно, как написал @ whiteblue, но работает. В ..\catalog\view\theme\css\facebook\cookieconsent.min.css добавлена строчка "visibility:hidden;" .cc-revoke.cc-bottom{ visibility:hidden; bottom:0; left:3em; border-top-left-radius:.5em; border-top-right-radius:.5em } Link to comment Share on other sites More sharing options...
Eretik Posted April 17, 2020 Share Posted April 17, 2020 Хотел выпилить эту противную кнопку методом, предложенным @Gmp Но в указанном файле код в одну строку и отличается от того, что в посте. Как в с более новым модулем от фейсбука избавиться от этой кнопки? Link to comment Share on other sites More sharing options...
Gmp Posted April 18, 2020 Share Posted April 18, 2020 @Eretik киньте ссылку на сайт. 1 Link to comment Share on other sites More sharing options...
Eretik Posted April 18, 2020 Share Posted April 18, 2020 3 hours ago, Gmp said: @Eretik киньте ссылку на сайт. veloforma.net Link to comment Share on other sites More sharing options...
Eretik Posted April 19, 2020 Share Posted April 19, 2020 Как выяснилось, просто заглючили настройки модуля. Переустановил и появилась галочка для отключения. Link to comment Share on other sites More sharing options...
Recommended Posts