• Hello,

    I have a website and integrated wordpress lately. The blog is in the blog folder and the address of the blog is:
    …mywebsitedomain…/blog

    I have modified a theme contributed by one of wordpress users (not the default or classic theme).

    I would like to change the permalink to:
    …mywebsitedomain…/blog/2008/04/26/sample-post/

    When I do that, my external css files blog.css and blog_nav.css (which are outside the blog folder) work for the blog home page:
    …mywebsitedomain…/blog

    But when I click on a post, the css not being included which means my whole blog page looks weird. Below is the code of blog header. Can you please tell me how I can solve this problem?

    Thanks in advance.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
    <head>
    <? $page_id=40; ?>
    <title><?php bloginfo('name'); ?><?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="title" content=""/>
    <meta name="description" content=""/>
    <meta name="keywords" content=""/>
    
    <link href="../css/blog.css" type="text/css" rel="stylesheet"/>
    <link href="../css/blog_nav.css" type="text/css" rel="stylesheet"/>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>
    .
    .
    .//the code continues

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leony83

    (@leony83)

    Sorry, wordpress version is 2.5 by the way not 2.0.

    I am having a similar issue…I changed permalinks from the default to Day and name, and now when I click on a link I get my page, but there is no CSS.

    I am working with pages here, not posts. WordPress v2.7

    Can anyone help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink Change causes CSS problem.’ is closed to new replies.