WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Preorder › Support › Text before articels not workin
- AuthorPosts
- 24 March, 2016 at 1:51 am #16821
Hello Olly,
it’s me again 🙂 Think I found a bug again …
1. Activated the preorder module
2. Choose: Text before Menui Articles
3. FIlled in the custom text in localisation
4. Its not showing up 🙁Versions of Plugins:
Preorder:1.5
Wp Pizza: 2.16.8
Multisite INstallation
ALl othe Extenstions (always the newest Versions) installed too.Hope these screenshots help.
Thx so much again for your help!!!
24 March, 2016 at 2:21 am #16822works fine here. can i have a link to the site please
24 March, 2016 at 9:16 am #16830This reply has been marked as private.24 March, 2016 at 10:28 am #16831Oh and one more thing … in the basket case widget the “showing of the opening times” stopped working too … not related to the original problem i Think, but before i open another thread i thought i post it here … 😉
24 March, 2016 at 11:11 am #16832Sorry … forget it ! With the basket case showing opening times : My mystake 🙂
24 March, 2016 at 12:47 pm #16833>just drop me a line here and i close it then
now would be good if you want me to have a look..let m eknow
24 March, 2016 at 1:12 pm #16834i don’t think i need your shop to be closed actually as I think i know where your problem is.
as you are caching pages, the text we are talking about gets insert dynamically via js above the first element with class “wppizza-article”.
for reasons only you will know you have added ALL items additionally into a hidden div. as your first element with class “wppizza-article” is in there, i suspect the text you are “missing” is added there.
as the whole div/form is hidden that text is hidden toothe items you have in that hidden div, are also missing certain id’s in the class names which will stop some other things from working btw (though that in itself has nothing to do with the issue at hand, you’ll just have problems elsewhere at some point)
PS: entirely up to you, but i somewhat question the wisdom of having all items everywhere but hidden .
not only will it effect your load times, but also will you end up with elements with the same id and I would think searchengines won’t be too happy either if 70%+ of your page is actually hidden from the user (though that’s just a semi-educated guess)24 March, 2016 at 1:36 pm #16835Hey Olly,
thanks for the help. Yeah I think I see the problem. I think what you mean are the items in the “Pizza Butler” … it is hidden first and then it is sort of a “tag/find/help thing” for customers to find what they like.
And maybe you know a way not to show ALL the items in the beginning, but to show NONE. I think that would help. I will paste the code for the results of the “Pizza butler” here and if you maybe have a hint what i can do ? (I hope it is ok to ask – I think you are the way better coder than me 😉 )
This is “the results” code:
[code deleted by admin as it’s kind of unhelpful and people would get the wrong idea as there are cleaner and much better ways to add the loop results elsewhere. sorry]
24 March, 2016 at 1:46 pm #16836sorry, but i really cannot help you there.
i know nothing about your pizza butler.the only idea – of the top off my head – for you would be to add a dummy element with class=”wppizza-article” somewhere before your butler so the text would get inserted there
(maybe you can re-position that element with css to make it then appear elsewhere)24 March, 2016 at 2:00 pm #16837Ok no Problem … Thx for having a look anyway!!! 🙂 🙂 🙂
Maybe you have an additional hint for me, what the “cleaner and much better ways to add the loop results elsewhere” are? So I can have a look and try to add it better ?
24 March, 2016 at 2:28 pm #16838in theory (though not tested with your scenario) perhaps a simple
<?php echo do_shortcode('[wppizza category="!all"]') ?>
might do the job ?
again – just an idea.
24 March, 2016 at 3:01 pm #16840just updated the preorder plugin and added an option to set a specific id where to insert that text (see in options of the plugin). that should help you to put it wherever you want to put it
(might also be helpful in other scenarios)
24 March, 2016 at 3:16 pm #16841You are the best! 🙂 Thank you very much!
26 March, 2016 at 1:32 am #16860Just a quick feedback: Worked like a charme 🙂 Wonderful! Thx a lot !!!!
- AuthorPosts
- The topic ‘Text before articels not workin’ is closed to new replies.