I’ve tried to love ngOptions, but it is just a major pain in the butt for most of my projects. I’ve wasted enough time on it, and it doesn’t produce the results I’m looking for. Here is the alternative way I use to get a nice, functional select in angular 1.5 without all the nonsense.
Create a child theme? They are essential to making any kind of theme edits (without losing them when the parent has updates), and are incredibly useful, IF — and that’s a BIG if — you can figure out how to use them. This is one of those things that makes using WordPress frustrating. Technically the answer is already built in, and seems really simple, but there is little to no information on HOW to use it for what you need to get done. Like real world, just give it to me straight actionable information.
Child themes are too hard. I’ll just edit the parent.
This is what actually happens 9 times out of 10, even though it is against your better judgement. It seems to be the only option you have. At least the only viable one. Sure, child themes may be great, but without the knowledge of how to make them work for your site, what is the point in using them? The WordPress docs do explain them some, but not in a way that makes sense to PEOPLE who don’t have advanced degrees in alien linguistics, which is most of us.
If only there was an easy way to create a child theme.
Well, there is. Here’s what we do, any time we run into this issue for our own sites or client’s. It will take 5 to 10 minutes and doesn’t require any advanced knowledge.
Login to your WordPress admin
Go to Plugins, then Add New
Search for a plugin called "Childify Me"
Click "Install Now"
Make sure the correct parent theme is enabled
Go to Appearance, then Click Customize
You should see a small panel on the left hand side that says Childify Me
Click the button that says "Childify Me"
Type a child theme name in the box
Recommended: Name the child something with the parent theme’s name in it, so it isn’t hard to know which parent it comes from. Example: MyParentTheme-child. It makes things easier to remember.
Click "Preview and Activate"
This will allow you to see if the child theme is displaying properly before you activate it.
If you're happy with the preview, click "Save and Activate"
Optimize WordPress Image Loading without Losing Quality by resizing images without needing an external editor like Photoshop. This short online video tutorial to find out how to resize background images without losing resolution you need for clear crisp full screen background photos.
WordPress is great for many things, but there are a few things it does by default that are a little annoying. One of these is that WordPress generates various sizes of thumbnails without asking you which you want or need. By default you get the thumbnail size (approx. 150px), medium size (approx. 250 – 300px), and large size (approx. 500 – 800px), and the icon size to use in the interface (approx 32px), besides the original image you upload, which is whatever size you uploaded. This happens for every single image you upload, so you get 5-6 images by default for EACH IMAGE. That adds up fast. That can crash your website or gobble up your hosting space fast.
Some themes do change this to match the requirements of the theme, but they are usually additions to WordPress’s image sizes, not REMOVING the old ones and adding new ones. This can be a major problem and there isn’t a lot of documentation on it. Here is what you can do about it step by step.
Login to your WordPress admin panel.
Go to Settings and click on Media
you should see this screen
Change all the boxes to 0 if you don't want that size generated
Have you ever had that problem where you wish you could communicate something but a phone call or email just doesn’t cut it? Video takes forever to make for a simple thought to be passed on. Well, here is a great little tool I’ve been using for a long time called Skitch. It is a screenshot tool with clever built in annotation features.
It helps when you’re trying to get your point across with a minimum of friction and frustration. Especially in design or dev teams where a visual is highly specific and required.
This video is part of my web tools HD video course on Udemy. I teach all the little tips and tricks you can use while programming and doing other related work that will increase your effectiveness and help you work faster, smarter, and better with less headaches.
Have you ever wanted to create a custom template for an individual category? Ever wondered how you can change what gets displayed on your homepage? If you’ve wanted to customize your blog by category, author, or other meta data, this video shows you how to edit the loop, with WordPress’s very powerful WP_Query. You can get just about any kind of posts you want or exclude certain kinds of posts as well.
As mentioned in the video, here is the code you need to manually create new pages in your WordPress theme WITHOUT the need for FTP at all. This is a great little trick I learned. Here’s the code you’ll need to put in the header.php file:
in php code:
Don’t forget to replace YOURTHEMENAME and SLUG with the values you have, as explained in the video.
If it doesn’t work, you may need to turn on WordPress debug in your wp-config.php file. To do this, you will need access to that file, through FTP or through the cPanel of your hosting account. You need to add this line to the wp-config.php file:
You can change this value to true later to turn the debug messages off. If you reload the homepage, you should see a message saying “cannot create file” and a brief description why. Usually “file or folder does not exist”.
You may need to use the full absolute path to the file you want to create. This is usually like:
Replacing the capitalized variables with your specifics.
Here is the WordPress Codex page that talks about ways to customize the loop with WP_Query. All the useful variable names are here so you can quickly find the type of posts you want in about 5 minutes. It is very straightforward and simple to do.