Tagged: x
-
AuthorPosts
-
December 26, 2016 at 10:13 am #1304664
Sara H.ParticipantHi!
I need to know if there is a better way to this, cleaner way…
So I add an image on my footer (x-colophon.top) with this code:
footer.x-colophon.top { background: transparent url(http://img.png); background-position: center top; background-size: cover; background-repeat: no-repeat; }But I dont want this image on some pages, it works with this code:
.page-id-926 .x-colophon.top { display: none; }But is there a way to add multiple page-id? I mean, i need to hide that image in 6 pages whats the best way to do it?
thanks
December 26, 2016 at 10:15 am #1304666
JoaoModeratorHi There,
Best would be to add like this for example :
.page-id-926 .x-colophon.top, .page-id-922 .x-colophon.top, .page-id-225 .x-colophon.top, { background-image: none; }**I made up the last two page id´s
Hope that helps
Joao
December 26, 2016 at 10:26 am #1304684
Sara H.ParticipantThis code change the background of .x-logobar .x-logobar-inner:
.page-id-728 .x-logobar .x-logobar-inner { background-image: url("http://imgsource.jpg"); background-position: center top; background-size: cover; background-repeat: no-repeat; }Need to to this in many pages, I am copy paste the code above and change the page-id… I just feel there is a simpler way to short code lines no?
December 26, 2016 at 10:35 am #1304691
JoaoModeratorHi There,
You need to separate the selectors with , as on the prior example.
.page-id-922 .x-colophon.top, .page-id-226 .x-colophon.top, .page-id-926 .x-colophon.top { Your code goes here }Hope it helps
Joao
December 26, 2016 at 10:38 am #1304693
Sara H.ParticipantHi João,
I used the prior example:
/* formatar footer top com imagem da agua */ footer.x-colophon.top { background: transparent url(http://myimagesource.png); background-position: center top; background-size: cover; background-repeat: no-repeat; } /* formatar footer top retirar imagem da agua em algumas paginas */ .page-id-926 .x-colophon.top, .page-id-953 .x-colophon.top, .page-id-481 .x-colophon.top, .page-id-18 .x-colophon.top, { background-image: none; }and is not working, the img still’s there
December 26, 2016 at 10:55 am #1304715
Nabeel AModeratorHi again,
In this case we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks!
December 26, 2016 at 10:55 am #1304716
Sara H.ParticipantThis reply has been marked as private.December 26, 2016 at 10:57 am #1304720
Nabeel AModeratorHi again,
Please replace your code with this:
.page-id-926 footer.x-colophon.top, .page-id-953 footer.x-colophon.top, .page-id-481 footer.x-colophon.top, .page-id-18 footer.x-colophon.top { background: none !important; }Let us know how this goes!
December 26, 2016 at 11:00 am #1304722
Sara H.ParticipantThis reply has been marked as private.December 26, 2016 at 11:03 am #1304724
Nabeel AModeratorHi again,
I just edited my previous reply, you can replace your code with this:
.page-id-926 footer.x-colophon.top, .page-id-953 footer.x-colophon.top, .page-id-481 footer.x-colophon.top, .page-id-18 footer.x-colophon.top { background: none !important; }Let us know how this goes!
December 26, 2016 at 11:07 am #1304735
Sara H.ParticipantNo joy Nabeel :/
/* formatar footer top com imagem da agua */ footer.x-colophon.top { background: transparent url(http://myimg.png); background-position: center top; background-size: cover; background-repeat: no-repeat; } /* retirar imagem footer top da agua em algumas paginas */ .page-id-926 footer.x-colophon.top, .page-id-953 footer.x-colophon.top, .page-id-481 footer.x-colophon.top, .page-id-18 footer.x-colophon.top, { background: none !important; }December 26, 2016 at 11:08 am #1304737
Sara H.ParticipantI also tried to clean my browser cache
December 26, 2016 at 11:11 am #1304738
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
December 26, 2016 at 11:19 am #1304744
Sara H.ParticipantThis reply has been marked as private.December 26, 2016 at 11:36 am #1304759
ThaiModeratorHi There,
Please find this CSS:
.page-id-926 footer.x-colophon.top, .page-id-953 footer.x-colophon.top, .page-id-481 footer.x-colophon.top, .page-id-18 footer.x-colophon.top, { background: none !important; }And change to this:
.page-id-926 footer.x-colophon.top, .page-id-953 footer.x-colophon.top, .page-id-481 footer.x-colophon.top, .page-id-18 footer.x-colophon.top { background: none !important; }Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1304664 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
