Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit a template #733

Open
arashnz opened this issue Jan 27, 2021 · 0 comments
Open

edit a template #733

arashnz opened this issue Jan 27, 2021 · 0 comments

Comments

@arashnz
Copy link

arashnz commented Jan 27, 2021

Hello,

I want to edit a theme from a customer which use ACF plugin and also option-tree, It created a page and on that page it added some filed using ACF and put some conditional logic for fields so if a condition is true some other fields may show in page else they don't, the problem is I'm trying to add some new field with some new condition but it shows the field without depend to the condition but it worked for all previously added field, I edited the file which has many arrays in it and use acf_add_local_field_group function to add fields also I added my newly created field to .js file like this :jQuery('select[name=manategh]').hide(); and also jQuery('select[name=manategh]').show('fade'); but it still shows the field without considering the condition. my question is , is it related to option-tree ? how can I understand how does it work and how can I change the theme to make my condition work ? I mean should I edit any specific file ? help me please to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant