markf1
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeOK. Thanks!
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeOK I put that code into the touch-keyboard-navigation.js file and now have that file in the js folder in the child theme. I also removed the dequeue function for the child theme functions.php
I seems to have fixed the problem with viewing on ipad. Thanks
How will I know when a fixed version is available for the parent theme so I could then remove the js folder from the child theme?
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeI’m not sure what to do with all that code in the paste bin link you provided. Do I paste all of that into the child theme funtions.php?
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeFrom my topic in th eother forum:
I am developing a site and using a child theme of twentynineteen. Everything seems to be working ok so far.
On the page linked to below there is an accordion panel. On desktop computer the panel works fine. Each individual panel opens and closes as it should. On an ipad, however, the panels do not close properly. When tapping the panel to close panel does not close and the page scrolls up.
I have an exact duplicate of this page as an HTML/CSS page in a test directory. This is the page before separating it into the various WordPres php components. The accordion panels work properly on this page on ipad.
https://www.openrangeimaging.com/test/my-templates/information.html
So, it seems something about WordPress is causing this trouble with closing the accordion panels. Any help sorting this out will be greatly appreciated!
The page I need help with: http://ngx249.inmotionhosting.com/~treere6/?page_id=11
Since then I was able to determine that the touch-keyboard-navigation script was the cause of this. Removing it solves the problem.
Others are experiencing the same problem
https://wordpress.stackexchange.com/questions/323991/no-touch-hold-delay-on-linksI do not know how to re-write the script. I want to stop it from loading. I think I have the correct code to dequeue it added to the child theme functions.php file. But, it still loads. I’m asking what is wrong with the way I’m trying to dequeue that script?
Forum: Fixing WordPress
In reply to: Accordion Panels Don’t Close on ipaddisregard. posted in wrong topic
- This reply was modified 7 years, 3 months ago by markf1.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeSorry but my experience is that you are wrong about that. Removing it, which I have done form the parent theme hurts nothing. Leaving it in causes accordion panel to not funtion correctly on ipad. I think his is pretty clearly explained in this first post of topic
“A script in the parent twentynineteen theme is causing problems when the site is viewed on ipad. I have tried to dequeue it but it still seems to be loading. The script is in wp-content/themes/twentynineteen/js and is touch-keyboard-navigation.js”
And the problem it causes is discussed in this other topic that you commented in
https://wordpress.org/support/topic/accordion-panels-dont-close-on-ipad/#post-11043479My question seems simple. How can I stop that script from loading?
- This reply was modified 7 years, 3 months ago by markf1.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeI’m sorry this isn’t clear- please understand am trying to get rid of that script/stop it from loading. I don’t want it to load from child or parent.
I want to dequeue it like I am trying to with the funtions.php
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeI had removed the touch-keyboard-navigation.js from the parent twentynineteen theme so we can see the site without the problem.
I have a copy of the site on my localhost that I’m testing this on.
I have now added the script back so I can give you a link to the site, here is the page that in particular is affected by the script I want to remove. Plus I added the js folder with script in it to the child theme per your suggestion. you can see the funtions.php code above in this topic
http://ngx249.inmotionhosting.com/~treere6/?page_id=11
- This reply was modified 7 years, 3 months ago by markf1.
Forum: Fixing WordPress
In reply to: Accordion Panels Don’t Close on ipadYou may be aware of the topic regarding this that I have ongoing in the forum you suggest. So, already doing as you ask.
https://wordpress.org/support/topic/dequeue-parent-theme-script-in-child-theme/#post-11045364
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeI think I’m following your instructions. I have the code in the child theme functions.php file as shown above in this topic.
I have now added to the child theme directory:
wp-content>themes>twentynineteen-child>js>touch-keyboard-navigation.jsStill, when I open a page I see with the web dev tools that the script is still being loaded. I do not want this script to load because it causes big problems with site functionality on ipad.
I can’t seem to get the correct configuration to stop this/dequeue this from loading.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeI’m seeing in:
wp-content>themes>twentyninetee>js>touch-keyboard-navigation.js
not seeing twentynineteen-touch-navigation
Am I looking in the wrong place or…?
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeHi Joy,
Thanks for your reply. I’m not sure about the order of execution or how to determine that. You can see the code I have in the child theme functions.php above.The script I want to dequeue is called touch-keyboard-navigation.js. I am using ‘touch-keyboard-navigation’ as the handle versus the ‘twentynineteen-touch-navigation’ that you suggest. I think I have that part correct, but I can’t figure out why the script still loads.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] dequeue parent theme script in child themeThanks for your reply Andrew.
I think I need to dequeue that script. I do not know what modifications might need to be made to it and even if I did I would likely not know how to make the modifications. The script causes a big problem on ipad. I have found other reference on internet about this script not working correctly and causing trouble. Right now I have it removed from the twentyninetee parent theme but I know when the theme gets an update it will reappear. So, I’m thinking I need to dequeue it form the child theme functions.php. I don’t understand why the code I used to do that is not working and how it should be changed.
Forum: Fixing WordPress
In reply to: dequeue script in parent themeOK I will post there. thanks!
Forum: Fixing WordPress
In reply to: Accordion Panels Don’t Close on ipadUpdate in case anyone else bumps up against this.
The entire problem was being caused by a script in the parent twetynineteen theme
remove this script:
wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js?ver=1.0′>and problem is solved. Hope this may help someone.