Show or hide fragments using smart conditional logic

Transform business strategies with advanced india database management solutions.
Post Reply
shaownhasane
Posts: 131
Joined: Mon Dec 23, 2024 2:26 pm

Show or hide fragments using smart conditional logic

Post by shaownhasane »

Select the device type for your custom snippet
You can then use the powerful Smart Conditional Logic section to show or hide automatically inserted snippets based on a set of rules.

For example, you can show the snippet only list of real mobile phone numbers phone number to logged-in users, load the snippet only on specific page URLs, and more.

Finally, the "Basic Information" area appears. You can add anything here to help you understand what this code does, where to find it, and why it's added to your site.

Add code descriptions and labels
You can also assign tags to code snippets. This will help you sort your code snippets by topic and functionality.

When you want multiple code snippets to appear in the same location, the priority field lets you control the order in which the code snippets run. By default, all snippets have priority 10. If you want a snippet to appear before other snippets, just set the snippet's priority to a lower number, such as 5.

Once you've selected your options, move the switch in the upper right corner from "Inactive" to "Active" and click the "Save Clip" button.

Save and activate the code snippet
If you want to save the snippet without activating it, just click on the "Save Snippet" button.

Once you save and activate the snippet, it will be automatically added to your website or appear as a shortcode if you choose the insertion method.

Error handling in custom code
Often, if you mistakenly add custom code to a specific plugin or theme file on your site, your site will instantly become inaccessible.

You will start seeing syntax errors or Internal Server Error 500 on your website. To resolve this issue, you must use an FTP client to manually undo the code.
Post Reply