• Resolved alfista

    (@alfista)


    Hi,

    I try to customise your table over custom css, what I created and putted in the table:

    .taboversmallhead {
    	font-size: 10px;
    	font-weight: bold;
        text-align: center !important;
    	margin: auto;
    	background-color: #eef5f9;
    }

    and muted this code to the table:

    <p class="taboversmallhead">MICRO CASES</p>

    but as you can see here: https://www.grand-tech.eu/2/overview/

    the background color doesn’t fulfil the table cell.
    Please can you help me how to modify the CSS that the background color fulfil the whole table cell.

    Thanks.

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The problem here is that there is a cell padding around this <p> element. Therefore, we’ll have to be a bit creative with the margin and padding in the element:

    .taboversmallhead {
    	font-size: 10px;
    	font-weight: bold;
    	text-align: center !important;
    	margin: -8px;
    	padding: 8px;
    	background-color: #eef5f9;
    }

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    note that you could achieve the same with the CSS approach from https://tablepress.org/faq/highlight-cells-or-content/ but would have to adjust the selectors in the “Custom CSS” more often.

    Regards,
    Tobias

    Thread Starter alfista

    (@alfista)

    Hi,

    thanks, now its OK :-).
    I know that your plugin offers more features and possibilities to add more table styles and change between them, but now I needed only to change (modify) only one table.
    But when I will have more time I will learn how to have more table styles and then choose from them as needed ??

    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!

    Thread Starter alfista

    (@alfista)

    And you are great with so fast response and help ??

    Thanks.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the kind words, I really appreciate it!

    Best wishes,
    Tobias

    Thread Starter alfista

    (@alfista)

    It’s a pleasure ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Thanks!

    Thread Starter alfista

    (@alfista)

    Hi,

    please when you are so good with WP and CSS, can you help me with something others?
    I try to change showing of TAG, while I will have instead of text placed there the pictograms and when I have create my own CSS style for it it will not work.

    .tag_styles li a{
        background-color: cornflowerblue;
        width: 50px;
        height: 50px;
        margin: 5px;
        text-indent: 100% !important;
        white-space: nowrap;
    }
    .tag1{background-image: url("https://www.grand-tech.eu/2/wp-content/uploads/2017/07/waterproof.gif");}
    .tag2{background-image: url("dust.gif");}
    .tag3{background-image: url("shockproof.gif");}
    .tag4{background-image: url("temp.gif");}
    .tag5{background-image: url("acid.gif");}
    .tag6{background-image: url("wheels.gif");}

    and I place it on the page over this code:

    <?php echo wc_get_product_tag_list( $product->get_id(), '', '<ul class="tag_styles"><li class="$product">', '</li></ul>' ); ?>

    but I have there still the same text. Only when I put the background-image code to the .tag_styles, then it will be visible but cropped and stretched. And also is there still see the original text.

    Please Can you help me with it and tell me how to resolve it?

    Thanks.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I love to help, but this is beyond what I can offer, sorry. The TablePress support questions already keep me busy.

    I’m really sorry, but I need to ask for you understanding. Maybe you can get help in the general or theme forums here on the site?

    Regards,
    Tobias

    Thread Starter alfista

    (@alfista)

    Hi,

    OK understand, but on general support I don’t have luck with help ??
    If is possible and you will have some time to help me, it will be great while I’m not very familiar with programming on this level and I’m also new in WP.
    maybe there are only some mistakes in CSS style and in the php function ??

    But I have last question to your plugin ??
    How is possible to import more tables at once? I need to import about 50 tables or more ??

    Thanks.

    • This reply was modified 7 years, 8 months ago by alfista.
    • This reply was modified 7 years, 8 months ago by alfista.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m really sorry, but I just can’t support other things as well.

    Regarding the import: You can just put all those tables (their CSV/Excel/HTML files) into a ZIP file and then import that.

    Regards,
    Tobias

    Thread Starter alfista

    (@alfista)

    Hi,

    thanks for all, you’re great.
    I understand it, but doesn’t receive other help, therefor I asked you, that I know you know this system and you are only the one which helped me.

    Thanks.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    as you are using a WooCommerce function (wc_get_product_tag_list()) you should ask their support team.

    Regards,
    Tobias

    Thread Starter alfista

    (@alfista)

    Hi,

    I tried to use this function, but it returns the complete list in text and it will not work with it, but I also asked in the woo commerce section but no relevant and working answer. Until now only one answer … and it is some days or weeks.

    Thanks.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Customise CSS…’ is closed to new replies.