Re: [Tiki-devel] change fa-caret-square (re/le) in layout_view.php
Jonny Bradley via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Torsten
I think i would try really hard to do that with custom css, or if that's not possible, with some javascript - forking one of the layout templates means messy updates in the future (probably).
Yup, that works but is a bit fiddly - this for instance:
body.hide_zone_right .side-col-toggle-container .toggle_zone.right > span:before {
content: "\f118";
}
...turns the right column toggle icon into a smiley when the right col is hidden 🤓
HTH?
jonny
> On 4 Dec 2021, at 16:41, Torsten Fabricius via TikiWiki-devel <[email protected]> wrote:
>
> Hello designers,
>
> for some reason I want to change the fa-caret-square-right and fa-caret-square-left, where we toggle the columns of our left/right module zone
>
> In layout_view.tpl I find the following code:
>
> {$icon_name = (not empty($smarty.cookies.hide_zone_left)) ? 'toggle->
> {icon name=$icon_name class='toggle_zone left' href='#' title='{tr}T>
>
> whilst I find this syntaxt in the CSS, when I analyse a page in the browser:
>
> <span class="far fa-caret-square-right fa-fw icon icon-toggle-right...
>
> I assume, that the relevant icon is mapped somewhere for the sake of a magic and optional replacement or switch of iconsets.
>
> Am I right? And where I can find the place where fa-caret-square is defined for that place?
>
> Best regards,
> Torsten
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel