WordPress.org

Forums

url paths (2 posts)

  1. vinsprinter
    Member
    Posted 1 year ago #

    Hi,
    I am embarrassed to write this but I am afraid that I have to ask the question. I am having a problem writing a <src = "path"> in order to access a folder with some jQuery function.

    I am using WordPress>WP-Content>Themes>Twentythirteen

    Now these are the two files I want to access.

    <script src="jquery.min.js"></script>
    <script src="jquery.js"></script>

    These are in a folder called jqfloat

    So the folder situation is like this:

    Folder Layout:

    Site Folder
    -WP Content
    --Themes
    ---Twentythirteen
    ----css
    ----fonts
    ----jqfloat
    ------jqfloat.min.js
    ------jqfloat.js
    ----js
    ----languages
    ----file 1
    ----file 2
    ----file 4
    ----header.php
    ----more files

    So what I want to do is to call the files from the header.php file using the <src> tag in order to read the program/functions in jqfloat.min.js and jqfloat.js

    So my code in the head section of the header is like this:

    <script src="/jqfloat/jquery.min.js"></script>
    <script src="/jqfloat/jquery.js"></script>

    Now I probably should have paid more attention to this in class, unfortunately I did not. But this is one of those things that can be head wrecking. Anybody out there willing to help me. Thanks

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Now these are the two files I want to access

    jQuery is loaded by default in WordPress. You do not need to load it again.

Topic Closed

This topic has been closed to new replies.

About this Topic