Skip Navigation

[Resolved] Split: Using bootsrap style for the toolset forms on frontend

This thread is resolved. Here is a description of the problem and solution.

Problem:

Use CSS codes to style the HTML table border in Astra theme.

Solution:

It needs custom CSS codes, see the solution here:
https://toolset.com/de/forums/topic/split-using-bootsrap-style-for-the-toolset-forms-on-frontend/#post-1076114

Relevant Documentation:

This support ticket is created 6 years, 3 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
- 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)

This topic contains 4 replies, has 2 voices.

Last updated by SteffenM1628 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1076012

hey there just having another problem using bootsrap.

bootstrap is working. you can see it in the pics. but not quite right.
Bootstrap is working because of the red, green and yellow collumns (class= "danger"...).
In the loop editor i use the normal table class.
But in the front end the table does not look like an bootstrap table because of the boarders around the table.

To clarify things. I use the Astra theme. Is there a conflict in the css files?

Example View code
(loop editor)

<table class="table">
  <thead>
    <tr>
      <th scope="col">test 1</th>
      <th scope="col">test 2</th>
      <th scope="col">test 3</th>
    </tr>
  </thead>
[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop wrap="1" pad="true">
		[wpv-item index=1]
		<div class="row ">
			<div class="col-sm-12">[wpv-post-body view_template="Loop item in view 3"]</div>
		</div>
		[wpv-item index=other]
			<div class="col-sm-12">[wpv-post-body view_template="Loop item in view 3"]</div>
		[wpv-item index=pad]
			<div class="col-sm-12"></div>
		[wpv-item index=pad-last]
			<div class="col-sm-12"></div>
		</div>
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]
</table>

Example View code
(loop editor)
template

<tbody>
    <tr>
      <td class="danger">[wpv-post-title]</td>
      <td class="success">[wpv-post-author]</td>
      <td class="warning">[wpv-post-date]</td>
    </tr>
  </tbody>

#1076017

Hello,

It seems to be a CSS problem, please elaborate the question with more details:
1) Please provide a live URL with the same problem, I need to test it in my Chrome browser
2) What kind of table border do you need?

#1076098

hey there, great and thank you.

first of all i don´t need any borderstyle the table should just look like the regular bootstrap table (class="table") as seen in the pic of my last post or here the first example (hidden link the first example).

Can you make this post privat? So nobody but you can see the login informations?

The site is just a testing site:
***

check the page "Tabelle" in the menu there you find the table which is corresponding to the view "view 3".

#1076114

As your request, I have removed the credentials in your post, and have done below modification in your website
1) Create another view "view 4" with same filter as your view "view 3",
hidden link

2) in section "Loop Editor", click the button "Schleifen-Assistent", use option "Tabelle" and generate the result, see screenshot:
Tabelle.JPG

3) Edit the shortcodes, add two CSS class names to the HTML table tag:

<table width="100%" class="table my-table">

4) Click "CSS-Editor", add below CSS codes to hide the table border:

table.my-table, table.my-table th, table.my-table td{
	border:none !important;
}

5) Test it in front-end:
hidden link
There isn't any border style in the new table.

Please check if it is what you want.

#1080609

Hey there,

thanks for your help.
I also found out the problem. Astra theme is given the boarder to bootstrap tables. Found it in the css files of astra.
I solved it be putting this to the child theme css:

table,td,th{border:0px;
}

very similar to your solution!

Thanks a lot!!!!!!

I´ll close this topic.

cheers