Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #793137

    Hi!

    I am trying to make all single product pages NOT responsive, is it possible ?
    Can I achieve it with CSS ?

    Thank you for your answer,

    M.

    #793175

    Hey Vrout,

    You can force the body to have a minimum width, for starters. Please try this in CSS:

    .single-product { min-width: 1024px !important; }

    If you need additional help, please give us the URL of the website in question.

    Best regards,
    Sarah

    #793485
    #793703

    Hi,

    Thanks for the instructions, I’m not sure if I understand the problem though, could you post a screenshot of it please? You can upload to a service like google drive or dropbox and then link to it here.

    Best regards,
    Rikard

    #793771
    #793914

    Hi Vrout,

    That’s the point in responsive! To adjust the layout in such way that it looks good on other screen sizes and can be used as it should, easily, without any extra scrolling. Let us know what you think?

    Best regards,
    Victoria

    #794014

    Hi Victoria,

    Thank your for your answer.

    I’m sorry, I don’t really understand your message since, as you can see on the screenshot, the responsive mode takes up more space than no-responsive mode. But space is not really the problem here.

    To make it more clear, I am trying to make the “Step 3” (Etape 3) not responsive so that it displays well on all my single product pages, would it be possible with some CSS ?
    Or is there another solution I could try?

    Thanks a lot for your kind help,
    M.

    #794393

    Hi,

    I would not deactivate responsiveness and instead try to find some custom code which works well on smaller screen sizes. If you want our help with this, then we need your website in responsive mode, so we can find a workaround for you.

    Best regards,
    Andy

    #794779

    Hi Andy,

    Thanks, the website is now in responsive mode.

    If you can help me on this it would be much appreciated…

    Thank you again,

    M.

    #796365

    Hi,

    Please try this script in the functions.php file:

    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
    	function a() {
    		var isMobile = '';
    		if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement)
    		{
    			isMobile =  true;
    		}
    		else
    		{
    			isMobile =  false;
    		}
    
    		if(!isMobile || window.innerWidth > 1024) return;
    		
    		var product = $('body').hasClass('single-product');
    
    		if(product) {
    			 $('html').removeClass('responsive').addClass('fixed_layout');
    		}
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');

    Best regards,
    Ismael

    #797939

    Hi Ismael,

    Thanks a lot for this script !

    It does display better on mobile now thank you, I only have two little problems now :

    – This scripts seems to apply to computers (with large screen size), is it possible to only apply this script to mobile/tablets ?
    – How can I set the size of the “fixed layout” (mentioned in the script) please? I want to make it bigger if possible.

    (Sorry I took some time to answer because I updated the theme to last version to see if it could help with my problem.)

    Thanks again,

    #798071

    Hey!

    Thank you for the update.

    1.) We updated the code above. Please try it again.

    2.) Which container would you like to increase? Please provide a screenshot.

    Regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.