Applying duotone filter to images within CoBlocks blocks
-
I am making a website that is completely duotone on the homepage. Projects on my portfolio are presented using the Services CoBlock. Images placed using WordPress image blocks can easily be made duotone, but images in the Services CoBlock cannot be made duotone.
As far as I can tell adding duotone support to a block is easy (for a developer) by adding this code to the block code. I am not a developer so I have no idea how to do this. Having duotone image filter capability throughout CoBlocks would be an awesome update, or maybe someone could help me apply the filter myself with CSS.
supports: { filter: { // Enable duotone support duotone: true } }, selectors: { filter: { // Apply the filter to img elements inside the image block duotone: '.wp-block-image img' } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Applying duotone filter to images within CoBlocks blocks’ is closed to new replies.