Skip to content

Instantly share code, notes, and snippets.

@amElnagdy
Created May 1, 2016 19:46
Show Gist options
  • Save amElnagdy/b05d46911bf9c83842b14863f852323e to your computer and use it in GitHub Desktop.
Save amElnagdy/b05d46911bf9c83842b14863f852323e to your computer and use it in GitHub Desktop.
(function($) {
$(document).ready(function() {
function toggle_dps() {
setTimeout(function(){
$('.et_pb_page_layout_settings' ).closest( '#et_settings_meta_box' ).find('.et_pb_page_layout_settings').show();
},150);
}
if ($('body').hasClass('post-type-slug')) {
toggle_dps();
$('#et_pb_toggle_builder').click(function(){
toggle_dps();
});
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment