- This topic has 18 replies, 4 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
September 20, 2018 at 1:16 am #681863
Daniel
Hi
I build a website with your theme and made some custom chagnes in the header and in the mobile header see here
http://wordpress-55262-534639.cloudwaysapps.com/
On Desktop i put the menu under a main header which i set with hooks… works fine… on mobile i placed the menu sticky on top just with some css changes (it was also under the main header before)… i have the menu now left and a header bar… my question is can i put just an icon on the right in the menu bar with an onclick function so the contact info opens up in a small window… ot even better would be just css with a click… but i dont know where i can put the content and in? Here is the old page where its exactly like i want it to be (on mobile) http://ostermann.doctor/
thanks for help
GeneratePress 2.1.4September 20, 2018 at 10:25 am #682368Tom
Lead DeveloperLead DeveloperHey Daniel,
You would need to implement some sort of javascript tooltip library on click. There are tons of them out there if you search for “jQuery tooltip”. Tooltipster is the only one I can think of off the top of my head.
As for inserting the clickable item, it’s easier if you use the mobile header: https://docs.generatepress.com/article/mobile-header/#adding-html-inside-the-mobile-header
However, we can also make it work with the default mobile menu if needed.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 4, 2018 at 8:20 am #693436Daniel
ok at the moment it works fine with the default menu… so i guess it would be easier just to place the three dots like here in the regular menu http://ostermann.doctor/
October 4, 2018 at 5:39 pm #693783Tom
Lead DeveloperLead DeveloperOk, so in that case, you would:
1. Activate the Elements module.
2. Create a new Hook element.
3. Add this content:<div class="mobile-bar-items"> Your three dot code with tooltips integrated. </div>
4. Set the
inside_navigation
hook.5. Set a Display Rule.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 5, 2018 at 8:46 am #694298Daniel
OK thanks… i installed the new elements … by the way great way to customize the header
But after setting the hook up i nothing happens… for testing i just tried the text and copy pasted the code but the mobile bar is still the same like before?!
October 5, 2018 at 9:54 am #694362Leo
StaffCustomer SupportCan you check if the display rule is set for the entire site?
I’m not seeing the content showing up.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 5, 2018 at 10:18 am #694375Daniel
i set the display rule to entire site yes!
October 5, 2018 at 7:05 pm #694615Tom
Lead DeveloperLead DeveloperThat’s strange. Any chance you can send me temporary admin login details so I can take a closer look?: https://generatepress.com/contact
Be sure to mention this topic.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 8, 2018 at 2:19 am #695891Daniel
i sent you the credentials
thanks so much for the support
October 8, 2018 at 11:33 am #696466Tom
Lead DeveloperLead DeveloperHi Daniel,
Sorry about this – we were having issues with our Account Issue form.
Can you send it again? All should be working now.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 8, 2018 at 1:05 pm #696551Tom
Lead DeveloperLead DeveloperSo the HTML does exist within the main navigation.
However, the mobile header is activated, so the main navigation isn’t displaying on mobile.
To insert that code into the mobile header, you would use the
inside_mobile_header
hook.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 19, 2018 at 11:09 pm #731670Daniel
Ok i think i manged it only with css… problem is it doesnt work on Iphones… i have no idea why.. i do know that is not a support issue but if you could take a quick look … this would be great…
ostermann.doctor ist the domain and the html and css is
<div class="mobile-bar-items "> <li class="tipClick"><a href="#"> <img src="http://ostermann.doctor/wp-content/uploads/2018/10/dots-vertical-nav-more-512.png" /> </a> <div class="tooltipB"> <a href="tel:+43-1-934 66 00"><i class="fa fa-phone" ></i> +43-1-934 66 00</a> <a href="https://www.google.com/maps/place/J%C3%B6rgerstra%C3%9Fe%2B11%2B1170%2BWien"><i class="fa fa-map-marker"></i> Jörgerstraße 11, 1170 Wien</a> <a href="mailto:ostermann@diepraxis-wien.at"> <i class="fa fa-envelope" ></i> ostermann@diepraxis-wien.at</a> </div> </li> </div>
/***** mobile contact info
*****************************
*******/.mobile-contactinfo {
background-color: #3a3a3a;
height: 41px;
}.mobile-contactinfo img {
height: 32px !important;
}.tipClick{
position:relative !important;
display:inline-block;
}.tipClick > .tooltipB {
display:none;
}
.tipClick > a:focus + .tooltipB {
display:block;
}.tooltipB {
background: white;
border-radius: 0.5rem;
padding: 1rem;
color: black;
float: right;
position:absolute;
right:1rem;
top: 3rem;
font-size:0.7em;
width:280px;
z-index:10;}
.tooltipB a {
font-size: 15px;
line-height: 38px !important;
}November 20, 2018 at 9:01 am #732376Tom
Lead DeveloperLead DeveloperWhat about it isn’t working exactly?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 20, 2018 at 9:16 pm #732928Daniel
on iphone nothing happens if you touch the three buttons… on all other phones it works and the pop up shows the contact info…
thanks for help
November 21, 2018 at 9:17 am #733568Tom
Lead DeveloperLead DeveloperIs there somewhere I can see this? Your site doesn’t seem to be using the mobile header?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.