Tagged: x
-
AuthorPosts
-
February 7, 2017 at 5:47 am #1360991
ChristopherModeratorHi,
Please updte it to :
/* different header on awards pages */ .page-id-5792 .x-brand img,.page-id-5877 .x-brand img,.page-id-5960 .x-brand img, .page-id-6005 .x-brand img,.page-id-6062 .x-brand img,.page-id-6064 .x-brand img,.page-id-6066 .x-brand img,.page-id-6145 .x-brand img,.page-id-6181 .x-brand img { display:none; } .page-id-5792 .x-brand img,.page-id-5877 .x-brand img,.page-id-5960 .x-brand img, .page-id-6005 .x-brand img,.page-id-6062 .x-brand img,.page-id-6064 .x-brand img,.page-id-6066 .x-brand img,.page-id-6145 .x-brand img,.page-id-6181 .x-brand img { background:url(http://www.exeterbabyactivities.co.uk/wp-content/uploads/2017/02/Family-Favourite-17-362x300.jpg) top center no-repeat; width:362px; height:300px;}I removed comma from the last sectors.
Hope it helps.
February 7, 2017 at 7:51 am #1361133
lisacole1Participanthi, sorry, that still doesn’t work
http://www.exeterbabyactivities.co.uk/lucy-flanagan-family-favourite-awards-judge-2017/
February 7, 2017 at 7:57 am #1361135
lisacole1ParticipantI’ve cut it down to make it more manageable but I can’t see the error anywhere, how are your eyes on it?
.page-id-6062 .x-brand img,.page-id-6064 .x-brand img,.page-id-6066 .x-brand img,.page-id-6145 .x-brand img,.page-id-6181 .x-brand img { display:none; } .page-id-6062 .x-brand img,.page-id-6064 .x-brand img,.page-id-6066 .x-brand img,.page-id-6145 .x-brand img,.page-id-6181 .x-brand img { background:url(http://www.exeterbabyactivities.co.uk/wp-content/uploads/2017/02/Family-Favourite-17-362x300.jpg) top center no-repeat; width:362px; height:300px;}February 7, 2017 at 10:06 am #1361333
lisacole1Participantany ideas appreciated.
I can get it to work for individual pages but not if I want to change the header on a lot at once. I don’t want to clutter up the code with lots of individual bits if I can help it, there will be about 20 pages that need the different header.February 7, 2017 at 5:08 pm #1361894
JadeModeratorHi there,
Would you mind providing your admin details so that we can check the codes that are currently in your customizer?
Thank you.
February 8, 2017 at 1:06 am #1362411
lisacole1ParticipantThis reply has been marked as private.February 8, 2017 at 8:25 am #1362808
LelyModeratorHello Lisa,
What I found confusing is you’re defining an image as background for the image but then your hiding it too. That’s why we can’t see it.
Let’s focus on this page:http://www.exeterbabyactivities.co.uk/lucy-flanagan-family-favourite-awards-judge-2017/
See this:http://screencast-o-matic.com/watch/cbnj266fIhThis are the CSS I have highlighted on the screencast:
.page-id-6181 .x-brand img, .page-id-6145 .x-brand img { background: url(http://www.exeterbabyactivities.co.uk/wp-content/uploads/2017/02/Family-Favourite-17-362x300.jpg) top center no-repeat; width: 362px; height: 300px; } .page-id-6181 .x-brand img, .page-id-6145 .x-brand img { display: none; }Please update above CSS to this instead:
.page-id-6181 .x-brand, .page-id-6145 .x-brand { background: url(http://www.exeterbabyactivities.co.uk/wp-content/uploads/2017/02/Family-Favourite-17-362x300.jpg) top center no-repeat; width: 362px; height: 300px; } .page-id-6181 .x-brand img, .page-id-6145 .x-brand img { display: none; }The background should be set on the image wrapper
.page-id-6181 .x-brand, .page-id-6145 .x-brandnot on the image element because we already hide it.Since you have provided login already, I did check your CSS too. There are missing semi-colons on some CSS. See attached screenshot.
Hope this helps.
February 8, 2017 at 11:28 am #1363107
lisacole1ParticipantYou are brilliant!
Thank you so much. It is really helpful to see the screencast as well and I really appreciate you checking my css. Above and beyond the call of duty!
Fantastic support, huge thanks!February 8, 2017 at 1:32 pm #1363248
JadeModeratorYou’re most welcome, Lisa.
February 27, 2017 at 2:48 am #1386968
lisacole1Participantsorry! is it possible to make it responsive, client says the alternative header is too big to fit on her phone.
February 27, 2017 at 2:59 am #1386974
ChristopherModeratorHi there,
Please add this code :
@media (max-width:767px){ .page-id-5877 .x-brand, .page-id-5960 .x-brand, .page-id-6005 .x-brand, .page-id-6062 .x-brand, .page-id-6064 .x-brand, .page-id-6066 .x-brand, .page-id-6145 .x-brand, .page-id-6181 .x-brand, .page-id-6197 .x-brand { width: 112px; height: 86px; background-size: contain; } }Hope it helps.
February 28, 2017 at 1:54 am #1388397
lisacole1ParticipantSorry that is not quite doing it.
I tried changing the width and height but it’s still not there.February 28, 2017 at 1:57 am #1388400
lisacole1Participantignore previous! it works beautifully now, thank you!
February 28, 2017 at 5:40 am #1388598
FriechModeratorYou’re more than welcome, glad we could help.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1342918 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
