Baddie
Forum Replies Created
-
Thank you @arnaudbroes that worked for me. I think you’re right about parsing, twice, Ninja Forms said something like _1 get added there when there’s more than one form on a page. So this must have been triggering that. Anyway, all good now. Thanks muchly.
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Hide custom field when it’s emptyI have this exact same request. Using the Divi Theme Builder, I want to display a row only if a custom field in the post has a value. In my case an image URL.
I’m using Advanced Custom Fields to create the custom field.
Thanks muchly.
Forum: Plugins
In reply to: [Contact Form 7 Database Addon - CFDB7] Specify which forms to targetAny SMTP plugin? Or are you talking about one in particular?
Forum: Plugins
In reply to: [Popups for Divi] Trigger popup from anchor tag in URLExcellent! Thanks very much! The 20 parameter made all the difference. The code I’m now using is
DiviArea.addAction('ready', function() { if (!window.location.hash) return; var area = DiviArea.getArea(window.location.hash); if (area) DiviArea.show(area); }, 20);
Note for others: This code will in fact autolaunch any popup on the page whose ID appears in the URL as the hash. For a more targetted approach, allowing only specific popups to auto launch you can use something like
DiviArea.addAction('ready', function() { var ids = ["#foo", "#bar", "#baz"]; // Array of popup IDs that are allowed to autolaunch var hash = window.location.hash; if (!hash || !ids.includes(hash)) return; var area = DiviArea.getArea(hash); if (area) DiviArea.show(area); }, 20);
Forum: Plugins
In reply to: [Popups for Divi] Trigger popup from anchor tag in URLOk, I’ve done what you suggested. However,
var area = DiviArea.getArea(window.location.hash);
returns false and the popup does not launch.I also removed the ‘#’ part from the window.location.hash value since the other Popups for Divi functions don’t use the ‘#’ part in the identifier
var id = window.location.hash.substr(1); var area = DiviArea.getArea(id);
But this also returns false and the popup does not launch.
I also tried it explicitly…
if (window.location.hash == '#contact') { var area = DiviArea.getArea('contact');
But this also returns false and the popup does not launch.