WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Editing appearance of archives and individual posts (5 posts)

  1. Skrotfooey
    Member
    Posted 2 years ago #

    Hi! I'm using the RenownedMint template

    I've embedded the blog into an existing website. Also, I've edited my files extensively to remove the sidebar and a bunch of other stuff.

    My problem now is when I click on the archives, or on the title of a post, the page it takes me to does not have the appearance that I'd like, which the front page does have.

    The header and the footer, aren't the same as the ones on the main page, and while it has the links to the images on the main page (that the blog is embedded in), they're broken. I'm not sure where to put the images... it's very confusing!

    Best explained with links:

    What I like: http://votecosta.com/news/

    What I don't like: http://votecosta.com/news/2011/11/19th/

    Any advice on what to edit to make it work? I've tried editing archive.php and archives.php and stuff like that, but it doesn't work.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    don't use relative paths to the stylesheet:
    <link href="../styles.css" rel="stylesheet" type="text/css">

    use something like:
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    also, i assume you have problem with the relative image paths in the dreamweaver MM_preloadImages code - try to work with absolute image paths.

  3. Skrotfooey
    Member
    Posted 2 years ago #

    Thanks very much for the help, I appreciate it!

    I thought it was due to the links too, but didn't want to mess about with it all until someone knowledgeable told me so. I made some changes and they worked, except now I've run into a weird WEIRD issue:

    When I go to:

    http://votecosta.com/news/

    It works

    But

    http://www.votecosta.com/news/

    Gives me the dreaded "Warning: Cannot modify header information - headers already sent by..." error.

    I've checked the file for whitespace and eliminated it all, but still get the error.

    This is highly confusing, I've only just started dabbling with PHP so I'm reluctant to mess about with stuff I don't understand...

    Any thoughts on how to solve this?

    Thanks!

    p.s. Regarding "use something like:
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />" from your response, what would I substitute for bloginfo in your reply?

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    the code was copied from Twenty Eleven;

    instead of:
    <?php bloginfo( 'stylesheet_url' ); ?>
    you could use:
    <?php echo get_stylesheet_uri(); ?>

    http://codex.wordpress.org/Function_Reference/get_stylesheet_uri

  5. Skrotfooey
    Member
    Posted 2 years ago #

    Thanks very much! I'll mark this resolved, since my other issue with the "modify header" stuff is probably best approached on its own, maybe in another forum. I'll look and see where it would be appropriate.

    I appreciate your help alchymyth, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic