- This topic has 17 replies, 4 voices, and was last updated 6 months, 1 week ago by
Ying.
-
AuthorPosts
-
September 13, 2022 at 5:36 am #2341527
surendra1506
Hi team I want to create an ad unit on top of the site. The logo to the left side and the 728*90 ad is on the right side.
The menu will be below them.
Also, I want it to show only on the desktop. For mobile, I want to display a 300*50 ad on top.
Thanks in advance.
Surendra Jadli
September 13, 2022 at 5:59 am #2341553David
StaffCustomer SupportHi there,
1. set the Customizer > Layout > Primary navigation -> Location to
Below Header
2. Create a Hook Element to add your Banners:
https://docs.generatepress.com/article/hooks-element-overview/
2.1 This hook can contain both banners simply use a DIV and a CSS class to hide the relevant banners eg.
<div class="hide-on-tablet hide-on-mobile"> You desktop banner here </div> <div class="hide-on-desktop"> You mobile banner here </div>
2.2 Set the Hook to:
generate_after_logo
2,3 Set the Display Rules to the
Entire Site
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 13, 2022 at 6:45 am #2341584surendra1506
1. set the Customizer > Layout > Primary navigation -> Location to Below Header
Hi David, I can’t see this option in my customizer. Please help
Surendra Jadli
September 13, 2022 at 7:12 am #2341616David
StaffCustomer SupportOK, go to Customizer > Layout > Header and Disable the
Navigation as Header
option.
Then set the Customizer > Layout > Primary navigation -> Location toBelow Header
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 13, 2022 at 8:39 am #2341851surendra1506
Thanks, David,
I got the desired result by implementing as you instructed.
one last thing I request you to please tell me how to get the ads to the right side.
Currently, it is too close to the site logo.
Surendra Jadli
September 13, 2022 at 8:43 am #2341856David
StaffCustomer SupportTry adding this CSS:
.site-logo { margin-right: auto; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 13, 2022 at 9:12 am #2341881surendra1506
Thank you so much David.
My all problems are now resolved.
Thanks a lot for the quick reply and rectification.
Surendra Jadli
September 13, 2022 at 9:13 am #2341882surendra1506
Thanks again
Surendra Jadli
September 13, 2022 at 9:14 am #2341884David
StaffCustomer SupportGlad to be of help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2022 at 12:23 am #2342342surendra1506
Hi David,
For Mobile view my site logo is coming above followed by primary navigation below it.
I want to keep site logo within primary navigation at the center and search icon to right.
please help me to achieve this.
Surendra Jadli
September 14, 2022 at 1:08 am #2342378Fernando Customer Support
Hi Surendra,
Can you share the link to the site in question?
You may use the Private Information field for this: https://docs.generatepress.com/?s=private+information
September 14, 2022 at 1:28 am #2342392surendra1506
classmate4u.com
Surendra Jadli
September 14, 2022 at 1:35 am #2342400Fernando Customer Support
In Appearance > Customize > Layout > Header, can you first set the Mobile Header on, and add a logo. Once you’ve done that, let us know.
September 14, 2022 at 3:18 am #2342499surendra1506
Hi Fernando,
I am done with as you instructed.
Surendra Jadli
September 14, 2022 at 5:31 am #2342602David
StaffCustomer SupportTry adding this CSS:
@media (max-width: 768px) { #mobile-header .menu-toggle { order: -1; margin-right: auto } .menu-bar-items { margin-left: 39px; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.