Tagged: x
-
AuthorPosts
-
January 2, 2017 at 1:36 am #1312251
chinnailuParticipantHello,
I would like to place an Ad on top of the menu header of 320×50 px. It has to appear only on the Mobile Sites. Also, I want it to display only on Posts and Pages. I am looking for something like in attached site.I am using Ethos and also a child theme. What view do I need to modify and what would be the code snippet ?
Can you please help ?
January 2, 2017 at 1:49 am #1312259
ChristopherModeratorHi there,
You can add it in topbar area, to hide it on larger screen, wrap your code within following
<div></div>:<div class="cs-hide-xl cs-hide-lg">ad code</div>Hide sidebar on all pages except post and articles by adding following code :
.x-topbar{ display:none; } .single-post .x-topbar,.page .x-topbar{ display:block; }Hope it helps.
January 2, 2017 at 2:03 am #1312264
chinnailuParticipantThis reply has been marked as private.January 2, 2017 at 2:10 am #1312270
Rue NelModeratorHello There,
If you want to have a white background for your topbar, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.site .x-topbar { background-color: #fff; }Hope this helps. Kindly let us know.
January 2, 2017 at 2:33 am #1312282
chinnailuParticipantHello,
Thank you, it is much better now. But one help, I see lot of padding space around it. I really do not want any space around the 320×50 image or ad. Maybe 2 px padding. How can this be done ?January 2, 2017 at 2:34 am #1312283
chinnailuParticipantThis reply has been marked as private.January 2, 2017 at 2:40 am #1312292
ChristopherModeratorHi there,
Please add this:
.x-topbar-inner.x-container.max.width p:empty { display: none; }Update this code :
.x-topbar{ display:none; } .single-post .x-topbar,.page .x-topbar{ display:block; }To:
.x-topbar{ display:none; } @media (max-width:979px){ .single-post .x-topbar,.page .x-topbar{ display:block; } }Thanks.
January 2, 2017 at 11:02 am #1312899
chinnailuParticipantThis reply has been marked as private.January 2, 2017 at 11:14 am #1312921
ThaiModeratorHi There,
Please add the following CSS:
@media (max-width: 767px){ .x-topbar .x-social-global { display: none; } }Hope it helps 🙂
January 2, 2017 at 3:43 pm #1313263
chinnailuParticipantThank you ! It works ! Appreciate your quick response.
January 2, 2017 at 6:25 pm #1313399
JadeModeratorYou’re most welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1312251 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
