[resolved] css formating and html lost when category or specific blog page loads (3 posts)

  1. pauljamestill
    Posted 2 years ago #

    Hi everyone

    I've come to this with a slightly different approach than most, and have added my own menu system and added it to the header.php (after exhaustive effort to get something similar working through the wp menu functions). It works fine, except when I click onto specific pages or the category pages. why I find this odd is how the category.php (and my own made category-qna) should load the header.php and so I'd expect a similar display, but the menu completely disappears and I even loose some formatting on the header text. I can't see any function calls that would over-ride what header loads, and so I'm really quite stumped here. if anyone can shed any light on this, I'd really, greatly, appreciate it.


    best wishes

    by the way, I've modified the basic structure just alittle...

    <div id = "whole">
    is to give it a background
    <?php query_posts('showposts=1');
    limits to 1 post display on the index.php

  2. Michael
    Forum Moderator
    Posted 2 years ago #

    the menu output into the html in the browser (browser tool bar, 'view source' or similar) seems to be the same in the category archive and posts as in the 'blog' page where it seems to be working.

    try to make the stylesheet link for the menu styles absolute; i.e. change what you have:
    <link rel="stylesheet" type="text/css" href="../css/menu.css">

  3. pauljamestill
    Posted 2 years ago #

    great, thanks so much for that, the absolute reference now gets picked up...I'll try and remember it for the future

    best wishes, and thanks again

Topic Closed

This topic has been closed to new replies.

About this Topic