WPPizza – A Restaurant Plugin for WordPress › Support › General Support › meal size location
- AuthorPosts
- 18 July, 2018 at 3:52 pm #38490
Where can I move the meal size to be above the price instead of below?
20 July, 2018 at 12:18 am #38509Hi
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 aroundi.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
- AuthorPosts
- The topic ‘meal size location’ is closed to new replies.