Fixed layout for admin section

This is still to be confirmed but so far so good: What I did is open all the minified css related to the admin section and deleted theses parts @media only screen and (max-width:xxx px){…} whenever I found one. It seems to work and doesn’t mess with anything else, as far as I know. Of … Read more

Where is the right place to register/enqueue scripts & styles

Why registering and queuing properly matters it should be in time – earlier than script/style is up for being output to page, otherwise it is too late; it should be conditional – otherwise you are loading stuff where you don’t need it and cause performance and functionality issues, for this you need WP environment loaded … Read more

Conditionally Loading JavaScript/CSS for Shortcodes

Based on my own experience, I’ve used a combination of method 1 & 2 – the architecture and footer scripts of 1, and the ‘look-ahead’ technique of 2. For the look-ahead though, I use regex in place of stripos; personal preference, faster, and can check for ‘malformed’ shortcode; preg_match( ‘#\[ *shortcode([^\]])*\]#i’, $content ); If you’re … Read more

Add external css to Contact Page

I do feel that you are trying to over complicate things here. What you want to achieve would be easier in a child theme. It is something that I would consider as it is really something simple that you want to achieve. All you simply will need to do, copy the contact form template to … Read more

Adding Font Awesome to WP Plugin

Did you create wp-plug-in/wp-plug-in.php file in plugins folder and added this following code. <?php /** * Plugin Name: Load FontAwesome * Version: 1.0 */ /* Exit if accessed directly */ if ( ! defined( ‘ABSPATH’ ) ) exit; function wp_styles() { wp_register_style( ‘font-awesome’, plugins_url( ‘wp-plug-in/css/font-awesome.min.css’ ) ); wp_enqueue_style( ‘font-awesome’ ); } add_action( ‘wp_enqueue_scripts’, ‘wp_styles’ ); … Read more