Forum Replies Created
-
AuthorPosts
-
i managed to insertBefore a google map a checkbox – but i do not know how to avoid the click event.
i tried to change the attribut href on that confirmation window but it has no effect on loading the map.i did this in functions.php of my child-theme:
function add_checkbox(){ ?> <script> (function($){ $(window).load(function() { $('<input id="maps-consent" type="checkbox" name="maps-consent" label="ja - ich las die Datenschutzerklärung" /><label for="maps-consent" class="input_checkbox_label"> Ich akzeptiere den <a href="https://webers-testseite.de/weber/datenschutz/#google-maps">Datenschutzhinweis über Google Maps</a> <abbr class="required" title="benötigt">*</abbr></label>').insertBefore('.av_gmaps_confirm_link'); $('a.av_text_confirm_link').click(function(){return false; }); $('#maps-consent').click(function() { if(!$(this).is(':checked')){ $('a.av_text_confirm_link').bind('click', function(){ return false; }); }else{ $('a.av_text_confirm_link').unbind('click'); } }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_checkbox');
but it is awefully the other way round – it blocks the link on check.
I do not see the trees for the wood . How can i have it other way round ? Check then bind the event
have a look here: https://webers-testseite.de/weber/contact-2/-
This reply was modified 6 years, 8 months ago by
Guenni007.
but i think the best would be to have here a popup with a little checkmark that the privacy policy has been read.
like in contact form element. that would be great – only if the checkmark is checked the click has a function.well put the edited js in your child-theme js folder and add this to your child-themes functions.php
Test if it works:add_action( 'wp_enqueue_scripts', 'change_google_maps_front_script', 100 ); function change_google_maps_front_script() { wp_deregister_script( 'avia_google_maps_front_script' ); wp_enqueue_script( 'avia_google_maps_front_script-child', get_stylesheet_directory_uri().'/js/avia_google_maps_front.js', array( 'jquery' ), $vn, true ); }
June 14, 2018 at 11:47 am in reply to: YouTube video in color section background doesn't start #972783look on google search for the playsinline and webkit-playsinline – it seems to be correlating if a background video starts on autostart or not.
but i think that the input field of enfold video does not accept those parameters. So we had to add this on source code.
i will have a look if that will helpSee here how it works on advanced layerslider : https://webers-testseite.de/weber/
playsinline and muted parameters set – but this was a selfhosted videoand this f.e. will start on modern mobile browsers
<video playsinline autoplay loop muted preload="metadata" style="min-width:100vw; min-height:56vw;" > <source src="/wp-content/uploads/background.mp4" type="video/mp4"> <img src="/wp-content/uploads/film-fallback.jpg" title="Your browser does not support the video tag"> </video>
-
This reply was modified 6 years, 8 months ago by
Guenni007.
i think he is talking about that behavior: https://codepen.io/syedrafeeq/pen/eCkFt
here is a nice workaround how to get this with maybe code block element and some extra css: https://blog.kulturbanause.de/2013/10/css-flip-animation-objekte-umdrehen/
-
This reply was modified 6 years, 8 months ago by
Guenni007.
or do you have a transparent ( glassy header ) layout
see here some comments: this was a test page to show how to move title bar under the first section and with transparency option:
https://webers-testseite.de/breadcrump-under-first-color-section/1) you can create a custom menu on Dashboard Menu and name it as you like.
2) on widgets you can make a new widget area (no need to register a place where it is shown)
3) On your Enfold advanced layout builder you now can have for example a 1/3 2/3 column layout then.
Put in the 1/3 the widget everywhere an choose your custom menu:
you only have to style then that menu ( f.e. second level list points etc.)
yes – as i wrote here: https://kriesi.at/support/topic/red-cross-as-a-bullet/#post-966742
and by the way you get that \ sign by pressing the same time: shift+alt+7
sometimes the written description is as important as the code ! you missed the custom class setting – haven’t you?
June 12, 2018 at 2:45 pm in reply to: Enfold Child Theme makes the website no secure padlock #971683ctab-1.png and topbar.png are no enfold images ( that makes me wonder – because they seems to be in the enfold/images/ folder. )
On Source code the pngs aren’t found – so i think you have to install a database search tool like search and replace to find the source of the error.
Maybe if you login to your mysql and repair or optimise your database will solve the problem allready.
PS : seems to loaded via Greensock.js. – and this is part of advanced Layerslider – so have a look if you have on advanced layerslider ( maybe imported sliders) these linksso it should now work as expected with new enfold – but on performance reasons it would be better to outsource it to a third party server.
If you like to upload to youtube ( you can set it to not listed – so it would not be found on tags) this is a good option.
On GDPR reasons (DSGVO) it would be nice to have it not on youtube. My advice is to upload it to f.e. cloudinary – they got good performance and for small pages it is nearly with no costs (10GB upload and 20GB Traffic each month)
Cloundinary is listed in the privacy shield project of us Government that they will respect GDPR .there is a nice plugin to communicate in WordPress with your account etc. pp.
June 6, 2018 at 7:18 pm in reply to: How to Delete Enfold Logo on Site and Replace with Mine? #968011so why don’t you go to enfold (child) – header and choose “logo left – menu right”
what you got is logo left – menu belowJune 5, 2018 at 8:45 am in reply to: First Lawsuits (GDPR) are rolling – due to Google webfonts (how to deactivate?) #967064this is nice – but with my method of loading the fonts (link ff) and an addition little plugin (remove-google-fonts-references) i can select the fonts from Enfold drop down list to use the local installed fonts.
So for me it would be nice to actively run a script that supresses connection to google font servers (to get rid of that additional plugin) but to use that nice performant drop-down lists.Or to have the possibility to upload real font files to enfold via import as zip-file ( the downloadable fonts on google are only ttf files)
like these downloadable google fonts on : Link
But all tryings to upload these zip files with woff, woff2 etc do not have successi would do it with entypo signs
if you see this demopage: https://webers-testseite.de/bullets/
this is a text-block element with a normal unordered list. –i gave the text-block element a custom class: special-listpoints
.special-listpoints ul { list-style: none; } .special-listpoints li::before { content: "\e813"; font-family: entypo-fontello; color: #f00; } .special-listpoints li::before { content: "\e813"; font-family: entypo-fontello; color: #f00; position: relative; padding-right: 11px; margin-left: -20px; }
you see that you can play now a bit with for example on before font-size or top left etc
-
This reply was modified 6 years, 8 months ago by
Guenni007.
on google page there are only ttf to download.
have a look at: https://google-webfonts-helper.herokuapp.com/fontsJune 4, 2018 at 10:38 am in reply to: Enfold not GDPR compliant – Video with NoCookie from Youtube impossible #966418yes i know that – but i use a different google maps plugin. And the prevent loading roboto script does not work propper on that plugin.
If there are technical obstacles to integrate this variant, please say so. If this does not exist, it would be nice to let the user decide which version he likes to use. I think that to get rid of that DoubleClick Tracking-Cookie is positive enough to have that nocookie variant of youtube videos even if an ID is sent – and even if it is only an apparent security, the cookies that clearly violate the GDPR are banned.
June 4, 2018 at 9:58 am in reply to: Enfold not GDPR compliant – Video with NoCookie from Youtube impossible #966401so the only advice is at the moment to have no youtube/vimeo videos – no google Maps or Fonts on start page.
so if you like to show a background video / video on startpage it has to be a selfhosted video. After the cookie consent and the link to Privacy Policy is clicked away or read everything is ok. After informing the visitiors – everything can happen.
So both pages ( Start Page and Privacy Policy must be free with loading api/ setting cookies etc.For the first time i have all my website turned into selfhosted font sites – and have no map api loading on startpage ( because the api loads roboto font) and get so in contact with google servers.
-
This reply was modified 6 years, 8 months ago by
Guenni007.
to insert on menu an individual menu you had to input an url ( so here you can take your #). But after inserting you can empty that field on the menu point.
the link after kriesi is https is now: https://kriesi.at/themes/enfold-hotel/wp-content/uploads/sites/58/2015/07/ornament-bg-top-small-1.png
It is in the first color-section after the slider as background-image.
Just put in a different image from your media library and save – if you do not need any image there delete it afterwards and savetry this in your functions.php of your child theme with copy paste – maybe you got some quotationmarks faults etc.
if(!function_exists('avia_debugging_info')){ function avia_debugging_info() { // } }
check please if you have on child-theme a header.php – if so you had to know what you are changing there. take a new copy of the new header.php and edit it as you done it before.
Updated to Enfold 4.4
May 31, 2018 at 4:13 pm in reply to: Checkmarks in Performance – self hosted video – youtube video #964820thanks – Günter
for outside list-style-position:
Edit : ok there was a overflow setting which is set to not visible to widget ul so to see the outside points :
ul.squarepoints { list-style: square outside; margin-left: 18px !important; width: auto !important; overflow: visible !important; }
-
This reply was modified 6 years, 9 months ago by
Guenni007.
hm – there was rule in base.css :
ul { list-style: none outside; margin-left: 7px; }
don’t know why – maybe it is forgotten to set the specified rule for widgets
maybe you set better the ul to a custom class because not to influence all ul’s of your site like:<ul class="squarepoints"> <li>sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,</li> <li>sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</li> <li>Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur</li> </ul>
and then:
ul.squarepoints { list-style: square inside; margin-left: 7px !important; }
Thanks – and if i want to debounce a function it is used in Enfold like:
win.on( 'debouncedresize', function(){ …
without parameter or can i change the trashold on this function by:win.on( 'debouncedresize', function(){ … }, 50);
That is the best way to do – as i mentioned above.
Better search and replace looks similar to that search and replace ( source is Frank Bültge – who has created a lot of good tips and plugins) i mentioned above.Sehr wichtig für dich: Dein Cookie Consent Popup überlagert den Link zu den Datenschutzhinweisen. Das ist nicht zulässig.
Ich würde in dem Fall dann lieber die rechts unten Popup-Variante von Enfold ( oder was immer du nutzt ) nehmen-
This reply was modified 6 years, 9 months ago by
Guenni007.
Wenn du das neue enfold 4.4 hast kannst du ja in den Optionen den Layerslider mal deaktivieren. Dann wieder aktivieren. Eventuell setzt sich der Link dann auf https.
maybe this is concerning to a comment i gave on a different topic:
i have uploaded the zip i got from google with a lot of font-styles in it ( 300,400,600,700 and all italic too)
but on selection there is only a 400 font-style mentioned – maybe the others are selectable too via css .i think your code is correct – anyway you can test this in your functions.php of your child-theme:
function avia_custom_mobile_logo(){ if(wp_is_mobile()){ ?> <script> jQuery(".logo img").attr("src", "https://www.domain.com/wp-content/uploads/logo-for-mobile.png"); </script> <?php } } add_action('wp_footer', 'avia_custom_mobile_logo');
or with the filter :
add_filter('avf_logo','mobile_logo_url'); function mobile_logo_url($url){ if(wp_is_mobile()){ $url = "https://www.domain.com/wp-content/uploads/logo-for-mobile.png"; } return $url; }
-
This reply was modified 6 years, 8 months ago by
-
AuthorPosts