Table Shortcode modification

Home Forums SKT Full Width Forum Table Shortcode modification

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #61686
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    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.

    #61799
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    Hi Judy,

    Kindly show us your website URL so that we can assist further.

    Regards,
    Brad

    #61903
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    The 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,
    Judy

    #61964
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    Hi 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,
    Brad

    #62049
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    This 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

    #62082
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    Hi Judy,

    It shows “Sorry, you are not allowed to preview drafts.”

    Did you saved this page in draft?

    Regards,
    Brad

    #62085
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    As far as I know I published it.

    #62086
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    It shows as being published. Try this link. http://www.wildlandfire2016.ca/test-table/?preview=true or this one http://www.wildlandfire2016.ca/test-table/

    #62101
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    Hi 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,
    Brad

    #62156
    Judy HuckJudy Huck
    Participant
    • Topics: 6
    • Replies: 12
    • Total: 18
    Member since: October 8, 2014

    Thank you Brad.

    Regards,
    Judy

    #62190
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Table Shortcode modification’ is closed to new replies.