Support » Plugin: Quick Restaurant Menu » Deleting the word ‘Price’ in every menu-item

  • Hi Ale,
    I’m trying to delete the word ‘Price’ in every restaurant-menu-item, so that the value is getting one row higher beside the title of this item.
    I can set

    .erm_product_price .name {
      visibility: hidden;
    }

    but then the value remains one row deeper.

    I found in the template ‘menu-item-product-price.php’ the following code:

    <div class="erm_product_price">
        <?php
        $prices = get_post_meta( $item_id, '_erm_prices', true );
        if ( !empty($prices) ) { ?>
            <ul>
                <?php foreach( $prices as $price ) { ?>
                    <li>
                        <span class="name"><?php echo $price['name']; ?></span>
                        <span class="price"><?php echo apply_filters('erm_filter_price', $price['value']); ?></span>
                    </li>
                <?php } ?>
            </ul>
        <?php }
        ?>
    </div>

    But changing or deleting the row
    <span class="name"><?php echo $price['name']; ?></span>
    doesn’t have any effect.

    What can I do?

    Thanks for any help,
    André

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alejandro

    (@alejandropascual)

    Use this:

    .erm_product_price .name {
      display: none !important;
    }

    Hi, I’m trying to delete the word ‘Price’. Use:
    “.erm_product_price .name {
    visibility: hidden;
    }”

    or

    “.erm_product_price .name {
    display: none !important;
    }”

    in custom css has no result.
    Can you help some how?

    I’m not sure to understand what you need. There is no word ‘price’ at the front-end, you can use your title and own price number for listing the price of the menu item.
    If you want to remove the name you can just leave it empty or use the CSS I sent your here.
    If you want to remove the price number then use:

    .erm_product_price .price {
      display: none !important;
    }

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deleting the word ‘Price’ in every menu-item’ is closed to new replies.