Month: February 2016

Home / 2016 / February
Post

How to pass data in Gravity Forms using filter hooks

Inside Gravity Forms documentation , you can find out that you can pass data into Gravity Forms by using any of the following 3 methods: hooks, query strings and shortcodes. Let me show you how to pass data using filter hooks. Basically, what you’re looking for is  gform_field_value_$parameter_name() filter. Note the $parameter_name.

Post

How to highlight parent menu item when hovering over submenu item

If CSS on your website works in a way where when hovering over any of the subitems, the main item loses the highlight (hover state), you could try using the following CSS: [crayon-5a345d2db9c3e174678583/] Needless to say, it is up to you which styles to choose, but make sure that the ID (or class) matches the...

Post

Adding custom CSS class in body_class() using Advanced Custom Fields

The great thing about Advanced Custom Fields is that by using that plugin, you can replace number of other plugin reducing the page load and increasing the site sped, while achieving the same result only by using custom fields. WordPress function body_class() is one of the functions that is basically used by default by theme developers...

Post

How to render shortcode using Advanced Custom Fields

As you know, WordPress function do_shortcode() will render whatever shortcode contains and is frequently used in custom templates. But if you want to allow site owners to update shortcodes easily, without messing with template files (and possibly causing PHP errors and white screens of death), you will want to consider using Advanced Custom Fields.

Post

How to set conditional logic in Advanced Custom Fields

If you tried to set conditional logic using Advanced Custom Fields plugin, but haven't done it before, there's a chance that you will stumble upon the following message "No toggle fields available" wondering what that means. Fortunately, it is very easy to set this up. In order to add toggle fields, you would only need to create a new custom field of "choice" Field Type and add few Choices.

Post

How to create multiple columns in Gravity Forms

If using Gravity forms, It is likely that you will require columns sooner or later. The reason is simple - gravity forms are normally not used for simple contact forms, given their power and the fact that they are not free, so licenses for GF are being purchased by clients who know exactly what are they looking for.