What’s the best way to customise the formatting of the link text? It looks like editing the CSS isn’t the best approach because the changes will be lost when the plugin’s updated.
It’d be useful to be able to customise the text depending on the theme too. I have a dark theme & a light theme with different colour fonts for each. I’d like to set the colour of the text to match the theme.
Thanks! I’ve done that now & it worked like a charm.
Out of interest, how does the site choose which CSS to use? If the standard theme component contains CSS that will set the font colour to $header_primary -
Привет, @Johani! Всё ещё так? Мой экземпляр почему-то не хочет принимать цвет $header_primary, и, что любопытно, даже когда я устанавливаю $primary в нужный мне цвет (белый), он упорно остаётся чёрным !
Скорее всего, это связано с переходом от SCSS к CSS-переменным для объявления цветов. Присваивание $header_primary в пользовательском CSS не работает, но если вы используете
.custom-header-links .headerLink a {
color: var(--header_primary);
}
Да, всё верно. Компонент теперь использует пользовательское свойство CSS, это должно решить вашу проблему, @Daniel_R. Вам просто нужно обновить компонент.