Forums

easel theme: single.php and comments.php (5 posts)

  1. IDDaustinS
    Member
    Posted 3 months ago #

    The easel theme is what I'm using. I've tried to integrate wordpress into an already existing website. Everything with the blog is working except the formatting when reading a post or when commenting on a post. What is happening is the page is loading but is not referencing the correct style sheet. So in my header.php I reference different styles.css but when the single.php or the comments.php loads it reads the default css file and therefore my webpages display incorrectly. You can see the example here:

    http://www.idodeclaremusic.com/blog

    Click a comment and see how the page defaults to the wrong format. How can I hard set any post link to properly call the correct CSS Style that I want the page to load as. I left the original styles.css in the easel template alone and simply tried pointing everything to another style sheet for the header call. Then the index and such could still reference the style of the easel that I like...

    Any help is greatly appreciated. I'm new to wordpress and I'm stuck here before our page goes live. ;-(

    Thanks,
    Austin

  2. alchymyth
    The Sweeper
    Posted 3 months ago #

    try to use for instance get_stylesheet_directory_uri() or similar to build the paths to the images and styles

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

  3. IDDaustinS
    Member
    Posted 3 months ago #

    I'm sorry. I'm not understanding why your function would assist me? I know what Styles are being referenced and where the files are. What I don't understand is why the single.php file, which makes the header call, loads the web page incorrectly. However all other pages make the same header call and load just fine. It's only when reading a post or making a comment in the single post view. It's something about those two pages on this template. It's almost like they are not truly making the full header call. When I compare the source code from page to page things appear somewhat similar, but in different orders.

    I need to use both style sheets, but I can't figure out why these pages are dropping the style sheet referenced in the header when it makes the header call...

  4. alchymyth
    The Sweeper
    Posted 3 months ago #

    simple: at the level of a single posts, you are running out of ../

  5. IDDaustinS
    Member
    Posted 3 months ago #

    Right... That is why it is able to reference the default style sheet in the themes main directory. In header.php I have referenced my other style sheets by using the full server path name. I'm simply not understanding why these php pages are ignoring the header, but other pages are not. I can try making a copy of the other style sheets and placing them in the default theme path and renaming it... Is that what you are getting at?

Reply

You must log in to post.

About this Topic

Tags

No tags yet.