Tagged: x
-
AuthorPosts
-
January 24, 2017 at 5:28 am #1342918
lisacole1ParticipantI’m using renew on http://www.exeterbabyactivities.co.uk
They want a few pages to have different branding, is is possible to assign a different header to just a few pages?
many thanks!
January 24, 2017 at 7:25 am #1343065
Paul RModeratorHi,
Yes, it’s possible.
You can add this code in Cornerstone > Settings > Custom CSS
https://www.screencast.com/t/UIPW7GRa
.x-brand img { display:none; } .x-brand.img { background:url(http://example.org/background.jpg) top center no-repeat; width:550px; height:250px; }Change http://example.org/background.jpg with the url of your header image.
Hope that helps.
January 24, 2017 at 8:18 am #1343162
lisacole1Participantthanks, but how do I assign this to certain pages – would they all have to be done in Cornerstone?
January 24, 2017 at 9:57 am #1343293
RupokMemberHi there,
Thanks for writing back. If you want to do it for specific pages individually then you need to do it on every page. You can also use the Customzie > Custom > CSS and in that case you need to use preceding page ID like :
.page-id-1 .x-brand img { display:none; } .page-id-1 .x-brand.img { background:url(http://example.org/background.jpg) top center no-repeat; width:550px; height:250px; }Hope this makes sense.
January 24, 2017 at 10:05 am #1343304
lisacole1Participantthat does make sense, thank you!
January 24, 2017 at 10:34 am #1343334
RahulModeratorYou’re most welcome!
Feel free to ask us again.
January 25, 2017 at 3:30 am #1344421
lisacole1Participantthat works beautifully thank you
The only problem is a slight jump when you switch between pages –http://www.exeterbabyactivities.co.uk/family-favourite-awards-2017/
and http://www.exeterbabyactivities.co.uk/playgroup-exeter/
I’ve played around with dimensions of the image and the width and height you specified but I can only get it to work with your specs.
What do you recon?
January 25, 2017 at 5:20 am #1344514
lisacole1Participantand is it possible to change the header on certain posts as well please?
January 25, 2017 at 8:41 am #1344725
ChristianModeratorI don’t see the jumping issue. Would you mind providing a quick screencast?
Regretfully, changing the header would require custom development. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thanks.
January 27, 2017 at 2:45 am #1347447
lisacole1Participantno problem, so I’m ok with pages but not with posts, that is workable, thank you!
January 27, 2017 at 2:59 am #1347460
Paul RModeratorHi,
Please note that you can also do it in post.
Just change the page id with post id
eg.
.postid-1 .x-brand img { display:none; } .postid-1 .x-brand.img { background:url(http://example.org/background.jpg) top center no-repeat; width:550px; height:250px; }https://community.theme.co/kb/how-to-locate-post-ids/
Also note that you only need to put id if you are adding the code in Customzie > Custom > CSS
Thanks
February 7, 2017 at 4:16 am #1360910
lisacole1Participantthat is wonderful, thank you
Please can you tell me the sytax for adding more than one page or postis it divided by a comma?
.postid-1,.postid-2 .x-brand img { display:none; }February 7, 2017 at 5:01 am #1360952
ChristopherModeratorHi there,
It should be :
.postid-1 .x-brand img,.postid-2 .x-brand img { display:none; }Thanks.
February 7, 2017 at 5:08 am #1360959
lisacole1Participantace, thank you, that is really helpful!
February 7, 2017 at 5:45 am #1360990
lisacole1Participantwhat did I do wrong? 🙂
/* 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;} -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1342918 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
