Lets use WooCommerce’s built-in CSS color classes
-
Hello!
I installed the carousel shortcode on my site and it works! There are no complaints about the functionality!
in the content of the page – in Gutenberg – the block “Arbitrary HTML”.
on internal pages – to the bottom widget “HTML-code”.However, there are requests for CSS colors.
the background of the “add to cart” button and the price have the same color. you can make different colors.
The color of the inscription on the “add to cart” button is not set. it is assumed that all sites have a white inscription on a dark button, and not vice versa.
the third color “Primary Color Light” does not seem to be used anywhere. but in vain.
you have to write:
not “Secondary Color” and “Secondary Color Light” but “Previous Button Color” and “Next Button Color”.
not “Primary Color”, but “Add to Cart Button Background Color”.
not “Primary Color Dark”, but “Add to Cart Button Background Color on Hover”.add colors:
“Text color of Previous and Next buttons.
“Text Color of the Add to Cart Button”.
“Price Text Color”.
“The color of the strikethrough price”.In principle, all sites have CSS configured for “price” and “crossed out price”, shop buttons “Add to cart” and so on. Therefore, it makes no sense to set them separately in the plugin. You need to use the CSS classes that are already in Woo.
Usually WP and WOO themes also have pagination button colors set.
.post-navigation .nav-previous, .post-navigation .nav-next, .posts-navigation .nav-previous, .posts-navigation .nav-next { ... }
And perhaps these colors can be used for the carousel buttons “Previous” and “Next”.
If by default these “nav-previous” and “nav-next” classes are set in the PHP code of WP and WOO, then they are not needed, perhaps. I don’t know.RU:
Здраствуйте!
Я установил шорткод карусели на свой сайт и всё работает! По функционалу претензий нет!
в контент страницы – в Гутенберг – блок “Произвольный HTML”.
на внутренних страницах – в нижний виджет “HTML-код”.Однако есть пожелапния по цветам CSS.
у фона кнопки “в корзину” и цены одинаковый цвет. можно сделать разные цвета.
цвет надписи на кнопке “в корзину” не задан. предполагается что у всех сайтов надпись белая на тёмной кнопке, а не наоборот.
третий цвет “Primary Color Light” нигде вроде бы не используется. а зря.
надо написать:
не “Secondary Color” и “Secondary Color Light” а “Цвет Кнопки “Предыдущий” и “Цвет Кнопки “Следующий”.
не “Primary Color”, а “Цвет фона Кнопки “В корзину”.
не “Primary Color Dark”, а “Цвет фона Кнопки “В корзину” при наведении”.надо добавить цвета:
“Цвет текста Кнопки “Предыдущий” и “Следующий”.
“Цвет текста Кнопки “В корзину”.
“Цвет текста цены”.
“Цвет зачёркнутой цены”.В принципе у всех сайтов настроены CSS для “цены” и “зачёркнутой цены”, кнопок магазина “В корзину” и так далее. Поэтому задавать их отдельно в плагине смысла нет. Надо использовать классы CSS которые уже есть в Woo.
Обычно также в темах WP и WOO заданы цвета кнопок пагинации.
.post-navigation .nav-previous, .post-navigation .nav-next, .posts-navigation .nav-previous, .posts-navigation .nav-next { ... }
И наверное эти цвета можно использовать для кнопок карусели “Предыдущий” и “”Следующий”.
Если по умолчанию эти классы “nav-previous” и “nav-next” уже заданы в PHP-коде WP и WOO – то и они не нужны, возможно. Я не знаю.The page I need help with: [log in to see the link]
- The topic ‘Lets use WooCommerce’s built-in CSS color classes’ is closed to new replies.