• 3 short question about child theme for Twenty Seventeen:

    1. to override/amend a js file of the parent theme is it sufficient to create a parallel structure (“assets\etc.”) with same script name (automatically overridden, same as templates method), or is it necessary a function in php (dequeue old / enqueue new) ?
    2. my personal (specific pages) css and js can be added in the same parallel framework (“parent\assets\css …”) ?
    3. I also have some html 2nd or 3rd level pages (in previous created externally and added in “wp-content\uploads”): now that I’m making the child theme do I need to convert them in php (just php tags on top and bottom) or may I add them as html in child structure ?

    Thank you very much

    Mauro

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mauro Vicariotto

    (@mrosfy)

    I reply to myself because no answers (hope it is useful for seomeone else):

    question 1: the correct method is to create a parallel identical path and script name: it will override the parent’s one for named statements

    question 2: yes, it works properly adding the custom css and js in same assets folder

    question 3: easy add html extra level 2 and 3 pages in php, but for now I will leave as html

    Moderator Kathryn Presner

    (@zoonini)

    Hey there @mrosfy – thanks for providing your own answers in case they help others in the future!

    I see that you replied in your other thread as well. Cheers.

    Thread Starter Mauro Vicariotto

    (@mrosfy)

    Yes Kathryn, thank you.

    I’m preparing a good (and quite complex) child theme … as a friend I tell you that I’m facing some crazy issues in the sequential order of printing the links of external codes on html head: since I want to avoid the “!important” properties, it’s a mess to combine the several php statements .. just wp_enqueue isn’t enough or they are printed in “random” way

    Thread Starter Mauro Vicariotto

    (@mrosfy)

    further info: regarding my above point 1,for a tweaked parent’s script to work in the child, other than identical folder path, file name and function, it is important that the whole script is replaced, otherwise the two codes conflict

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘suggestions for child theme’ is closed to new replies.