How can we help?
If you are looking for support for our PokaTheme, this is the place!
- March 26, 2019 at 3:21 pm #3594
Why I don’t have Custom Field box in my Screen Setting WP page? How can I activate it?March 26, 2019 at 3:27 pm #3595March 26, 2019 at 3:29 pm #3596
Or how can I add JS code to the direct page and place?March 26, 2019 at 4:43 pm #3598
In order to show the Custom fields option again to Screen Options you can add the following to your child theme functions.php
`add_filter( ‘acf/settings/remove_wp_meta_box’, ‘__return_false’ );`
Also you can add JS either inline in any of the child theme template or in a JS file.March 26, 2019 at 4:56 pm #3599
“Also you can add JS either inline in any of the child theme template or in a JS file.”
I can add JS code directly to text block you mean? As HTMLMarch 26, 2019 at 5:07 pm #3600
I meant that you can add JS code in your child theme. You can add small JS snippets also in the rich editor but this is not recommended.March 26, 2019 at 5:34 pm #3601
Ok and do you have recommended way? In child theme, of cource
And also I have a question: how can I add pagination to the page? In direct place? Footer and Header php are not available in child and even if I choose general theme there is no opinion to add pagination. It seems like this function was deleted from php codeMarch 26, 2019 at 5:49 pm #3603
For example, I need JS for next task.
1) iFrame with demo slot
2) Background mask of iFRame
3) Button mask of iFRame
I need by clicking the button hide background mask and button mask, and display general iFrame with slot demoMarch 26, 2019 at 6:37 pm #3604
In order to add you JS in a child theme you can follow these steps:
1. Create your js file in a subfolder in your child theme. For example js/main.js
2. In functions.php find the function called “poka_child_enqueue_styles” and to the end of the function add:
`wp_enqueue_script( ‘child-main’, get_stylesheet_directory_uri() . ‘/js/main.js’, array( ‘jquery’ ), ‘1’, true );`
3. Inside your new main.js I recommend to wrap your code with:
In order to be sure that WP jQuery is ready.
I hope I helped!March 29, 2019 at 6:23 pm #3609
- You must be logged in to reply to this topic.