Divi is one of the popular theme from Elegant Themes. I come across this issue earlier this day that Slider text was displaying on page load and then animate again when full page is loaded. Use following snippet to fix it.
To track the submission of gravity forms and generate an event through Google Tag Manager, you can utilize the following code, It adds the onclick event to the submit button of the gravity form. So, whenever the submit button is clicked an event is sent to Google Server. You need to do two things to
This short snippet will add three colors (#15375c, #3366FF and #9fb83f) to color picker of WordPress editor. Its pretty useful if you allow administrators and authors to select the common colors of your website.
Many developer used Property, Car, Product and several others as a custom post type which, by default, sorted by publishing date (very odd). This fairly simple snippet details how one can add a sortable numeric column (for example a pricing column) in listing view of custom post type. It is quite useful as custom post types are getting popular day by day.
This is an advanced version of default in_category function. This function not only check for existance of post in the specified categories but also in all the subcategories down in the tree. It has same in_category parameters So you can use it in replacement of in_category.
WordPress categories follow a predefined template hierarchy. In most cases, we use “category-$slug.php” to override the template for an individual category to give it a entirely different look and functionality (“category-projects.php” for a “Project” category). If you have subcategories (Design, Development etc) of “Project” they also follow the WordPress template hierarchy and you have to create “category-design.php” and “category-development.php” to give them the similar look as of Projects category. This snippet allow you to configure some or all child categories to use their parent’s category template. In the scenario we just mentioned above, Design and Development categories will also land at “category-projects.php” instead of their own “category-$slug.php” template.