Archived topic
GPP + Post Snippets Conflict in GP Sections
5 replies · Started by Paul on March 6, 2018
Just noticed a weird thing when trying to use the Post Snippets plugin while editing a section in the GP Section editor. When clicking the Post Snippets icon in the text or visual editor to insert a shortcode or code snippet, the Post Snippet pop-up window doesn't appear, but when I click 'cancel' to close the GP Section editor, alas, there's the Post Snippets popup window behind it. This problem doesn't occur when editing pages without sections or posts. Any suggestion for a fix or is this something the Post Snippets team needs to address?
Hi Paul,
It could be as simple as a z-index issue, as the Section editor is a modal in itself.
I can check if you'd like to send me temporary admin login details?
Let me know :)
Cool. Sent to your Support@ email address. Thanks!
Try adding this function:
add_action( 'admin_head', 'tu_post_snippets_zindex' );
function tu_post_snippets_zindex() {
?>
<style>
.ui-dialog {
z-index: 100102 !important;
}
</style>
<?php
}
HOT DAMN Tom! You da man!!!
haha glad I could help! :)