Skip to content

Instantly share code, notes, and snippets.

@abdulawal39
Created February 16, 2023 06:47
Show Gist options
  • Select an option

  • Save abdulawal39/2db263ff3a2a4108121b781040c6a004 to your computer and use it in GitHub Desktop.

Select an option

Save abdulawal39/2db263ff3a2a4108121b781040c6a004 to your computer and use it in GitHub Desktop.
Add custom css to not allowed area of PDF Viewer for WordPress
add_action('tnc_pvfw_not_allowed_head', 'themencode_add_custom_css_for_not_allowed');
function themencode_add_custom_css_for_not_allowed(){
echo '<style type="text/css">.pvfw-not-allowed { background-color: white !important; padding: 30px !important;}</style>';
}
@abdulawal39
Copy link
Copy Markdown
Author

Add this code to your theme's functions.php file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment