Blog
Adding Custom Fieldsets to Gravity Forms
Fieldsets are important in ADA compliance because they help tell screen readers that a group of fields belong together and can share a label. This enhancement makes it easier for those using screen readers to use your site and navigate your forms, and you certainly don’t want to give anyone any obstacles in using your site! Now, what if you’re using Gravity Forms to create your forms? Gravity Forms allows you to add certain grouped fields that will automatically add a fieldset around them. These are fields like Address, Name, and other combined information. This can be helpful, but it also can be very restrictive. You must choose fields that are certain field types and only have a maximum amount. It is true that you can modify the title of a “name” field – such as “middle name” – to identify it as accepting an email address, but you’ll lose
Enqueueing JavaScript and CSS Files In Your WordPress Theme
When you’re building a theme, it is important to be able to use CSS stylesheets or JavaScript files where necessary. Sometimes you only want a script or stylesheet included on a specific custom post type or template, you might be adding some fancy JavaScript to modify your site, or you may just want to add different stylesheets for different media values. WordPress is not picky about allowing you to add additional files and it is well within your capabilities when written properly. In order to add files correctly, you’ll have to use the enqueue functions available within WordPress. Enqueuing the files this way ensures both full control and the ability to filter the HTML if needed. It is important to note that these files will only appear in your theme when you use wp_header() and wp_footer() within the head of your theme and just before the ending element for the
The Short Echo Tag in PHP
Using the short echo tag (“<?=”) in PHP was rumored to be deprecated because the short PHP tags (“<?”) were slated to be. Those short open tags were scheduled to be removed due to XML’s opening tags conflicting directly with them. Even though XML’s opening tags conflict with the defunct PHP short open tags, the short echo tag does not! Therefore, it is perfectly okay to use the short open tags in PHP as long as your code doesn’t need to work below PHP 5.4 – Which shouldn’t be a problem!
Ensuring Website Security with PHP
Using PHP to ensure website security PHP is the most commonly used server-side programming language. 81.8% of web servers deploy it, and it’s the default option for many web developers. The most popular CMS options are built on PHP platforms, including WordPress, Magento, Joomla, OpenCart, and Drupal. If you’re looking for a development language to get into, PHP should be considered an extremely valid option. PHP is a beautiful language. It’s one of my favorites to use and the possibilities feel limitless. These possibilities come with drawbacks, though. One of the main problems with PHP is that it isn’t guaranteed to be secure. That part is up to you. In this article, we’re going to discuss a few of your options for ensuring website security in your PHP-based site. The basics of PHP security vulnerabilities PHP is a weakly typed language. This means that PHP will automatically convert data of
Class princessBride
One of the most fun ways to show that you understand code is to display the plot of one of your favorite movies as code. Here, I’ve written class princessBride using PHP.