Whenever I use a JavaScript path to /images/imagename.jpg or within CSS ie. background: url(../images/imagename.jpg) the actual path (only on custom post type pages) becomes:

http://localhost/projectname/post_type/page/wp-content/themes/bonestheme/library/images/imagename.jpg)

Can someone help me understand this and how to fix it? Thanks in advance.

Read more here: Image paths on custom post types getting /post_type/ added to path


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , ,

Wordpress related questions and answers: