Views: 14In this quick guide, I will demonstrate how to keep UTM parameters in cookies and collect this information in Elementor Forms without losing it when a visitor changes pages. Many articles on the Internet propose solutions for when a user has UTM parameters in the URL, but this solution is more flexible. In the video, you can […]
Category: Wordpress
Removing rel canonical added by Yoast SEO plugin
Views: 32Newer versions of Yoast ingnored this code. Tested on Yoast 15.0 I fixed it with a filter priority value. Here’s working code: Because new Yoast versions (like 15.0) use the negative priority to handle wpseo_head in the plugin file front-end-integration.php: Source : Stackoverflow
Woocommerce Shop Page / Archive Page
Views: 13Product Title Link for Shop Page Then, you can add the following code snippet to your functions.php file, in a site-specific plugin, or by using a code snippets plugin. Product Thumb Image Link for Shop Page Then, you can add the following code snippet to your functions.php file, in a site-specific plugin, or by using a code […]
Change Text within Nested Class, Populate Dynamic Year & Concatenate in js – For WordPress Copyright
Views: 49Code to display year with Concatenate inside Nested Class Triggering them in footer to make them work, To get full year, Using QuerySelector to select the nested class & using innerHTML to replace the content with
Create WPBakery component / Add-On (Plugin)
Views: 55Method 01 How to create a new WPBakery component If you use WPBakery in the past and want to build your own custom component, look no more. In this blog post, we will build our own WPBakery component that allows us to use our own semantic HTML and design it the way we want it. If you […]
WPBakery Page Builder (formerly Visual Composer) – vc_map() field examples
Views: 32Mapping fields with Examples textarea_htmlText area with default WordPress WYSIWYG Editor. Important: only one html_textarea is permitted per shortcode and it should have “content” as a param_name textfieldSimple Input textareaSimple textarea field dropdownDropdown input field with a set of available options. An array containing the dropdown values (either should be a normal array or an associative array) […]
How To Show Number of Queries and Page Load Time in WordPress
Views: 13Simply paste the following code anywhere you like in your theme files (such as footer.php). And refresh the page. You will see the number of queries and the execution time. Source : WP Beginner
Custom Column with Currently Active Page Template
Views: 45Do you want to add a column to your admin pages showing the active WordPress page template? While you need to display additional information in your WordPress dashboard, we have created a quick code snippet that you can use to add a custom column with currently active page template. Use the following snippet at functions.php OR at […]
Change Modal Title When Adding or Editing an Entry – GP Nested Forms
Views: 62To change the Modal Add / Edit Button Label, Sample Code Snippet GP Nested Forms – Change Submit Button Text for Child Form – Used Code Source : https://gravitywiz.com/documentation/gpnf_init_script_args/
Permitted File Types for Uploading – WordPress
Views: 20WordPress core filters When WordPress validation for the file type fails and the above third-party plugins can’t help, you can also try using the upload_mimes WordPress filter to implement your own solution. You can find below a few examples: Where Do I Put This Code? Here is one that is widely used: Code Snippets Third Party Plug-In