Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #292715

    Sorry if this has previously been asked but I searched and did not find a result. Is there a way to make specific pages on the responsive theme not be responsive? So, if I wanted or needed one specific page to not be responsive, what is the best way to do that within this theme? I know there is an overall setting for it, but I don’t see a simple way to complete that per page.

    Thanks for your help in advance!

    Nate

    #292731

    Hi Nate,

    I haven’t tested this but try adding this code at end of your theme / child theme functions.php file:

    function add_custom_script(){
    if(is_page(array(2,4,5)){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery("html").removeClass("responsive responsive_large");	       
    });
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'add_custom_script');

    Change “2,4,5” by the IDs of the Pages where you want to disable the responsiveness.

    Regards,
    Josue

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