My guess is that you are using relative URLs in your header.php
file. That would explain the difference in the paths. (It is probably differnt on archive pages too, right?) Don’t do that. Relative URLs do not work well in a WordPress context. Generally, you want to use get_permalink()
, site_url()
, home_url()
, etc. to create absolute URLs. For the template files you want get_template_directory_uri()
and get_stylesheet_directory_uri()
.
I am guessing that you are also not registering and enqueueing the stylesheets and scripts.
See:
http://codex.wordpress.org/Function_Reference/wp_register_script
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://codex.wordpress.org/Function_Reference/wp_register_style
http://codex.wordpress.org/Function_Reference/wp_enqueue_style
Related Posts:
- White screen error for a custom theme
- How to override parent theme function through the child theme [closed]
- Migrating a taxonomy’s tags to the native category
- why post_class() function apply css classes to all other files?
- Change Background Color For CPT Template
- Problems with a custom meta_box
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- How to check post type (to include custom css)
- How to customize a permalink (URL) structure?
- Plugin: register custom post types, child ready and performance best practices
- Display only one post each WEEK
- How to Mass Delete Images from Media Library
- Get term name and term parent into custom post type permalink
- Permalink structure by Post Meta value
- How to integrate video slide using custom post types?
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- List custom taxonomy specific to one custom post type
- Define new user capability for custom post types?
- How to allow visitors to enter custom post type?
- Is it possible to create relational metabox values in a custom post?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Meta query for custom post type ignored in main query
- 2 Templates 1 custom post type according url
- How do I move/order posts with a tag to the end?
- changing meta value and meta key of price field
- WordPress sort search results by custom order
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Hide parent categories when clicked, and show it’s childs
- Custom Path/Folder behind a custom post type
- Time based access control of custom post types – what is good approach?
- Show titles, date of all posts on single category page
- delete_published_posts does not work
- How to start a new post with custom Taxonomies already set?
- WooCommerce sort products by the actual product width(not the shipping width)
- Create a custom php page and load it at a specific slug
- Structure of data : CPT + terms
- How to handle paged param in post and custom-post-type?
- Default text in a specific post type, but not visible?
- Update postmeta Parent when post_status child change
- What is the best practice for displaying my plugin content in themes?
- WP_Query custom post type query not showing the exact post type
- Shortcode to display Staff post type based on Location post type and Specialty post type
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- A form that can save/edit after first input
- Adding the_content() in custom template email
- Cannot save CPT meta box
- non-hierarchical post type with hierarchical url structure
- Send notification to the admin when new custom post is submitted
- How do i search authors from search form using author’s name
- Allow users to create posts without logging in?
- How to add attributes to taxonomies that may be different from post to post?
- Pages are not saving due to custom post type
- Adding custom image sizes and post types to a plugin or to a theme?
- How to produce a sub-page-system in WordPress
- Want to be able to sign up subscribers as authors
- Best structure / rewrite rules to achieve the following url
- How do I set a custom page template for a custom post type?
- don’t publish custom post type post if a meta data field isn’t valid
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- How to sort posts in a custom post type by title in ascending order by default?
- Categorise Custom Post Types
- Detect inside a custom query the kind of post type to assign custom classes
- Unable to set featured image
- custom post type vs. conditionally displaying meta boxes for specific terms?
- Edit the_content() function so to add a div wrapper
- How do you make a custom post type items automatically delete items 3 months after publication?
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Number of posts in the archive
- custom post data – how to
- Ordering Submenu Pages in WP 3.1
- 404 Error on form submission within custom post type
- Custom URL redirect in WP
- Remove Quick edit for custom post type?
- Replace dynamically content in a custom database table when a custom post is created
- How to customize work area / admin area in a custom post type without plugins?
- How can I have different content for different countries?
- Running a song lyrics site on WordPress
- Using page slug in wp_query
- Change “empty trash” button text?
- Specify a particular page to list all custom types
- How to display custom field value on page?
- uploading problem of wordpress theme
- How to have permalink like domain.com/term/postname?
- Move Genesis Single Page/Single Post Title
- Add an Outside Wrapper to my Header and Make it Full Width
- Page Template Dropdown For Custom Post Types
- List Categories (wp_terms) and count posts
- Custom post types problem
- attach CPT data to a taxonomy
- Displaying multiple post types on home page
- Get_the_terms restrict output
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Custom post type menu
- How to insert data into meta box from another plugin?
- WordPress custom API endpoint – how to make the request more flexible
- Template Hierarchy for custom post type pages