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
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