• Dear all,

    my wp websites are totally redone and I generally have an average of 30 personal codes (js and css) which are only in part to be enqueued to all pages: most of them are to be embedded only in specific pages. Till now I used a powerful plugin, but facing a couple of problems:

    1. that plugin changes the code name to a number (while I want to keep the original name to embed it manually in the pages, and to do so there are always two codes per each one)
    2. all codes go to all pages of the site, so every page loads at least 20 useless codes (to solve this I everytime add a php dequeue list, but it is unnecessary complication)
    3. I also have some html pages external from wp framework: I need a simple folder where to put my styles and scripts (if possible in uploads area to avoid long permalinks (just ../[folder]/[code]) and I want to embed them manually where they are needed: well if there is option to enqueue them everywhere and/or to specific pages
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bilal TAS

    (@bilaltas)

    Hi @mrosfy, thanks a lot for these valuable feedback!

    1. Yeah, you’re totally right and it’s exactly in our roadmap. You’ll receive an update related to this as soon as it’s developed.
    2. You’re right, it’s being enqueued to every page by default. However, you can choose any location(by page, post, category, archive, template, …) for any code with PRO version of CodeKit. So, you won’t have to dequeue every time you add a code.
    3. Well, there’s also a feature exactly for this. It’s the “Code Includes” PRO feature. You can simply put your codes in any folder you want (I would prefer wp-content/custom_codes/<folder_name/…) Then, you can include any file or URL into any code from the “Includes” section of the code editing page.
    Thread Starter Mauro Vicariotto

    (@mrosfy)

    Thank you Bilal,

    I completed our child themes and all enqueued in our functions.php.

    Kind regards.

    Mauro

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘quick questions on codekit’ is closed to new replies.