CAMBIAR IDIOMA DE CALEMDARIO EN ELEMENTOR

/**
* Traducción de los textos de calendario
*/
add_action(‘wp_footer’, function () {
if ( is_page( 112 ) ) {

// Do this

} elseif ( is_page( 118 ) ) {

// Do that

} else {

return;
}
?>
<script>
jQuery( document ).ready( function( $ ){
function waitForFlatpicker( callback ) {
if ( typeof window.flatpickr !== ‘function’ ) {
setTimeout( function() { waitForFlatpicker( callback ) }, 2 );
}
callback();
}
waitForFlatpicker( function(){
flatpickr.l10ns.pt = {
weekdays: {
shorthand: [“Dom”, “Lun”, “Mar”, “Mier”, “Jue”, “Vie”, “Sab”],
longhand: [
“Domingo”,
“Lunes”,
“Martes”,
“Miércoles”,
“Jueves”,
“Viernes”,
“Sábado”,
],
},
months: {
shorthand: [
“Ene”,
“Feb”,
“Mar”,
“Abr”,
“May”,
“Jun”,
“Jul”,
“Ago”,
“Sep”,
“Oct”,
“Nov”,
“Dic”,
],
longhand: [
“Enero”,
“Febrero”,
“Marzo”,
“Abril”,
“Mayo”,
“Junio”,
“Julio”,
“Agosto”,
“Septiembre”,
“Octubre”,
“Noviembre”,
“Diciembre”,
],
},
rangeSeparator: ” até “,
};
//set translations
flatpickr.localize(flatpickr.l10ns.pt);
flatpickr(‘.elementor-date-field’);
//set format
setTimeout( function(){
$(‘.elementor-date-field’).each(function(){ flatpickr( $(this)[0] ).set(‘dateFormat’, ‘d/m/Y’);});
}, 1000 );
});
});
</script>
<?php
} );

Entradas relacionadas

33 comentarios

  • I want to to thank you for this good read!! I certainly loved every little bit of it. I have got you bookmarked to check out new stuff you post…

  • This website really has all of the information I wanted concerning this subject and didn’t know who to ask.

  • I would like to thank you for the efforts you have put in writing this blog. I am hoping to view the same high-grade content from you in the future as well. In fact, your creative writing abilities has encouraged me to get my own, personal website now 😉

  • Oh my goodness! Amazing article dude! Many thanks, However I am having difficulties with your RSS. I don’t understand the reason why I am unable to join it. Is there anyone else getting identical RSS problems? Anyone that knows the answer can you kindly respond? Thanks.

  • Your style is so unique compared to other folks I’ve read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I will just book mark this blog.

  • When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get 4 emails with the same comment. There has to be an easy method you can remove me from that service? Thanks a lot.

  • Hi, I do believe this is an excellent site. I stumbledupon it 😉 I may come back once again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

  • It’s difficult to find knowledgeable people in this particular subject, but you sound like you know what you’re talking about! Thanks

  • Very good post. I definitely love this website. Continue the good work!

  • Spot on with this write-up, I absolutely believe that this site needs a great deal more attention. I’ll probably be returning to see more, thanks for the info!

  • This excellent website definitely has all the info I needed about this subject and didn’t know who to ask.

  • Aw, this was a very nice post. Taking the time and actual effort to create a top notch article… but what can I say… I hesitate a lot and never seem to get nearly anything done.

  • Hi there! This post could not be written any better! Looking through this post reminds me of my previous roommate! He continually kept preaching about this. I most certainly will send this information to him. Fairly certain he’ll have a good read. Thank you for sharing!

  • Good article! We will be linking to this great article on our site. Keep up the good writing.

  • You made some really good points there. I looked on the internet to find out more about the issue and found most individuals will go along with your views on this web site.

  • I really love your website.. Excellent colors & theme. Did you create this website yourself? Please reply back as I’m wanting to create my own site and would love to find out where you got this from or exactly what the theme is called. Thanks.

  • Good information. Lucky me I ran across your blog by chance (stumbleupon). I’ve bookmarked it for later!

  • I couldn’t refrain from commenting. Exceptionally well written.

  • Very good article! We will be linking to this great post on our website. Keep up the great writing.

  • Hi, I do think your website could be having browser compatibility problems. Whenever I look at your blog in Safari, it looks fine however when opening in I.E., it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Aside from that, great website!

  • You’re so awesome! I do not think I’ve truly read through a single thing like this before. So nice to find someone with unique thoughts on this subject matter. Really.. thanks for starting this up. This website is something that is required on the internet, someone with a little originality.

  • I used to be able to find good advice from your content.

  • I love reading through an article that can make people think. Also, thank you for permitting me to comment.

  • I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you’ve hit the nail on the head. The problem is something not enough people are speaking intelligently about. Now i’m very happy I found this during my hunt for something relating to this.

  • Excellent article. I certainly love this website. Continue the good work!

  • You have made some good points there. I checked on the net for more info about the issue and found most people will go along with your views on this site.

  • Great blog you have here.. It’s difficult to find quality writing like yours these days. I truly appreciate individuals like you! Take care!!

  • After I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I receive 4 emails with the exact same comment. Is there a way you are able to remove me from that service? Many thanks.

  • Everyone loves it when folks come together and share ideas. Great website, continue the good work.

  • Your style is so unique in comparison to other people I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just bookmark this page.

  • Can I simply just say what a comfort to uncover a person that genuinely knows what they are talking about on the internet. You certainly realize how to bring a problem to light and make it important. More people must read this and understand this side of your story. I was surprised you’re not more popular given that you certainly possess the gift.

  • Rattling fantastic info can be found on web site.?

  • hello there and thank you for your information – I have certainly picked up anything new from right here.
    I did however expertise some technical issues using this
    website, since I experienced to reload the website lots of times previous to I could get it to load correctly.
    I had been wondering if your web host is OK? Not that I am complaining, but
    slow loading instances times will often affect your placement in google and can damage your
    high quality score if advertising and marketing with Adwords.
    Well I’m adding this RSS to my email and could look out for much more of your respective interesting content.

    Make sure you update this again soon..