After changing Site url to https, can’t access login page

I had the same problem. You need to install the plugin CloudFlare Flexible SSL https://wordpress.org/plugins/cloudflare-flexible-ssl/ As you can’t login in to dashboard so you can’t add that plugin now. But there is a way for this. Just login to cpanel or just use ftp. Then createa folder inside wp-content named mu-plugins . Now download that … Read more

Call to undefined function insert_with_markers

Looks like insert_with_markers() function becomes available during admin_init hook. So in order for your code to work, you should do the following: function do_my_htaccess_stuff_371705() { //function `insert_with_markers()` is working now } add_action(‘admin_init’, ‘do_my_htaccess_stuff_371705’);

Registering jQuery kills admin functions

jQuery is not defined This is because the Google CDN Jquery is not in no-conflict mode. Use the following to make sure the included WordPress no-conflict jquery is used in admin. if( !is_admin()){ wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”), false, ‘1.4.2’); wp_enqueue_script(‘jquery’); }

Change Dashboard url

Without Plugin: 1. Add constant to wp-config.php define(‘WP_ADMIN_DIR’, ‘admin-area’); define(‘SITECOOKIEPATH’, preg_replace(‘|https?://[^/]+|i’, ”, get_option(‘siteurl’) . “https://wordpress.stackexchange.com/” ) ); define(‘ADMIN_COOKIE_PATH’, SITECOOKIEPATH . WP_ADMIN_DIR); 2. Add below filter to functions.php add_filter(‘site_url’, ‘wpadmin_filter’, 10, 3); function wpadmin_filter( $url, $path, $orig_scheme ) { $old = array( “/(wp-admin)/”); $admin_dir = WP_ADMIN_DIR; $new = array($admin_dir); return preg_replace( $old, $new, $url, 1); } … Read more

Move WP Admin Bar

The admin bar is hooked to wp_footer. So … remove_action( ‘wp_footer’, ‘wp_admin_bar_render’, 0 ); … will remove it from there. And then you can register it for a custom hook with: add_action( ‘my_custom_hook’, ‘wp_admin_bar_render’, 1000 ); You still have to overwrite the CSS in your stylesheet, but that should be fairly simple. Oh, and welcome … Read more

Add custom text to Page Tamplate without need to know html

You have two solutions for this: Use Custom Fields This is a very comprehensive guide: The Power of WordPress Custom Fields. There are some very useful plugins like Custom Field Template and Magic Fields which use them. Use Widgets. The Widgets API allows you to easily build your own widgets.

Why should I password protect WP-Admin?

The protection from .htaccess is for the folder /wp-admin it’s not for the URL Open up your ftp programme (or download WordPress) and look inside /wp-admin By only allowing your IP access this folder you’re blocking a lot of possible exploit issues (as mentioned in comments below). I always prefer to login at mysite.com/wp-admin and … Read more