• Hi,

    I have my blog link like this

    <a href="/wordpress/?cat=15"> News</a>

    it shows the blog i can click on the link and everything works

    now in stylesheet.css file

    I am trying to access the blog like this

    .cat-183 #header
    {height:250px; background:url(images/top.gif) top center no-repeat #fff; width:100%}

    but its not working

    if i do it for a page which is like this

    https://ip/wordpress/?page_id=256

    .page-183 #header
    {height:250px; background:url(images/top.gif) top center no-repeat #fff; width:100%}

    it works fine but it just doesnt work for the blog

    can someone tell me what i am doing wrong

    thanks

    poonam

Viewing 9 replies - 1 through 9 (of 9 total)
  • Do you want the same header for blog and pages? will it be possible to see the actual live link?

    Thread Starter naturepoonam

    (@naturepoonam)

    yes same header for blog and pages.

    Simply try:

    #header
    {height:250px; background:url(images/top.gif) top center no-repeat #fff; width:100%}

    Thread Starter naturepoonam

    (@naturepoonam)

    Oh i am sorry not all pages i am so sorry few pages I want them to see different header with different size thats why i am changing the style sheet

    I am lost I checked on google how to refer to the blog link in stylesheet didnt get any help

    One approach can be this define different headers in your stylesheet

    #header1
    #header2

    and then in your file header.php, you can have something like this

    <div id=”<?php if($page_id=’20’) echo ‘header1’; else echo ‘header2’;?>”

    You can also use page array for multiple page ids.

    Thread Starter naturepoonam

    (@naturepoonam)

    yes ur right.

    I am new to wordpress learning as I go. A co-worker is helping me with to learn wordpress he told me this is the code

    /*—Code by Rajiv to change the header— */
    .page-217 #header,
    .page-247 #header,
    .page-239 #header,
    .page-243 #header,
    .page-253 #header,
    .page-278 #header,
    .page-294 #header,
    .page-241 #header,
    .page-36 #header,
    .page-43 #header,
    .page-39 #header,
    .page-45 #header,
    .page-197 #header,
    .page-245 #header,
    .page-250 #header,
    .page-258 #header,
    .page-262 #header,
    .page-266 #header,
    .page-217 #header,
    .page-205 #header,
    .page-276 #header,
    .page-274 #header,
    .page-292 #header,
    .page-13 #header,
    .page-14 #header,
    .page-15 #header,
    .page-272 #header,
    .page-256 #header,
    .page-260 #header,
    .page-264 #header,
    .page-268 #header,
    .page-183 #header,
    .page-185 #header,
    .page-187 #header,
    .page-56 #header,
    .page-190 #header,
    .page-192 #header,
    .page-228 #header,
    .page-232 #header,
    .page-234 #header,
    .page-236 #header,
    .page-230 #header,
    .page-223 #header,
    .page-225 #header,
    .page-203 #header,
    .page-219 #header,
    .page-254 #header,
    .page-631 #header,
    .page-183 #header

    {height:250px; background:url(images/top.gif) top center no-repeat #fff; width:100%}

    to just add the blog page numbers to it and it will work.

    If I change the code he will get mad.

    I totally understand ur logic just dont know how to refer to the blog which is coming as category.

    thanks for all your help

    poonam

    Thread Starter naturepoonam

    (@naturepoonam)

    i tried to reference the blog url in css like this

    This is the blog link
    News

    .catid-15 #header

    it didnt work

    any other idea

    thanks for help

    poonam

    Thread Starter naturepoonam

    (@naturepoonam)

    I tried

    .post-15 #header

    it didnt work

    any idea

    poonam

    You will need to allow me to see the page. I can then give you the solution.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘link problem’ is closed to new replies.