Browsing Tag

paths

Image paths on custom post types getting /post_type/ added to path

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)

Back to Top 134673 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising