Skip Navigation

[Gelöst] Using Bootstrap with Astra

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

Toolset has an option for loading Bootstrap 4. Where does the source CSS file live? If I customize it, is there any risk it gets overwritten when a new release of Toolset comes out?

Solution:

No, it is not recommended to hack Toolset plugin files, any change will be overridden when you upgrade Toolset plugins.

So you can disable Toolset options for loading Bootstrap 4, then load your own Bootstrap 4 files manually

Relevant Documentation:

This support ticket is created vor 3 Jahren, 11 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von aaronM-9 vor 3 Jahren, 11 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#1874861
Astra-vs-Bootstrap.jpg

Can you tell me if there is an easy way for Bootstrap 4 to use background colors, button colors, etc., from Astra? Right now, Bootstrap colors seem to override Astra settings. For example, in the attached screenshot you can see the list group under "Upcoming Events" shows a white background even though Astra has set content to have a slight transparency. Similarly, when I apply the btn-primary class to links in the button role, it uses the Bootstrap blue instead of the green set in the Astra settings.

I'd prefer to avoid a bunch of custom code and am hoping there is an "easy" way to resolve the conflict. Thanks in advance.

- Aaron

#1875187

Hello,

I assume we are talking about bootstrap version 4 from:
versteckter Link

If it is, please follow bootstrap document to setup your CSS/HTML codes:
versteckter Link

#1876239

Sorry, this isn't a particularly helpful answer. Toolset has an option for loading Bootstrap 4. Where does the source CSS file live? If I customize it, is there any risk it gets overwritten when a new release of Toolset comes out?

#1876499

No, it is not recommended to hack Toolset plugin files, any change will be overridden when you upgrade Toolset plugins.

So you can disable Toolset options for loading Bootstrap 4, then load your own Bootstrap 4 files manually, for example:
versteckter Link

#1880939

Sorry for not responding. We had a major snowstorm and have been snowed in for a couple days. Just replying to keep this topic open. Thanks again for your help and I'll pick this back up in the next couple days!

#1882117

I have marked this thread as waiting for feedback status, you can update here if you need more assistance for it.

#1888925

Understood - thanks.