Jump to content

Menu Block have prices all on one side

Recommended Posts

The formatting help for the menu block reads in part.

Price Variants. You can also define multiple prices for variants on your items in the following format:

Wine Bottle Example
Description of the wine
$9 glass / $40 bottle

So in your case you'd need something like the following for the price line.

CHF 65 / 30Min — CHF 120 / 60Min

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
22 hours ago, creedon said:

The formatting help for the menu block reads in part.

Price Variants. You can also define multiple prices for variants on your items in the following format:

Wine Bottle Example
Description of the wine
$9 glass / $40 bottle

So in your case you'd need something like the following for the price line.

CHF 65 / 30Min — CHF 120 60Min

Let us know how it goes.

Thank you @creedon for your fast reply. 
that was worked but I would like it below each other and on the left hand side. is that possible too?
CHF 65 / 30Min
CHF 120 / 60Min

Screenshot 2021-07-14 at 17.54.02.png

Edited by Lucia_
Link to comment
On 7/14/2021 at 5:55 PM, Lucia_ said:

Thank you @creedon for your fast reply. 
that was worked but I would like it below each other and on the left hand side. is that possible too?
CHF 65 / 30Min
CHF 120 / 60Min

Screenshot 2021-07-14 at 17.54.02.png

The same with this page: 

The prices should all be on the right and text on the left - thank you for your help 😃

Screenshot 2021-07-15 at 17.59.51.png

Link to comment

The menu block is fairly limited as to what can be done with the layout. SS designed it to be extremely simple.

If you need more complex formatting then you'd probably need to use a code block and enter custom HTML. Or you might be able to achieve your layout with text blocks.

Custom HTML could look something like the following.

<style>

  #menu td {
  
    padding-bottom : 1em;
    vertical-align : top;
    
    }
    
  #menu td:nth-child( 1 ) span {
  
    font-weight : bold;
    
    }
    
  #menu td:nth-child( 2 ) {
  
    padding-left : 2em;
    
    }
    
  </style>
   
<table id="menu">

  <tbody>
  
    <tr>
    
      <td>
      
        <span>
        
          3 Monate Abo
          
          </span>
          
        <br>
        
        (inkl. Analyse, Trainingsplanung und Kontrolle)
        
        </td>
        
      <td>
      
        CHF 315
        
        </td>
        
      </tr>
      
    <tr>
    
      <td>
      
        <span>
        
          Anschluss - Abo
          
          </span>
          
        </td>
        
      <td>
      
        CHF 285
        
        </td>
        
      </tr>
      
    <tr>
    
      <td>
      
        <span>
        
          Senioren, Lehrlinge, IV-Bezüger und Partner Abo
          
          </span>
          
        </td>
        
      <td>
      
        CHF 300
        
        </td>
        
      </tr>
      
    <tr>
    
      <td>
      
        <span>
        
          Personal Training und Beratung
          
          </span>
          
        <br>
        
        Im Zusammenhang mit Trainings-und Gesundheitsfragen
        
        </td>
        
      <td>
      
        CHF 65 / 30Min
        
        <br>
        
        CHF 120 / 60Min
        
        </td>
        
      </tr>
      
    </tbody>
    
  </table>

And would render something like the following.

1737695973_ScreenShot2021-07-15at3_05_51PM.png.03311e14c6e2e7eaf1b229adaa464635.png

Here is an example of constructing a menu with text blocks. Notice the line blocks used to keep the text blocks from automagically combining together (something SS does). Those could be hidden with some CSS. I've highlighted the text blocks with outlines so you can see the layout. Also this responds well to display on mobile. The prices slide to the left under the titles on narrow screens. If you want the lines closer together within text blocks use shift-return instead of return.

1883559506_ScreenShot2021-07-15at3_43_52PM.thumb.png.e84c2a485e65916bacf1e71b7e91756a.png

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.