• Resolved andrewkow

    (@andrewkow)


    Hi support,

    I added some CSS styling to TablePress but it does not working fine I think the theme’s CSS affecting the result. I tried to add the CSS to the theme but it does not working at all.

    I’m using “MyListing Theme”.
    WordPress 5.8.3

    Thanks
    Andrew

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    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 andrewkow

    (@andrewkow)

    Hi Tobias,

    I just realised the CSS is working for “page” but the blog post that I built with Elementor.

    Here is the blog post:
    https://placefu.com/blog/genting-highlands-2-day-1-night-itinerary/
    *Please scroll down to the bottom to see the table

    Here is the page:
    https://placefu.com/temp/

    Thank you

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the links!

    Can you please explain what pieces of CSS code are not working as desired? For me, the tables look the same?

    One minor optimization: As you have turned off the individual features (like sorting, search, pagination, etc.) for this table, it’s best to also turn off the “Use DataTables” checkbox on the table’s “Edit” screen, for a small performance gain.

    Regards,
    Tobias

    Thread Starter andrewkow

    (@andrewkow)

    The style is not there, like margin and bold.

    Here is the screenshot for both table on Blog post and Page:
    https://filebin.net/j0j0xpy7ji3628lt

    Noted on your optimization tips : )

    • This reply was modified 4 years, 4 months ago by andrewkow.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, indeed, I hadn’t really noticed that on my monitor.

    So the reason for this behavior is that your theme is loading more and different default CSS code on the “posts” page. In particular, there’s a CSS selector .c27-content-wrapper that has CSS code for tables as well.
    To overcome this, I would recommend to make your “Custom CSS” more “important”, by adding the !important keyword to those commands that don’t yet work, like

    font-weight: bold !important;
    

    Regards,
    Tobias

    Thread Starter andrewkow

    (@andrewkow)

    Hi,

    I tried added the keyword but once I save it gone. Pls refer to the screen record for reference.

    https://filebin.net/pcxthkh736bst6oe

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    there must not be a ; before the !, i.e. the !important flag has to be added between the existing value (bold) and the existing ;.

    Regards,
    Tobias

    Thread Starter andrewkow

    (@andrewkow)

    Oh ok got it working! I have 1 last question. How to adjust the margin on the Title?

    https://filebin.net/apu8owd7z357qy6j

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that it’s working now!

    As for the margin, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress thead th {
      padding-left: 12px !important;
    }

    Regards,
    Tobias

    Thread Starter andrewkow

    (@andrewkow)

    Hi Tobias,

    Thanks for the code! All issues have been resolved in this thread.

    Appreciated your help!

    Cheers

    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 11 replies - 1 through 11 (of 11 total)

The topic ‘Theme’s CSS affect TablePress “Custom CSS”.’ is closed to new replies.