but now the link has the background-color assigned to the page that were on, how can I change it so that the link gets the background-color of the page it is linking to?
All the pages crossreferencing are $pages->listed() and all of them have a color assigned through the backend.
Thankful for any tips or ideas on how to go about this!
I think your best bet is to handle this in a custom version of the link kirbytag, where you have access to the tag value (a page uuid), and then you can take it from there. Then you can add a proper class to the a tag and you don’t have to have an ugly mix of CSS and PHP.
yes i’ve realized as soon as you said it sorry (i think I had a not seeing the forest bc of all the trees moment)
i’m just going to implement images through the files option with the textarea then.
thank you