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
- What does this PHP function code mean? [closed]
- Setting Default Category for Custom Post Type Upon Autosave
- Custom post status not working
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Admin Post Update Redirection to Posts Screen
- Why is get_post_format() for “Standard” returns empty
- modify all posts of a category to “no comments allowed”
- Password-protect a custom rss feed
- How to not allow custom roles to edit published custom post types?
- Assign Page Template Within A Custom Post Type
- Custom Taxonomy conditionals
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How to get Custom Post ID by adding filter to child theme’s function
- Custom Post Type Alerts
- Remove All, Published and Trashed Post Views in Custom Post Type
- How to post twitter like updates on wordpress
- How to get all `supports` attributes by post type?
- Custom search for custom post meta with pre_get_posts interferes with WP search
- Pre_get_posts filter overwrites all search functionality
- Weird problem happening with custom taxonmy when creating/updating posts
- Deleting Custom Post type data using mySQL command
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- Permalink structure by Post Meta value
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- 2 Templates 1 custom post type according url
- changing meta value and meta key of price field
- WordPress sort search results by custom order
- 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
- Default text in a specific post type, but not visible?
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- Adding the_content() in custom template email
- Pages are not saving due to custom post type
- 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
- Number of posts in the archive
- Ordering Submenu Pages in WP 3.1
- 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?
- Move Genesis Single Page/Single Post Title
- Custom post type menu
- Custom post type’s posts are not showing anywere but in xml sitemap
- Only show columns in custom post type?
- How to get the current category with custom posts
- Create a simple Testimonial page
- One Site. One Theme. Multiple Stylesheets without plugins?
- Custom Post Type – Portfolio no longer works
- How should I structure complex content hierarchies?
- Problems making shortcode with custom post types and taxonomy
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Function to add custom HTML into head in custom post-type list page
- What is the best way to manage small blocks of content on my home page?
- One post auto attached to many another items
- How do I “trash” a custom post type post while logged in as Admin
- Placing Admin Post Metaboxes in Tabs
- Invalid content when I try to import custom post type from the old template wordpress
- Why is my custom post content only viewable when signed into WordPress?
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Is it possible to create 2 unique titles for an Events custom post type: Upcoming Events and Past Events?
- Querying posts that don’t have a certain key value or don’t have the key
- wp delete duplicate entries of custom post types every 15 minutes
- How to add custom supports for custom post types?
- Attempting to create custom “post” template, getting a 500 internal server error
- connect users to Custom post types
- Custom Pagination based on Custom Post Type
- Custom user roles
- WordPress add taxonomies/terms list as a menu in archive page
- One Post with different content, depending on a Page
- Adding CPT changes entire layout of my site except for the archive of that CPT
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Custom Post Type
- Registering an optional custom post type from a plugin
- Query custom post type and showing its content
- Custom metabox value not saving
- Cannot modify a registered custom post type rewrite slug
- Custom post type adding additional markup
- Select Menu for Custom post Type does not save
- Query by post type or category
- Inserting two categories
- How to delete unnecessary custom post types in the UI
- Advise on Custom Taxonomies and Structure
- how to display custom taxonomies in front page
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- is therer any wordpress function to retrieve a specific html element from post content
- How to display *block number* instead *date value* on WordPress posts?