WordPress.org

Ready to get started?Download WordPress

Forums

Pricing Table
Gray template breaks (3 posts)

  1. taewoo
    Member
    Posted 1 year ago #

    it breaks in WP 3.4.1... because the inline css are getting newlined by wordpress.

    Here's a fix/hack

    1. open tpls/price_table-gray.php

    2. put CSS into PHP variable.. then echo by removing newline with preg_replace, like so:

    `
    <?php
    $data = get_post_meta($pid, 'pricing_table_opt',true);
    $featured= get_post_meta($pid, 'pricing_table_opt_feature',true);

    $css = <<<CSS

    #pricing-table {
    margin: 100px auto 50px auto;
    text-align: center;
    width: 892px; /* total computed width = 222 x 3 + 226 */
    }
    ...
    ....
    .....

    CSS;

    ?>

    <?php echo "<style>". preg_replace("/\n/", "", $css)."</style>"; ?>

    Voila

    http://wordpress.org/extend/plugins/pricing-table/

  2. miachung
    Member
    Posted 1 year ago #

    This is a little too advanced for me, can you please help? The grey template seems to be broken in WP 3.5 as well.

    Thanks!

  3. feliciepr7
    Member
    Posted 1 year ago #

    The tables dont show up for me and then I am not able to edit it. I think is not compatible yet with 3.5.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic