Home › Forums › SKT Full Width Forum › Table Shortcode modification
- This topic has 10 replies, 2 voices, and was last updated 7 years, 9 months ago by Sonl Sinha.
-
AuthorPosts
-
February 10, 2017 at 6:16 pm #61686
Is it possible to modify the background color of a table cell if you have used the insert shortcode table to create the table?
Thanks.
February 13, 2017 at 5:57 am #61799Hi Judy,
Kindly show us your website URL so that we can assist further.
Regards,
BradFebruary 13, 2017 at 4:50 pm #61903The url is http://www.wildlandfire2016.ca/
The page I am working is not published and I ended up finding a plugin so that Table will show up in the edit mode.
I still would like to find out if you can modify the table cells when creating a table by adding shortcode, table.
Regards,
JudyFebruary 14, 2017 at 7:24 am #61964Hi Judy,
You can modify the table using CSS. Publish the page where you are working with the table then we will send you CSS instruction for the same.
Regards,
BradFebruary 14, 2017 at 4:26 pm #62049This is a test page that I have created using the insert shortcode for a table. It will have 5 columns and I want to be able to change the color of each cell in the first row.
http://www.wildlandfire2016.ca/test-table/?preview_id=904&preview_nonce=c521cc8121&_thumbnail_id=-1&preview=true
February 15, 2017 at 4:57 am #62082Hi Judy,
It shows “Sorry, you are not allowed to preview drafts.”
Did you saved this page in draft?
Regards,
BradFebruary 15, 2017 at 4:59 am #62085As far as I know I published it.
February 15, 2017 at 5:04 am #62086It shows as being published. Try this link. http://www.wildlandfire2016.ca/test-table/?preview=true or this one http://www.wildlandfire2016.ca/test-table/
February 15, 2017 at 5:59 am #62101Hi Judy,
Add the class in table shortcode so it should be:
[su_table class="custom-table"]
Then go to Appearance>>Theme Option>>Basic Setting>>Custom CSS Box
Add this code there:
.custom-table.su-table .su-even td:nth-child(1){background-color: #BA49E4 !important;} .custom-table.su-table .su-even td:nth-child(2){background-color: #489A21 !important;} .custom-table.su-table .su-even td:nth-child(3){background-color: #E10005 !important;} .custom-table.su-table .su-even td:nth-child(4){background-color: #0BAC88 !important;} .custom-table.su-table .su-even td:nth-child(5){background-color: #4E28FF !important;}
Regards,
BradFebruary 15, 2017 at 3:34 pm #62156Thank you Brad.
Regards,
JudyFebruary 16, 2017 at 5:06 am #62190🙂
-
AuthorPosts
- The topic ‘Table Shortcode modification’ is closed to new replies.