• Resolved briciocadena

    (@briciocadena)


    Hello! please your help.

    I’m trying to stylish my table. please see https://shkagro.com.mx/contactanos/

    I want to replicate the style for the table below tablepress.

    When I create custom css for border, border is applied to all td cells, I only want to apply table border as table below.

    Other question.

    Al header and footer sections like “Showing X to Y of Z entries”, search and Pagination are missing, how I can show it?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you clarify what you mean with the borders? The bottom table (not from TablePress) also has a border around every td. What border do you want and which one not?

    As for the pagination: These features are only available in tables that have a header row. So, you would need to add a new first row and can then enable all these features. If you don’t actually want that header row, you can hide it with CSS code, like

    .tablepress-id-2 thead {
      display: none;
    }

    Regards,
    Tobias

    Thread Starter briciocadena

    (@briciocadena)

    Thank you Tobias.

    I mean border radius.

    Thread Starter briciocadena

    (@briciocadena)

    Additional I already added this to get white background in all rows:

    .tablepress-id-2 .odd td {
    	background-color: #fff;
    	color: #7A7A7A;
    }
    
    .tablepress-id-2 .even td {
    	background-color: #fff;
    	color: #7A7A7A;
    }
    

    But it doesn’t work.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, I see. Thanks for the explanation 🙂

    For that, you will have to set the border radius only on the corner cells, like in this thread: https://wordpress.org/support/topic/round-corner-2/

    As for the alternating background colors: This is caused by your theme, which is actually setting these colors, and not TablePress. To override that, please try this CSS code:

    .tablepress-id-2 tbody td {
      background-color: #ffffff !important;
    }

    Regards,
    Tobias

    Thread Starter briciocadena

    (@briciocadena)

    Thank you! one more question offtopic.

    Is there a way to translate previous/next text from table?

    Thank you!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem!

    To change these strings to something else, you can use the TablePress Extension from https://tablepress.org/extensions/change-datatables-strings/

    Regards,
    Tobias

    Thread Starter briciocadena

    (@briciocadena)

    Hello!

    Extension is already installed and in the folder is only es_ES file but it still showing english text.

    Also wordpress language is set as es_ES.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    can you then please add this parameter to the Shortcode:

    [table id=123 datatables_locale=es_ES /]
    

    ?

    Regards,
    Tobias

    Thread Starter briciocadena

    (@briciocadena)

    Is already added, but no, nothing change

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    are you sure that the Extension is activated?

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter briciocadena

    (@briciocadena)

    Yes, extension is activated.

    Link to table is https://shkagro.com.mx/contactanos/

    Thread Starter briciocadena

    (@briciocadena)

    it-s working now, thank you!

    You can mark it as resolved.

    Many thanks!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias
     
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Table border and pagination’ is closed to new replies.