WordPress.org

Ready to get started?Download WordPress

Forums

Theme disappears on every post except homepage! (6 posts)

  1. digressmedia
    Member
    Posted 7 years ago #

    Hi everyone

    Am a novice newbie so please be gentle with any replies you might give !

    My problem is this: I have set up a new blog at: http://www.digressmedia.com

    but for some reason the theme Iridium is only working on the home page. When i write an individual post or click on any other page the theme totally disappears and I'm left with a white screen and ultra simple formatting - not at all the impression i want to create!!!

    It did work fine when I first set it up but now it doesnt. I tried to reinstall the theme but no change.

    Weirdly, if I change theme and use another one then the problem disappears. have i done something to iridium, or overwritten a setting or something?

    Please help!

    Daniela

    Digressmedia

  2. drmike
    Member
    Posted 7 years ago #

    Take a look at your page source. The URLs for the CSS are not being created correctly. It's just being stated as a file directly link, not an URL to the file.

    Open up your theme's header.php file for editing and look for the lines where the link to the CSS file is being created. It should look something like this:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    It probably doesn't.

  3. digressmedia
    Member
    Posted 7 years ago #

    Hi

    thanks for this. here is what the header.php says:

    <!-- Start Header -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <link rel="stylesheet" type="text/css" href="wp-content/themes/Iridium/style.css"/>
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="wp-content/themes/Iridium/ie.css"/>
    <![endif]-->
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    </head>

    <body>
    <div id="wrapper">

    <!-- End Header -->

    Should I just copy and paste the code from your reply over the line that begins <link rel=stylesheet ??

    Thanks
    Daniela

  4. drmike
    Member
    Posted 7 years ago #

    I can't believe it's in there like that. :(

    I would just replace the URLs for your 2 CSS files:

    http://www.digressmedia.com/blog1/wp-content/themes/Iridium/style.css
    http://www.digressmedia.com/blog1/wp-content/themes/Iridium/ie.css

    Do note that if you ever move the site, you're going to have to change them.

    Some folks here will probably argue to use the bloginfo calls but doing it as a hard URL just means two less database calls.

  5. libujar
    Member
    Posted 7 years ago #

    Can do i use this theme for my page
    Bujar

  6. libujar
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic