• Resolved scazzino

    (@scazzino)


    Hi, I’ve used functions php to add custom buttons to AddToAny with new SVG button images. I set them up as white on transparent just like the built-in button svg images. But, the custom background color and custom foreground colors set in AddToAny do not get applied to the custom svg buttons. Is there any way to have those applied?

    I could just make the custom svg button images with the selected background/foreground colors, but I use this on a few different sites and would like to just use one set of svg images that are custom colored based on the settings in AddToAny settings.

    Thanks!

    • This topic was modified 12 months ago by scazzino.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter scazzino

    (@scazzino)

    I was able to do it with this CSS, but is there any way to do it just within AddToAny itself, without overriding it with CSS?

    .a2a_kit img {
    	background-color: var(--global-palette1);
    	border-radius: 5px;
    }
    areejsajid

    (@areejsajid)

    To achieve the desired background color and border-radius directly within AddToAny without CSS, check the plugin settings for image styling options. If not available, using the provided CSS is a reliable method for customization. Always refer to the latest documentation for any updates beyond my last knowledge update.”

    Thread Starter scazzino

    (@scazzino)

    OK, thanks. The CSS will do. Just thought I might be missing something.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do you change background color of custom buttons?’ is closed to new replies.