eric3d
Forum Replies Created
-
Thank you. Maybe the error message could link to the troubleshooting page.
@cbsteven Are you able to save the banner as an editor with this, or do you still have to grant permissions to manage_options? Displaying the settings page is one step, saving the settings is another.
Thanks. This seems to work. Around line 75:
add_action( 'plugins_loaded', 'set_simple_banner_cap' ); function set_simple_banner_cap(){ $admin = get_role( 'administrator' ); $admin->add_cap( 'manage_simple_banner' ); } add_action('admin_menu', 'simple_banner_menu'); function simple_banner_menu() { add_menu_page('Simple Banner Settings', 'Simple Banner', 'manage_simple_banner', 'simple-banner-settings', 'simple_banner_settings_page', 'dashicons-admin-generic'); }
This creates a new capability ‘manage_simple_banner’ and grants that capability to admins, then it checks for that capability (instead of role) to display the edit page.
I can then grant that capability to any user (with a plugin like User Role Editor) and they can access the page. The only issue is that I also need to grant manage_options permissions so the user can save the banner.
Forum: Plugins
In reply to: [Custom Taxonomy Order] Sort alphabetically by slugI think adding the slug as a data attribute would allow jQuery to sort by that attribute.
<li id="id_<?php echo $term->term_id; ?>" data-slug="<?php echo $term->slug; ?>" class="lineitem"><?php echo $term->name; ?></li>
Forum: Plugins
In reply to: [Custom Taxonomy Order] Sort alphabetically by slugGreat. Thanks!
Would it be possible to have the list at the top of the page ordered by slug when that option is selected (or by clicking a button)?
Forum: Plugins
In reply to: [Category Import Reloaded] Wrong parent selected with some charactersNote: in example 2 and 3, the entity & #47 ; is used instead of /. (forum is converting it)
Perfect. Thanks.
Forum: Plugins
In reply to: [Gallery Lightbox] Does not work on block galleryI can confirm @kashmiri’s code change works. Is it possible to include this fix in the next release?
screenshot: https://imgur.com/a/XagCfvR
WordPress 5.3, WPB Accordion Menu or Category 1.2.8I did not look closely at where that in inserted in your plugin, but check https://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/
Forum: Plugins
In reply to: [Category Import Reloaded] Format import text from spreadsheetNote: remove period from
&#.047;
I had to add it to prevent it being displayed as a/
slash.- This reply was modified 4 years, 7 months ago by eric3d.
Forum: Plugins
In reply to: [Weblizar Pin It Button On Image Hover And Post] Change Z-indexFound a workaround that seems to work. The slight delay is needed to wait for the button to display.
$("img").on( "hover", function(){ setTimeout( function(){ $('span[class^="PIN_"]').css("z-index", "20"); }, 10); });
- This reply was modified 4 years, 8 months ago by eric3d.
Forum: Plugins
In reply to: [CC Child Pages] List disables thumbnailsThanks for your reply. I ended up building my own list using wp_pages() since I was using the list in a template anyway. I love the plugin but, in this instance, it proved to be more work to use it than not.
Forum: Plugins
In reply to: [Contact Form 7] Change reCAPTCHA badge positionCould we have the following options in the reCAPTCHA integration settings page?
reCAPTCHA badge placement
[] Bottom right (default)
[] Bottom left
[] Inline *
[] Inline text **
[] Invisible **** Inline: places the badge where you insert a placeholder (or shortcode?) in template. If placeholder not found, adds it to bottom of the footer.
** Inline text: adds CSS to hide badge and adds the Google provided sentence at placeholder location or footer.
*** Invisible: adds CSS to hide badge and instructs user that they have to include sentence in their site to comply with T&C.Forum: Plugins
In reply to: [Relevanssi - A Better Search] Using custom posts as building blocksThanks for the quick response. I’ll run some tests.
Forum: Requests and Feedback
In reply to: Make plugin dependencies clearer in Themes directoryThanks for the clarification. I created tickets as suggested.