• Resolved marvec

    (@marvec)


    The UB keeps generating two different styles for the button which overrides the settings.

    You can see it here: https://www.lumeer.io/hyperise-integration/
    The first button should be green on white and switch on hover.

    The second button is the opposite – white on green and switch on hover.

    However, I keep getting duplicated style generated for the first button.
    From page source:

       <style>
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a a {
                    background-color: #fff;
                    color: #00b388;
                    border: none;
                    border-radius: 60px
                }
    
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a a:hover {
                    background-color: #00b388;
                    color: #fff;
                    border: none
                }
    
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a ub-button-content-holder {
                    flex-direction: row
                }
    
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a a {
                    background-color: #00b388;
                    color: #fff;
                    border: none;
                    border-radius: 60px
                }
    
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a a:hover {
                    background-color: #fff;
                    color: #00b388;
                    border: none
                }
    
                #ub-button-7a01ac6c-b388-4f93-b056-117a1303665a ub-button-content-holder {
                    flex-direction: row
                }
            </style>

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @marvec! It seems that, instead of inserting each button by itself, you duplicated the first one you made. Have you tried deleting the second button and inserting a new one?

    Thread Starter marvec

    (@marvec)

    Indeed! Not within this page, but from another post. Can this be handled on the plugin side somehow? Or do I just need to be careful and not copy the button?

    It takes a lot of time to configure the button, so copy/pasting makes it much easier…

    Thank you very much!

    Plugin Contributor Alexis Pandaan

    (@alexius08)

    In the next version, we’ll include a fix for avoiding duplicate styles in the frontend when blocks are duplicated. For now, you have to avoid duplicating blocks unless you’re sure about those blocks having the same style.

    Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @marvec!

    We’ve released a new version where duplicating blocks no longer results into duplicate frontend styles. Please update to the latest version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot use two UB Buttons with different styles on a single page’ is closed to new replies.