Ginag21
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Assign a different logo to a pageHi 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
<div id= “newlogo”>
<img src=”https://localhost:8888/entersitename/wp-content/uploads/2014/05/test.jpg” />
</div>
in style.cssat the bottom
.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; }
and this in this bit/* 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;
}