Forum Replies Created
-
AuthorPosts
-
Hi Ismael, thank you for your answer.
As I understood, the enfold theme use two kind of API, geocoding and JavaScript Map API.
in this moment i set up the quota in this way:
Map loads per day 900
Map loads per 100 seconds 50
Map loads per 100 seconds per user 10is this a safe way to keep the service free? (900 *31 days = 27900)
and the geocoding
Map loads per day 1200
Map loads per 100 seconds 50
Map loads per 100 seconds per user 10
(1200 * 31days = 37200)Now the only problem is when i add new “google map” element into a page, it says “to many request together, please try later”
But i did not reach 1200 (or 900) calls for today, now is giving me the error on the fist page i want to create with a map, so i really don’t understand why i’m out of the quota, can you advice two safe quota for the relative APIs to set up?following
June 28, 2018 at 3:39 pm in reply to: Avia builder – Grid row – padding appears also when you set to 0 #978920i answered my self alone.
the problem was that i was adding an image element into the row, instead the correct procedure is to put a background image directly into the row and select “extend the image to cover all the width”
sorry :)
June 28, 2018 at 3:29 pm in reply to: Google maps – "For development purposes only" printed on the map #978915you need to request an API to google maps and copy and paste the API key into the theme’s options.
Pay attention that google maps is charging users for using maps, you have like 900 loads a day for free then you pay, you can set the quota into the google cloud console where you’ll get the api key.
Thank you Ismael, now it’s working fine!
Thank you for all your patience and help.
Marco
hi ismael, thank you for answering.
i changed the permalink into wpml to see if something would change.
maybe i’m not able to describe well the problem, so i made three screenshots one for each language to let me explain better:as you can see, using the code block in wpml pages is working only for italian (main language of the website). also the color of the button is from the french function.
I saw the “test script” page you made, in the front page it’s showing three modules, at a first look seems to work, but:
1) the three codes are in the same ITALIAN WMPL page, if you translate the page and put one of the code it will not show
2) language of the modules are mixed each other like half in italian half in french and non english
3) the button colors should be 3 different colours, instead of the french function color ( i used 3 different colours to see if the call to the functions is really call that specific function)so this is driving me crazy, can’t understand if this stuff is not compatible at all with WPML or it’s just a question of coding.
hope you can now understand my view.
Thank,
MarcoThank you ismael for your patience, unfortunately i got the same problem:
these are the tries i did now to understand what is not working:
WPML: edited the way permalink are shown, from ?lang=en to “subfolder” mode /en/
Wordpress: re saved permalink option
functions.php: changed the color of the parameter themeActionColor: “#randomhex”; for the three functions, so we can see which one is loaded.
Edited the “welcome” page in all of the three languages:
Italian is calling: <div class=”quickSearch_it”></div>
french is calling: <div class=”quickSearch_fr”></div>
english is calling: <div class=”quickSearch_en”></div>but the result is shown ONLY into the italian language front-page. Also, the content is mixed, cause i see this:
As you can see, button and labels are written in italian, “night” is written in french “nuit” and the color of the button is from the function of the french part #db0d5c
what is happening :(
Hi guys, finally the website adopted the new booking engine we talked before.
Just one question, this script is in just one language, as you can see in this row:
language: ‘it’,The website is running WPML, so i tried to do this, unfortunately without success:
added other two code block into the functions.php changing the language tag, and the name of the function:
jQuery(‘.quickSearch_en’).HNetBOL({
…
language: ‘en’,
…jQuery(‘.quickSearch_fr’).HNetBOL({
…
language: ‘fr’,
…then call the function into the page with the code block:
<div class=”quickSearch_en”></div>
or
<div class=”quickSearch_fr”></div>but this is not working. the scripts are called all together and the result is that language are mixed together into the front view.
How do i separate functions and call one by one?
Thank you
ok thanks :)
i opened a post [SOLVED] to help all the others, but i saw they continue to open new topics lol.
Anyway, no problem.
thank you
Overwriting the new enfold theme on the current theme i get this error just visiting the home page (the home page contain the masonry -> source category post item)
Fatal error: Cannot redeclare av_countdown_events_fallback() (previously declared in D:\xampp\htdocs\infrweb\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\events_countdown.php:10) in D:\xampp\htdocs\infrweb\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\events_countdown\events_countdown.php on line 12
I just uploaded a old backup (november) of the enfold folder, version 4.2, everything is working.
it was working until i updated the theme to the last version :(
something is changed, i will revert to a backup as i don’t know how to solve this.Thank you for your post Webbmekanikern, i tried to add your code to functions.php into the child theme but when i save i got this error:
Uncaught Error: Class ‘AviaBuilder’ not found in D:\xampp\htdocs\infrweb\wp-content\themes\enfold-child\functions.php:8
Stack trace:
#0 D:\xampp\htdocs\infrweb\wp-settings.php(424): include()
#1 D:\xampp\htdocs\infrweb\wp-config.php(91): require_once(‘D:\\xampp\\htdocs…’)
#2 D:\xampp\htdocs\infrweb\wp-load.php(37): require_once(‘D:\\xampp\\htdocs…’)
#3 D:\xampp\htdocs\infrweb\wp-admin\admin.php(31): require_once(‘D:\\xampp\\htdocs…’)
#4 D:\xampp\htdocs\infrweb\wp-admin\theme-editor.php(10): require_once(‘D:\\xampp\\htdocs…’)
#5 {main}
thrownthank you for your answer.
i disabled the word fence who is the only plugin who can prevent the execution of some file, but nothings change.
Also, i checked into the wp-content/uploads/dynamic_avia
for some .js file, but i have only three files calledenfold.css
enfold_child.css
index.phpso this looks pretty strange comparing to the post you suggest to take a look at.
Marco
Hi,
first of all, thank you. i would never understand how to make it works.I saw you edited function.php into child theme, this means that i can update the main theme without problem, can I?
also, i commented the debug mode call, i can see the script working anyway.I don’t have the ability to understand exactly how you manage this, but it works, and i should not touch it.
Thank you again.This reply has been marked as private.Hi Ismael and thanks for the advice.
You mean “it should work” just pasting inside a code block that script?
Without do anything with the jquery call i posted in the #post-911267?Or i have in any case load the google jquery?
Thank you.
Marcothis is the embed code that i need to let it work:
<div class=”quickSearch”></div>
<script src=’https://scripts.resasecure.net/serv_jScript/webLibraries/js/ext/HNEwidget.js’></script>
<script type=”text/javascript”>
jQuery(document).ready(function () {
jQuery(‘.quickSearch’).HNetBOL({
hotel: (hotelcodehere),
hasPromo: false,
maxNights: 30,
maxAdults: 4,
maxRooms: 4,
maxChildren: 3,
maxChildAge: 12,
language: ‘it’,
forceVertical: false,
hasBestPrice: true,
availableDate: ”,
themeActionColor: ”,
themeActionTextColor: ”,
hideBestPriceAfter: 30
});});
</script>
ok let’s see the question from above.
I need to let work that script for showing a booking form, they asked me to include that code i pasted before, this is a must have requirement?
or i can show any js code making it work with the local libraries already loaded in the website?January 31, 2017 at 1:52 pm in reply to: Wordfence found a suspected malware in an Enfold .php file #740620done, thank you.
I should copy this:
add_filter(‘avf_default_icons’,’avia_replace_standard_icon’, 10, 1);
function avia_replace_standard_icon($icons)
{
$icons[‘standard’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue915’);
return $icons;
}into function.php in the child folder? (i’m using a child theme)
-
AuthorPosts