How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home › Forums › PokaTheme support › Don't have Custom Field in Screen Setting WP page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3594
    lashpandayka
    Participant

    Why I don’t have Custom Field box in my Screen Setting WP page? How can I activate it?

    #3595
    lashpandayka
    Participant
    #3596
    lashpandayka
    Participant

    Or how can I add JS code to the direct page and place?

    #3598
    admin
    Keymaster

    Hi!

    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.

    #3599
    lashpandayka
    Participant

    “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 HTML

    #3600
    admin
    Keymaster

    Hi!

    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.

    #3601
    lashpandayka
    Participant

    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 code

    #3603
    lashpandayka
    Participant

    For example, I need JS for next task.
    I have
    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 demo

    #3604
    admin
    Keymaster

    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:
    `jQuery(document).ready(function($) {

    });`

    In order to be sure that WP jQuery is ready.

    I hope I helped!

    #3609
    lashpandayka
    Participant

    Hello!

    How can I also add pagination to my website? Like this: https://take.ms/URPOn

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.