-
AuthorPosts
-
May 3, 2020 at 9:40 pm #1209339
Hello,
First of all – great theme, possibly the best one. And secondly fantastic support!
Now, I have tried to solve this issue with the people responsible for this code, but we couldn’t find the solution. Than, I thought, maybe some of you guys would have an idea since you basically solved most of the problems I had while using Enfold theme.
I am working on the website pronto.tirol, restaurant that accept online orders through Gloriafood online ordering system. I got this piece of code from them to implement as online ordering button:
<!– If you would like to customize the button, remove or change the “class” attribute inside the <span> tag –>
<span class=”glf-button” data-glf-cuid=”9461a941-35b6-4a22-bc0a-583a3fccdea4″ data-glf-ruid=”24e08988-acb5-4a57-a1dd-f329de1b2009″ style=”background-color: #9a242c; letter-spacing: 0.05em”> SPEISEKARTE & Bestellung</span>
<script src=”https://www.fbgcdn.com/embedder/js/ewm2.js” defer async ></script>And this works when I use Enfolds Code Block element to show this button, as you can see at the pronto.tirol/pizzeria page. After clicking to this button I get some kind of pop-up window with menu and online ordering system.
But, now I would like to add this link to the menu item as a custom link, and also to one image. I got this link:
https://www.foodbooking.com/ordering/?restaurant_uid=24e08988-acb5-4a57-a1dd-f329de1b2009
The problem is that this link is opening new page in the same window and tab and thus navigating away from the website.
Is there a possibility to open this link – when added to the menu item or image, or even text – to open inside it’s own pop-up window above the page (much like Lightbox Modal Window) and not to navigate away from the current page? Or maybe there is the possibility to ad Custom Code element to the button, image, etc.
Thanks
IvanMay 4, 2020 at 7:51 pm #1209691Hey Simijonovic,
Glad you enjoy using Enfold :)
You can go to Appearance > Menu and add a custom link to the menu:
Add this link https://www.foodbooking.com/ordering/?restaurant_uid=24e08988-acb5-4a57-a1dd-f329de1b2009&iframe=true and use any text that you like. You can even style it as a button later.Best regards,
VictoriaMay 4, 2020 at 9:02 pm #1209726Hello Victoria,
That worked, thank you.
Is there a way to change the height of the light-box? Because now the menu is hardly visible, and ordering is difficult.EDIT:
Nevermind, I have found this. and it works for now:
.mfp-iframe-scaler {
min-height: 888px;
}Cheers
Ivan- This reply was modified 4 years, 7 months ago by Simijonovic.
May 5, 2020 at 9:11 am #1209851 -
AuthorPosts
- You must be logged in to reply to this topic.