WordPress.org

Forums

TablePress
[resolved] Icon into a cell (11 posts)

  1. Pietro
    Member
    Posted 1 year ago #

    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://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Pietro
    Member
    Posted 1 year ago #

    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 …
    http://exprimere.pietrosferrino.net/servizi/exprimere-premium/
    But I do not really know how!

    THANK YOU
    PIETRO

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

  5. Pietro
    Member
    Posted 1 year ago #

    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 ^_^

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  7. Pietro
    Member
    Posted 1 year ago #

    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 ^_^

  8. Pietro
    Member
    Posted 1 year ago #

    DONE ...
    I can only give 5 stars ...
    There are no more there! ^_^ :D

  9. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks, I really appreciate it! :-)

    Best wishes,
    Tobias

  10. Pietro
    Member
    Posted 1 year ago #

    ^_^

  11. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    That should have been a star icon image ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic