Mobile Customization

Support Area Forums Elite Mobile Customization

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://http://
  • Author
    Posts
  • #32648
    Rama Devi
    Participant

    Please look at the second snapshot below (mobile version). The font Size of the Pricing is tooo Big. How should I reduce this?

    Attachments:
    #32656
    Bill Robbins
    Moderator

    This block of CSS in your Custom CSS adjusts your product catalog for screen sizes 767 pixels wide and smaller:

    
    @media only screen and (max-width: 767px) {
    
    	ul.products li.product {
    		position: relative;
    		text-align: center;
    		padding-top: 50px !important;
    	}
    	
    	ul.products li.product h3 {
    		font-size: 25px !important;
    		position: absolute;
    		top: 0;
    		width: 100%;
    		padding-left: 0;
    		padding-left: 0;
    		padding-bottom: 5px;
    		padding-top: 60px;
    	}
    
    }
    

    You can add another style to it so you can adjust the size of the price like this:

    
    @media only screen and (max-width: 767px) {
    
    	ul.products li.product {
    		position: relative;
    		text-align: center;
    		padding-top: 50px !important;
    	}
    	
    	ul.products li.product h3 {
    		font-size: 25px !important;
    		position: absolute;
    		top: 0;
    		width: 100%;
    		padding-left: 0;
    		padding-left: 0;
    		padding-bottom: 5px;
    		padding-top: 60px;
    	}
    	
    	.woocommerce ul.products li.product span.price {
    	    font-size: 15px !important;
    	}
    
    }
    

    Here the font-size: 15px !important; will set the price on smaller screens.


    You might also consider using only one column on smaller screens too. If you want to go that route, add this to your Custom CSS too:

    
    @media only screen and (max-width: 520px) {
    	
    	.woocommerce ul.products li.product {
    		width: 100% !important;
    	}
    	
    }
    

    Take care,
    Bill

    #32703
    Rama Devi
    Participant

    Awesome Bill, this works. Thanks a LOT 🙂

    #32705
    Bill Robbins
    Moderator

    Glad that did the trick. Enjoy your Saturday 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Mobile Customization’ is closed to new replies.