Luqman from 10beasts Here,
The Pros and Cons is not built using Tablepress plugin.
I did that using Shortcode Ultimate plugin, which can be found here: https://wordpress.org/plugins/shortcodes-ultimate/
After installing shortcode ultimate, add this in your theme css editor:
.su-box { border-width: 0px !important; }
.su-column-size-1-2 { width: 50% !important; }
.su-row .su-column { margin: 0px 0 0 0% !important; }
After adding CSS Code:
Please go to your post editor and add this shortcode there.
[su_row]
[su_column size=”1/2″][su_box title=”Pros” box_color=”#00bf08″ radius=”0″][su_list icon=”icon: check” icon_color=”#00bf08″]
PLEASE ADD THE PROS LIST HERE
[/su_list][/su_box]
[/su_column]
[su_column size=”1/2″][su_box title=”Cons” box_color=”#bf000a” radius=”0″][su_list icon=”icon: ban” icon_color=”#bf000a”]
PLEASE ADD THE CONS LIST HERE
[/su_list][/su_box]
[/su_column]
[/su_row]
** After adding this shortcode add both of your lists inside in the form of “Bulleted List”. You will be done.
Let me know if you required further help.
Cheers
Hi,
thanks for your post, and sorry for the trouble.
First, thanks for sharing your solution, Luqman!
To achieve this with TablePress, it should only need a CSS command for the width:
.tablepress-id-8 .column-1,
.tablepress-id-8 .column-2 {
width: 50%;
}
Can you please try that?
Regards,
Tobias
Hi Tobias,
Thanks for your answer, it worked!
Is it possible that when someone is watching at a mobile phone, that the columns 1 and 2 go under each other?
Regards,
Gerrald
Hi,
good to hear that this worked!
Unfortunately, changing the view mode like that is not really possible with an HTML table, due to it’s fixed structure of columns and rows.
You could try the flip mode of the TablePress Extension from https://tablepress.org/extensions/responsive-tables/ which uses a CSS hack for this. A better solution would be to use other HTML elements, like <div> containers together with CSS code.
Regards,
Tobias
Hi Luqman Khan,
I have Shortcode Ultimate now, I put this in the CSS:
.su-box { border-width: 0px !important; }
.su-column-size-1-2 { width: 50% !important; }
.su-row .su-column { margin: 0px 0 0 0% !important; }
and this:
[su_row]
[su_column size=”1/2″][su_box title=”Pros” box_color=”#00bf08″ radius=”0″][su_list icon=”icon: check” icon_color=”#00bf08″]
PLEASE ADD THE PROS LIST HERE
[/su_list][/su_box]
[/su_column]
[su_column size=”1/2″][su_box title=”Cons” box_color=”#bf000a” radius=”0″][su_list icon=”icon: ban” icon_color=”#bf000a”]
PLEASE ADD THE CONS LIST HERE
[/su_list][/su_box]
[/su_column]
[/su_row]
I test at this page:
http://www.zaagspecialist.nl/lorem-ipsum/
But the only thing I get is two seperated lists, no colors or anything.
Do you know what it can be?
Thanks!
Hi,
it seems that you are using the wrong quotation marks. In your code, they are ” (slightly curled), but they should be straight " everywhere.
Please try modifying this in the “Text” and not the “Visual” editor when editing that page.
Regards,
Tobias
Hi,
First thanks for the very quick answer!
You were right, I did use the wrong ones, it is working now.
Thanks again!
Hi,
great! Thanks for the confirmation!
Best wishes,
Tobias