WordPress

WordPress add JavaScript to admin

Filed Under: WordPress by Miloš Spasić Written on February 26th, 2016

WordPress add JavaScript to adminHere is how to add custom JavaScript to WordPress admin area (dashboard): Just copy code below and paste it to your themes functions.php file. Dont forget to change "your-theme/assets/js/CustomJS.js" with path to your JS file. // Add Custom JS to WordPress Admin Area Footer function custom_admin_js() { echo '<script type="text/javascript" src="' . esc_url( home_url( '/' […]Continue reading »

WordPress setup one language for admin and the other for theme

Filed Under: WordPress by Miloš Spasić Written on April 29th, 2014

WordPress setup one language for admin and the other for themeHere is one quick tip, if you want to have one language for WordPress admin and the other language for theme, just add this to your theme functions.php file: // setup one language for admin and the other for theme // must be called before load_theme_textdomain()   function set_my_locale($locale) { $locale = ( is_admin() ) […]Continue reading »

Securing WordPress

Filed Under: WordPress by Miloš Spasić Written on October 19th, 2011

Securing WordPressThis is the ultimate guide on how to achieve maximum safety of WordPress installation. After you make this changes, your WordPress blog will become bullet proof I guarantee you that! During the years of my work with with WordPress I came up with the list of six simple rules that you should implement on your […]Continue reading »