XF 2.3 Different html widget colors between 2 different styles/themes

mrdoitnyce

Active member
Hey All,

Currently rocking 2 themes that has 2 different color schemes on my site.

1 dark - black & red
1 light - blue & white

So I mostly rock the blue & white style and recently created a buy me a coffee widget and set it to match the theme color, then i realized i forgot about the other style and obviously it looks off when i switch between the 2. I was just wondering if there was a way to have it 2 different colors of the same widget and it would remain its respective color that I set somehow as I switch between the 2. Btw, it's an HTML widget.

Screenshot 2024-08-30 at 1.54.01 PM.webp


Screenshot 2024-08-30 at 1.54.37 PM.webp
Screenshot 2024-08-30 at 2.07.22 PM.webp
 
Currently rocking 2 themes that has 2 different color schemes on my site.
Using Style variation, correct?
Then this post can help:
 
No, not using style variation. Switching between different themes.

I only have one html code for the button which is this:
Code:
<center><a href="https://www.buymeacoffee.com/superchunes"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a Beer&emoji=🍺&slug=superchunes&button_colour=09afdc&font_colour=FFFFFF&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00" /></a></center>

As you can see, i've set that button color to match my blue & white theme. But, lets say I want to use my black & red theme and I switch over, the button will obviously stay the color in the html code. I was just wondering if there was a way to add another color combination to the html code to match the black&red theme and if i switch between themes, it would stay its respective colors.
 
It seems that this is a code that you get from the Buy me a coffee site... I don't know if you can modify it easily.
You should create your own button and use XenForo color variables, this will automatically adapt to the selected theme.
 
Back
Top Bottom