meal size location

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38490
    vito
    Participant

      Where can I move the meal size to be above the price instead of below?

      #38509
      Olly
      Admin & Mod

        Hi

        although you could do this with the filters available
        (https://docs.wp-pizza.com/developers/?section=wppizza-markup-loop-posts-prices-php)
        for your own sanity , i would probably suggest you use/make a copy of the posts.prices.php template as outlined here
        https://docs.wp-pizza.com/developers/?section=modify-templates-readme
        under “EDITING FILES DIRECTLY – ONLY IF FILTERS/ACTIONS CANNOT BE USED”
        and simply moving the relevant elements around

        i.e move

        
        $markup['post_price_'.$key.'_span'] = '<span>' . $price['price'] . '</span>';
        

        AFTER

        
        if(empty($price['no_label'])){
        $markup['post_price_'.$key.'_label'] = '<div class="' . $price['class_size'] . '">' . $price['size'] . '</div>';
        }
        

        instead of where it is now (so just reverse the two locations of those parts of the script)

        not thoroughly tested , but should work i would think

        hope that helps

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘meal size location’ is closed to new replies.