• Resolved Pietro

    (@pietro_sferrino)


    Hi Tobias.
    You made a GREAT Job … Thank You …
    I sent a small amount of money, even. Not a lot, unfortunately, but … I think You deserved.

    by the way, please: can You help me with this?

    I want to put a small icon into a cell …
    But how to allying it to the center?

    I wrote this code,

    <p style="text-align: center;">[icon size="small" icon="unstar" style="light" link="" target="" title="Yes. Service included!"]</p>

    But it does not really work …
    If You want, here is a link.

    Thank You.
    Pietro

    https://www.ads-software.com/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    To center those icons, I suggest this:
    1. First, remove the <p> HTML tags around the Shortcode, so that you only have the [icon] Shortcode in the cell.
    2. Then, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress .icon16 {
      margin: 0 auto;
    }

    Regards,
    Tobias

    Thread Starter Pietro

    (@pietro_sferrino)

    Hi Tobias …
    Sorry …
    I forgot to reply You …
    THANK YOU! ??
    That code CSS worked well but …
    Please could You check it again?
    Because …
    I changed the img, and now I have to change your code as well …
    https://exprimere.pietrosferrino.net/servizi/exprimere-premium/
    But I do not really know how!

    THANK YOU
    PIETRO

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Pietro,

    for star images, the best approach should be to center the text in the cells:

    .tablepress-id-3 .column-2,
    .tablepress-id-3 .column-3,
    .tablepress-id-3 .column-4 {
      text-align: center;
    }

    (Also, I noticed that you have either set the WP_DEBUG or the SCRIPT_DEBUG constant to true somewhere, likely in your wp-config.php. This is not recommended for production sites.)

    Regards,
    Tobias

    Thread Starter Pietro

    (@pietro_sferrino)

    NICE !!
    Fantastic !!
    It Works … ^_^

    Mmm … WP_DEBUG and SCRIPT_DEBUG ???
    Mmm … Ok, maybe I should torn them off … simply, I am building the site so … but I don’t know … You are right for sure …

    THANK YOU ^_^

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    During the times when you are working on the site, you can leave those constants on, but once the site reaches production state, you should turn them off, to benefit from many optimizations.

    Best wishes,
    Tobias

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

    Thread Starter Pietro

    (@pietro_sferrino)

    Ohh, sure … ok … I will turn them off when I will be ready ^_^

    Didn’t I ??? :/ … Mmmm … I don’t remember! I will check, of course and I will rate it soon ^_^

    Have a nice evening!
    Pietro ^_^

    Thread Starter Pietro

    (@pietro_sferrino)

    DONE …
    I can only give 5 stars …
    There are no more there! ^_^ ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it! ??

    Best wishes,
    Tobias

    Thread Starter Pietro

    (@pietro_sferrino)

    ^_^

    Plugin Author Tobias B?thge

    (@tobiasbg)

    That should have been a star icon image ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Icon into a cell’ is closed to new replies.