is there a way that I can modifie the standard kirbytags like blockquote, figure etc without creating new kirbytags?
Or maybe just overwrite the standard tags?
For example I need to add a class to the blockquote
Thanks in advance!
Yes, you can make a copy of the original tag and save it under the same name in /site/tags. But there is no blockquote kirbytag?
Oh yeah, I guess cause I use the plugin markdown
Is there a way to edit this with that plugin? I searched in the files of that plugin but I cant find the part where the tags are defined…
@texnixe Sorry to bother you again. I can’t really “figure” it out. So I copied the image tag and created a new tag. No I want to add a class which is always used for the tag. So that it will end like this:
<img class="img-fluid" />
To add a class to the figure tag, you can before or after this line
then do the same for the image and figcaption.
I think if that was me, I would just add the
.figure class, because the other elements can be targeted through it in CSS. Saves you a bit of logic
It might sound nitpicky, but actually if you make small changes like this across a whole site, the css and PHP will be easier to read, and lighter.
@jimbobrjames yeah I agree, but for this Iam using a css framework and I dont want to change things here
@texnixe worked! Thanks so much!
Fair enough. I’m resisting giving my usual anti Bootstrap rant
Glad you got it working.
@jimbobrjames This time its a self written css framework from a client
Cool. Might not be so bad then. I am big believer in building the right tools. Off the shelf code isnt always a timesaver.
Feel free to give my framework a go some time. I’d love to see projects built with it by other people.