Meny order and size after upgrading

Support Area › Forums › Bottega › Meny order and size after upgrading

Viewing 14 posts - 1 through 14 (of 14 total)
URL to the page in question: http://burgerman.jupiter.aleo.no/var-meny/
  • Author
    Posts
  • #18359
    Cecilie Lorentzen
    Participant

    Hallo,
    After upgrading to new verson of bottega themes something in my child theme with 4 prises were disturbed.

    The order for meny items were backwards. And the space for all 4 prices is now to narrow. I reduced the font size, but its the place that is the issue here. (I think)

    Can you help me with a small css fix for spacing for prices, but also for space between prices?

    Thank you!

    Kind regards, burgerman

    #18362
    Bill Robbins
    Participant

    Sorry for the trouble there. You can adjust the spacing between the prices. Here’s how:

    1. Go to the Theme Options page and select the Advanced tab.
    2. Scroll down to the Custom CSS box and paste this:
      
      span.price {
      	margin-left: 10px;
      }
      
    3. Update your settings.

    See if that gives you the right amount of space. You can adjust the 10px to a larger or smaller number if you need to.

    Let me know if you need any help,
    Bill

    #18399
    Cecilie Lorentzen
    Participant

    Hallo again.

    That didn’t work so good.
    Still its not room for the 4th price.

    Also the order of the items are backwords. I did try to set the order, but it didnt work. What can I do with this.

    Ps.
    I’ve changed the url for the meny page :http://burgerman.jupiter.aleo.no/meny/

    Looking forward for your reply and good ideas 😉

    Kathrine

    #18400
    Bill Robbins
    Participant

    It looks like in Chrome, the last price is wrapping down. Let’s also add this to your Custom CSS box:

    
    .menu-price span {
    	white-space: nowrap;
    }
    

    See if that won’t keep it from wrapping.


    The best way to set the order of your food items is to use the Simple Page Order plugin. It will let you drag and drop the items to set their order. If you need to change the order of your menu groups, then I would try the Category Order and Taxonomy Terms Order plugin which let you drag and drop those to change the menu group order (if you need to).

    If you run into any trouble, let me know.

    Have a great weekend,
    Bill

    #18462
    Cecilie Lorentzen
    Participant

    Prising apperance is working perfekt! Thank you.

    And the simple page order plugin was nice, and easy to use in controlpanel . But it still didn’t work for the menu page in the different browsers I’d tried..

    So..

    Any other ideas I shold try?

    Thanks 🙂

    #18474
    Bill Robbins
    Participant

    Good Morning,

    I’m glad the menu order worked well for you. I didn’t see the code snippet for earlier in your Custom CSS. Any chance you could leave it in there so I can take a look with it present. That’ll help me sort out why the last item is wrapping for you.

    Thanks,
    Bill

    #18512
    Cecilie Lorentzen
    Participant

    I’ve just edited in css file of the child theme, not in custom css.
    css is copyed in here.

    is it the page-meny-list.php that is desiding the order by for meny? Mabye i could change the “orderby”, and place this in the child theme?

    Anyway…here is the css for child theme:

    #page-full h4.divider {
    margin-bottom: 5px;
    }

    span.price {
    margin-left: 30px;
    }

    span.size-1,
    span.price-1 {
    width: 100px;
    display: inline-block;
    text-align: right;
    padding-right: 5 px;
    }

    span.size-2,
    span.price-2 {
    width: 140px;
    display: inline-block;
    text-align: right;
    }

    .menu-price span {
    white-space: nowrap;
    }

    .menu-list {
    clear: both;
    }

    #menu h1.post-title {
    float: left;
    }

    #home-middle .widget.organizedthemes_contact {
    width: 250px;
    }

    #home-middle #address-right {
    width: 1px;
    }

    .price {
    font-size: 16px;
    }

    #18515
    Bill Robbins
    Participant

    Good Morning and Thanks,

    I took a look just now in Chrome and they were no longer wrapping on the second line like they had been (see attached screenshot). Would you mind clearing out your browser’s cache, refreshing and checking again?

    If they are still wrapping for you, let me know which browser, version and operating system you’re using and I’ll try with that specific combination.

    Thanks,
    Bill

    #18612
    Cecilie Lorentzen
    Participant

    Hallo again,
    Thank you for your reply.
    I’ve on WIN 7. I’ve emptied all my caches, in Firefox, IE end Crome. Nothing is working. The menu is displaying descending order no matter what.

    Appreciate if I could have a solution on this matter.

    Thank you.

    Kind regards,
    Kathrine

    #18613
    Bill Robbins
    Participant

    I thought we were looking at text wrapping (go onto two lines). If they are appearing in the wrong order, just reverse the way they are entered on the backend of the site and that will set them differently on the front.

    #18622
    Cecilie Lorentzen
    Participant

    Mabye I’ve not good trying to explain myself in english….

    The menu item that displays last on the meny page within it’s menu group, I would like to have in the top in the front end.

    Because it is natural to start with the most common food items, insted of the most uncommon ones. If you know what I meen.

    The order in back-end/administration is ok, because of the plug-in Simple Page Order. But this have no effekt in the front end.

    The menu groups -order are ok.

    This probelm occured after the lastest upgrade. Before the upgrade, the order of menu items were ok.

    I still use your child theme “bottega-four-prices”.

    #18623
    Bill Robbins
    Participant

    Perfect. I believe we are connecting now. Here’s what you’ll want to do:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose page-menu-list.php and find this spot:
      
      					 <?php
      					 $posts = get_posts(
      					 	array(
      						 'post_type'	=> 'organizedthemes_menu',
      						 'taxonomy'		=> $category->taxonomy,
      						 'term'			=> $category->slug,
      						 'nopaging'		=> true,
      					 	)
      					 );
      					 foreach($posts as $post): 
      					 
      					 setup_postdata($post);
      					 
      					 ?>
      	
      	 				<?php get_template_part( 'layouts/menu-item' ); ?>
      	 
      	 			<?php endforeach; ?>
      
    3. Replace that with this:
      
      					<?php
      					 	
      						 $posts = get_posts( $args = array(
      						 	 		'post_type'		=> 'organizedthemes_menu',
      						 	 		'taxonomy'		=> $category->taxonomy,
      						 	 		'term'			=> $category->slug,
      						 	 		'nopaging'		=> true,
      						 	 		'orderby'		=> 'menu_order',
      						 	 		'order'			=> 'ASC'
      						 	 	) );
      						 
      						 foreach( $posts as $post ) : setup_postdata( $post );
      					 
      					?>
      	
      	 				<?php get_template_part( 'layouts/menu-item' ); ?>
      	 
      	 			<?php endforeach; wp_reset_postdata(); ?>
      
    4. Save your changes.

    See if that won’t swap the order from being by date to being by by the order number.

    Have a great weekend,
    Bill

    #18668
    Cecilie Lorentzen
    Participant

    Everything is working perfect!

    Thank you for great support!!

    #18669
    Bill Robbins
    Participant

    That’s fantastic. Have a great week and let me know if you need anything else.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Meny order and size after upgrading’ is closed to new replies.