• Resolved Dave Tavres

    (@davetavres)


    In the documentation for “External file”, the reference for external file linking says to use the “code_id” – but I can’t find any other references telling what that is or where to find it.

    Would it be something like: <script src=”http://www.wp-site.com/1234.js&#8221; type=”text/javascript”></script> – where “1234” is from the post URL (‘post=1234’)?

    Here’s the text from the documentation:
    “External file – the code will be linked as an external file with the <link rel=”stylesheet” type=”text/css” href=”http://www.wp-site.com/code_id.css&#8221; media=”all”/> or the <script src=”http://www.wp-site.com/code_id.js&#8221; type=”text/javascript”></script> code.”

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello Dave,

    the linking is done automatically by the plugin, you don’t need to write the code_id anywhere. In the documentation it is mentioned how the code is linked only to let users know what to look for in the HTML code when they are searching for their linked code.

    In the CSS terminology there is “external file” and “internal” linking. By “internal” linking is meant that the CSS is simply written in the HTML document’s header. By “external file” is meant that the code resides in a file and the file is linked.

    I’ve noticed a confusion about the “external file” linking. Some people understand by “external file” a file that resides on another server or on a CDN. In the plugin the term “external file” is used as in the CSS terminology, which means “not internal”, but the file is saved on your server, not an external server.

    The code_id is added automatically, you don’t need to add it anywhere. The code_id is basically the internal WordPress ID created for every post, page, custom post type or, in this case, for css and js codes.

    If you intend to link a CSS/JS code that resides on another server or on a CDN, I recommend you read the comments found in the editor when you click on “Add HTML code”.

Viewing 1 replies (of 1 total)

The topic ‘What’s the “code_id”?’ is closed to new replies.