Craig
Forum Replies Created
-
My solution since no response to people here. This snippet does what I need instead of the plugin.
<?php
/**
* Restrict Dashboard Access to Admins Only
* Add this to your theme's functions.php file or create a simple plugin
*/
function restrict_dashboard_to_admins() {
// Skip if doing AJAX requests
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return;
}
// Skip if user is an admin
if ( current_user_can( 'manage_options' ) ) {
return;
}
// Redirect non-admins to home page
wp_redirect( home_url() );
exit;
}
add_action( 'admin_init', 'restrict_dashboard_to_admins' );
/**
* Hide admin bar for non-admins on frontend
*/
function hide_admin_bar_for_non_admins() {
if ( ! current_user_can( 'manage_options' ) ) {
show_admin_bar( false );
}
}
add_action( 'init', 'hide_admin_bar_for_non_admins' );Forum: Plugins
In reply to: [Simple Restaurant Menu Display] Multiple menus?Спасибо
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Update just went south …Thanks Tessa. That worked!
Forum: Plugins
In reply to: [WP Accessibility] Image captions brokenGreat news, great plugin. Again, if I can help or test or whatever, reach out.
-Craig
Forum: Plugins
In reply to: [WP Accessibility] Image captions brokenWill gladly help in anyway I can. Thanks!
Forum: Plugins
In reply to: [WP Accessibility] Image captions brokenOnly happens when the plugin is enabled. I now have a bit more information … using the Classic Editor, it happens when in Visual mode, but all works in Text mode.
In other words: Plugin active, using classic editor in the visual tab, when I add a picture from the library, no caption shortcode wraps the image. I go to text tab, adding a picture leaves the caption shortcode. I then disable the plugin and it works in both tabs.
Michael:
I have no desire nor intention to market what I come up with. You are more than welcome to share it with others if you like. Something along these lines is what I am aiming for. Any suggestions will be greatly appreciated as I would rather concentrate on debug and tweaking than starting from scratch.
Thanks for any input.Michael:
At this point we don’t have the funding for design services and I have the abilities (I’m old, I have even done pdf encoding by hand many years ago, etc.). I just thought with the explosion of hyper-local news sites, Newspack, and the such that this would be a great match in that market. I am designing two Newspack sites and a hyper-local magazine. Each needs at least one, probably two pdf versions (different levels of accessibility). I have read all your documentation, thanks. I was looking at using DocRaptor API directly when I stumbled on your plugin.
If interested, I can share what I come up with. I did start playing with Mayer a bit and that’s why I was hoping that you have taken it further in the direction I need.
-CNo errors in console or network tabs. Health Check plugin shows all is well. Tried clearing cookies and cache.
Forum: Plugins
In reply to: [WP Accessibility] Trigger window resize eventThanks!
Forum: Plugins
In reply to: [WP Accessibility] Skiplinks overlaid?Looks like it is the “position:absolute” in .wpa-visible-ltr#skiplints a
-Craig
Forum: Plugins
In reply to: [WP Accessibility] Font change, pop-out button textWell, if you want to be logical about it and follow specifications and stuff … what fun is that?
I agree with all you say (thanks for the good words) but many people do not know you can zoom a browser.
Thanks, keep up the great work.Forum: Plugins
In reply to: [WP Accessibility] Alternate Font sizesPerfect. THANKS.
Forum: Plugins
In reply to: [BuddyMeet] Shortcode – csv for settingsIt has been a while but I believe it did.
Forum: Plugins
In reply to: [Contact Form 7] Writing user metaNever mind … fixed it and don’t see how to remove my post.
GREAT plugin … but you know that!