New answers tagged

1

Yeeey, I figured it out! Actually my theme had a redirect like this one in functions.php: // Block Access to /wp-admin for non admins. function custom_blockusers_init() { if ( is_user_logged_in() && is_admin() && !current_user_can( 'administrator' ) ) { wp_redirect( home_url() ); exit; } } add_action( 'init', ...


0

To add to what @brasofilo answered 3 years ago, this is what is necessary in the current menu system (WP v4.5.1). add_action( 'admin_head-edit-tags.php', 'modify_menu_highlight_wpse_43839' ); function modify_menu_highlight_wpse_43839() { if( 'post_tag' == $_GET['taxonomy'] ) { ?> <script type="text/javascript"> ...


0

if you want to access the control panel for wordpress just go to your browser and type in this http://localhost/foldername/wp-login.php? There you are free to go make sure you don't leave out a question mark at the end. Respond if it works for you.


0

You might try changing the class login to an id login. Replace .login h1 a {...} with #login h1 a {...}.


1

Uncaught TypeError: Cannot read property 'ajax' of undefined @Sasa1234, it happen cause your jQuery is undefined. Please take a look @EAMann answer. So, your JS code should like this: function myajaxfunction() { if ( undefined !== window.jQuery ) { jQuery.ajax({ //ajax request url: ajaxurl, data: { ...


0

I found an answer that works well. Using two dropdowns in a 'cascading' style, with the code in the gist below, users would pick from a list of parent terms first, then a second dropdown appears with the list of children. The key is that both the parent and the child terms are 'selected'. Just took a bit of tweaking to get it right, but it seems to work ...


0

Add !important; to EVERYTHING and that should solve your problem. You don't have your first 4 background items as !important; so they are being overridden. This is why it doesn't work anymore.


0

I'm assuming you're asking how to remove the first action, which the plugin has created? Removing an action is really easy - all you need to do is call remove_action like this: remove_action("admin_init", "backend_plugin_css_scripts_mail_bank"); Then add your replacement action. You need to ensure that you remove the action after it has been added ...


2

If you're sure you don't need those plugins and if TGM is not tied up with any required licenses for your plugins, just pull TGM Plugin Activation right out. It's a three step process. One: find and delete the plugin registration function. <?php /** * Required and Recommended Plugins */ function prefix_register_plugins() { /** * Array of ...


0

Register the navigation menu location in your theme's functions.php file using the register_nav_menu() function, assign your custom menu to the location in Dashboard > Appearance > Menus, then use the wp_nav_menu() function in your theme's template files to print the menu's markup where appropriate. Refer to the overview of Navigation Menus in the Codex.


1

I think you have the logo called from the Theme Options try updating your Theme Options alternatively you have many plugins that can help you achieve that. Like: https://wordpress.org/plugins/add-logo-to-admin/ You can always refer to the Wordpress Codes https://codex.wordpress.org/Customizing_the_Login_Form


1

I was using WordPress Multisite for multiple TLDs. Example: domain.com another-domain.org sample-domain.net The primary site was domain.com which was a valid registered domain name with proper DNS resolution. another-domain.org and sample-domain.net had both expired domain name registrations. A/K/A - The DNS wasn't resolving properly. If you've got ...


-1

I've two domains mysite.com and mysite.it the second domain (mysite.it), redirect to the first (mysite.com). I've configured my network with Sub-directories es: mysite.com/en


0

With @kaiser's answer I found you'll need to utilize admin_menu hook over admin_init as it fires before the !user_can_access_admin_page() check in wp-admin/includes/menu.php otherwise if the user doesn't have 'read' access to the dashboard they'll just get the 'You do not have sufficient permissions to access this page.' page rather than being redirected.


2

Why not get all post_types and loop through them with the filter. This should work if the callback for all post types is the same (managesortablecolumns). The code will look something like this: function init_managesortablecolumns (){ $post_types = get_post_types(); foreach( $post_types as $post_type ){ add_filter( 'manage_edit-' . ...


2

@Kika is right that you have an older, insecure, version of OpenSSL. This sounds like: https://wordpress.org/support/topic/getting-download-failed-error0d0890a1asn1-encoding-routinesfunc137reason I wrote a small bit of code to skip the SSL test when trying to access the download server. It is not a good idea to use this code but will get you out of a ...


0

This appeared to be a very strange bug coming from either my laptop or my network connection. I ended up turning on my VPN and I was able to access everything normally. Hopefully this helps if anybody else runs into this strange issue.



Top 50 recent answers are included