conditional removal #6547
Replies: 3 comments
-
@twobirdshealing From what I can tell the code functions as intended. I would suggest inspecting the <?php
function override_iframe_template_styles_with_inline_styles_cat()
{
$objects = get_terms('give_forms_category');
+ echo '<pre>';
+ var_dump($objects);
+ echo '</pre>';
+ exit;
// ...
} |
Beta Was this translation helpful? Give feedback.
-
Thanks I should have mentioned we tried that as well with support.? For example here are two separate forms one with a category set for "retreat" and one with category set as "donation" if you look at the pages I have the var dump turned on they are identical almost. This is where support got stuck and suggested I check here incase it was a bug issue. https://staging.twobirdschurch.com/donations/form-test-category-no-retreat/ |
Beta Was this translation helpful? Give feedback.
-
@twobirdshealing you may need to use |
Beta Was this translation helpful? Give feedback.
-
Iv been working with priority support and they seem to be stuck so Alex Coleman from GiveWP asked me to post here "Your best bet would be to submit this to the GitHub discussions page here: https://github.com/impress-org/givewp/discussions. Our developer see that and will be able to get a better answer for you." This is the code we are trying to get to work. It should do the css removal on only forms in the category "retreat" but is doing it on ALL forms no matter the category. Support is stumped as they helped provide the code and have tried figuring out why its not workin but no go.
Beta Was this translation helpful? Give feedback.
All reactions