Global CSS Selector | WordPress.org

[ad_1]

Hi,

thanks for your post, and sorry for the trouble.

There’s no need to change the Shortcodes here. These are only used for embedding the tables, but they don’t influence styling.

Instead, to be able to use the global CSS selector .tablepress on this page, but without affecting tables on other pages of the site, you’ll need to find the ID of the page. You can see that in the browser’s URL bar when editing the page, it’s the number after the post variable in the URL, e.g. for /wp-admin/post.php?post=8334&action=edit the ID is 8334.

Then, you can use this “Custom CSS” code:

.page-id-8334 .tablepress ... {
   ...
}

with whatever more specific CSS selectors and CSS commands you want to apply to the tables on this page.

Regards,
Tobias

It works! Thank you Tobias for the great help.

Regards,
Roman

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer