• Resolved pauljamestill

    (@pauljamestill)


    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.

    https://www.tiardy.com/blog

    best wishes
    paul

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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">

    Thread Starter pauljamestill

    (@pauljamestill)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css formating and html lost when category or specific blog page loads’ is closed to new replies.