Viewing 3 replies - 1 through 3 (of 3 total)
  • but it also adds it on top of the main logo for the other pages

    CSS fix (untested):

    #newlogo { display: none; }
    .page-id-901 #newlogo { display: block; }

    for a php solution, please re-post your code (as it got mangled being posted without the proper marking) – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    Thread Starter Ginag21

    (@ginag21)

    Hi Thankyou so much for your response. Unfortunatly it doesnt seem to have worked, ref; “but it also adds it on top of the main logo for the other pages” is still happening. The theme uses theme options so I was thinking this may be why Im having trouble hiding it. I did add a div for the new logo in the header file. Im also wondering if that was a mistake but if i dont add it in there then it doesnt show on the page i want it to at all. Can you define a certain page to a div? And again is there a if statement i need to add in in the php

    Also after trying numerous things this afternoon ive found I can just add this into style.cs. This tiles the newlogo behind the actual logo then though ***need to go on a coding course!!

    .page-id-901 #logo { display: none; }
    .page-id-901 #newlogo { background: url(“https://localhost:8888/entersitename/wp-content/uploads/2014/05/test.jpg”) no-repeat scroll 0 0 transparent; }

    Please see below for my re-posted code. Sorry about that was up a bit late last night!

    in header php

    /* Logo side */
    #logo{
    width: 31.91489361702128%;
    float:left;
    padding-top:10px;
    margin-right:4.25531914893617%;
    margin-bottom: 20px;
    }

    img.logo{
    display: block;
    left: 0;

    margin-top:20px;
    }
    #newlogo{
    width: 31.91489361702128%;
    float:left;
    padding-top:10px;
    margin-right:4.25531914893617%;
    margin-bottom: 20px;
    }

    img.newlogo{
    display: block;
    left: 0;

    margin-top:20px;
    }

    >>> please read https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    your posted code is broken and not very useful to help with troubleshooting.

    can you post the code of the logo section of the unedited version of your theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assign a different logo to a page’ is closed to new replies.