Skip Navigation

[Resolved] btn-secondary class added to wpv-filter-submit

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by emmaM-2 4 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1520043

I have buttons on the home page of the website hidden link

These buttons have the bootstrap class defined as follows:
[wpv-filter-submit name="GO" type="button" output="bootstrap" class="btn btn-primary btn-lg"]

Until the recent plugin upgrades this code worked fine and the styling for "btn-primary" meant that the buttons were blue (#337ab7). After the plugin upgrades the buttons are now an off white (#e0eef2).

The reason for this is that additional classes have been added to the outputted code:
<button type="submit" class="btn btn-primary btn-lg wpv-submit-trigger js-wpv-submit-trigger btn btn-secondary">GO</button>

The presence of the "btn-secondary" in the class is overriding the "btn-primary" that I have specified.

Could you please explain what is going on and if there is a way for me to prevent the "btn-secondary" from being added to the class?

Thanks

Emma

#1520755

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Emma

I checked, and you're right.

It seems that the changes related to blocks in Views 3 resulted in the btn-secondary class automatically being added.

I don't see any way to prevent it.

I'm escalating this so that it can be determined why, and hopefully reversed.

I'll let you know what feedback I get. In the meantime you would need to revert to View 2.9.4 to prevent it. (Previous versions are available here: https://toolset.com/download/toolset-views/#changelog.)

#1523993

Ok, great thanks. I'm not going mad then 😉

#1612315

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Emma

This should have been fixed with the release of Views 3.2 today if you'd like to upgrade and check.

If you still see any problem let me know.

#1616133

Hi Nigel,

I've upgraded my development site today and unfortunately this issue does not appear to have been resolved. "btn-secondary" is still being inserted into the css.

Emma

#1616165
Screenshot 2020-05-08 14.30.33.png

Hi Nigel,

Apologies, I just checked the version number and I'm still on 3.1.3. There's no update available within the plugin management interface in WordPress. Is there a delay between release and when the update will appear in WordPress as being available?

Emma

#1616567

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Emma

The updates are released to clients in batches (so that if something slips through the net breaks client sites we can catch it early).

You can skip the process by clicking the Registered link and then the "Check for Updates" button on the following page.

#1619735

My issue is resolved now. Thank you!