Forum Replies Created

Viewing 30 posts - 2,431 through 2,460 (of 11,696 total)
  • Author
    Posts
  • in reply to: 2 indentical Google fonts loading? #1401732

    but that’s already complaining on a very high level, isn’t it? Gtmetrix values of nearby 100% ;)
    A TTBF at 83ms – that are top values – so what ?
    As I said, I would rather worry about the compliant GDPR implementation.

    for example now – my results on top are nice too – but why does it wait so long after everything is loaded to load the last 30kb of the favicon? a good 200-300ms pass before loading the last file. And this caused a “bad” TTLB value.

    in reply to: Sitespeed Slow (TTFB +10 seconds) #1401731

    there are many factors that can influence the TTBF values. Go and test your page on : gtmetrix.com
    you can see on waterfall tab more info on how the influence is for TTBF:
    Hover that first line on Waterfall where / is – a tooltip with more info opens.

    in reply to: Animated SVGs #1401729

    @cocoagroup : did you test the SVGator Plugin ?

    in reply to: Animated SVGs #1401719

    i tested it now on a different page – it does not work there – don’t know why

    maybe you had to choose a different way to implement the animation inside that svg : see https://www.svgator.com/tutorials/how-to-add-svg-animation-to-wordpress

    in reply to: Animated SVGs #1401714

    sadly no way to go that quick and dirty solution.

    • This reply was modified 2 years, 7 months ago by Guenni007.
    in reply to: 2 indentical Google fonts loading? #1401670

    that screenshot of kriesi.at dev tools – what browser is it? Chrome?

    on kriesi too these are different unicode-ranges
    and once – there you are right: different sources googleapis and gstatic – that is not neccessary.

    in reply to: 2 indentical Google fonts loading? #1401668

    these are not identical the same fonts:

    memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2
    memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2

    if you upload those files to : https://wakamaifondue.com/beta/
    you see that the first one is a open sans regular (45kb) – the second one is too a open sans regular but with different localisation:
    Catalan, Marshallese, Macedonian, Romanian; Moldova, Navajo, Romanian, Serbian, Undetermined; North American Phonetic Alphabet and Undetermined; International Phonetic Alphabet.
    It only has special cyrilic characters:

    Why there is that additional character set loaded – i could not imagine.

    Next – i will look now to kriesi.at – but i guess that these three fonts are the font-weights light, regular and bold.

    in reply to: 2 indentical Google fonts loading? #1401661

    I don’t know how strictly the General Data Protection Regulation is applied in the Netherlands. I didn’t want my clients to have to fight a civil suit. Google Analytics is one thing that is absolutely not GDPR compliant and can only be loaded after consent. An afterward option to install a gaoptout addon is nice but even that is not GDPR compliant: first consent – then load

    in reply to: 2 indentical Google fonts loading? #1401660

    where do you exactly see that f.e. kriesi.at or your experimentkrewerd.nl does load Open+Sans twice
    there is once the script that decides if the font could be loaded – if there is a consent.
    so – if (cookie_check && !silent_accept_cookie) … and inside a lot of if clauses that has allow_continue = false next – only if (allow_continue) = true then load font.
    the next line in head it loading the font itself.

    So what you could say is that kriesi and your site do not respect the cookie consent setting. Or you have set them incorrectly. Or when I look at Krisie.at, no value is placed on GDPR. Because without having rejected or agreed to anything, a huge list is displayed which are all not GDPR-compliant.

    _________

    The safest way to deal with the font issue in terms of the GDPR is to host it yourself.
    And that’s exactly what this code from Ismael or the alternative filter from me is for. It prevents the embedded handling of Enfold with Google Fonts.
    Then you had to upload via Enfold Font Manager your Open Sans Font – and choose that font ( selfhosted Fonts are at the end of the fontlist ) in Enfold Font Options dialog.

    in reply to: 2 indentical Google fonts loading? #1401560

    Next – do you use the advanced Layerslider on that page?
    The layerslider has its own google font support – have a look if that could be the reason:
    on layerslider options page – see on top right that gear : click – and see if there is google font support activated.

    in reply to: 2 indentical Google fonts loading? #1401559

    first: can you remove this from ismael – i used that code long time to do the same thing – but i recognised on some pages that i update to the latest php Versions that it might come into conflict.

    function my_output_google_webfonts_script( $activate ){
      return false;
    }
    add_filter( 'avf_output_google_webfonts_script', 'my_output_google_webfonts_script', 10, 1 );

    instead of:

    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }
    add_action( 'init', 'enfold_customization_switch_fonts' );

    _________
    of topic for the one public link:
    second: – besides the page link (i do not see as participant) where your fonts are loaded : i see on the other page that there is no Consent to any of your features you use for that page.

    third: i can not see any @font-face rule in your css – did you upload the open sans font to the font-manager of Enfold ?

    next: the google maps could not cause that font-loading with open sans. Google Map loads “Roboto” and “Google Sans Text”
    maybe one of your other Google Things ( Analytics etc. )
    if you want to hamper loading of these fonts for maps :
    add_filter( 'avf_gmaps_no_google_fonts', '__return_true' );

    in reply to: Open Lightbox on lick on any image in product gallery #1401558

    you can do that by css only. Just stretch the width and height of that span container and place the pseudo container again to the bottom right position – or set if you like the before container to display none:

    .show_lightbox .nslick-current.nslick-active span.nickx-popup {
      display: block;
      width: 100%;
      height: 100%;
      left: 0;
      bottom: 0;
      padding: 0;
    }
    
    .fa-expand::before {
      content: "\f065";
      position: absolute;
      right: 15px;
      bottom: 15px;
    }

    if this comes into conflict with other places in your page – you had to be then more specific in selectors. f.e. only for #top.single-product

    $(window).load(function() { is outdated since jQuery 3

    function inline_popup_enabler(){
    ?>
    <script>
    (function($){
    	$(window).on('load', function(){
    		$('.inline_popup').magnificPopup({
    			type:'inline',
    			midClick: true,
    			disableOn: 100,
    		});
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'inline_popup_enabler');
    in reply to: eigene Schrift einbetten #1401545

    Once again about Cufonfonts; not all fonts offered there are legal. Many design fonts are distributed there without the appropriate licenses. This is like using so-called “nulled” themes.

    Apart from that, if you have purchased the licenses, you can use any font in Enfold. You just have to check if your license includes web use. Then you are allowed to convert e.g. a ttf or otf file yourself. I use this site here: https://transfonter.org/
    _______

    i use it to generate webfonts – and i do only use ttf and woff2 – and without demo-files ; all modern browsers do work with woff2 – and because of brotli compression these files are smaller than all the other ones. The fontmanager of Enfold now generates the right sequence of @font-face rules – first woff2 then if not possible the rest. So the ttf is only for older browsers included in the upload.

    The zip-file offered then is usable in principle and could be uploaded directly to Enfold in the font manager.
    However, I recommend to rename the zip file sensibly. z.B: MyriadPro.zip
    The font-family name is build from included font-file name – but Enfold Font list name will be that of the zip file.

    in reply to: Open Lightbox on lick on any image in product gallery #1401492

    is there a link to your gallery – or is there a page of the demo that is similar to your gallery? https://kriesi.at/themes/enfold-shop/

    in reply to: Problem changing Footer Background Color (BUG?) #1401468

    Nevertheless – there must be an error causing this. On default – this is perfectly managed by enfold options dialog.
    on all my 5.4.1 Versions there is no such behavior.

    in reply to: Animated SVGs #1401466

    looking to your svg – there are a lot of script inline. if you insert your svg code via codeblock to enfold – the animation will work.
    on an img file – i guess the script part will not work as expected.
    as background-image – this will be lost too. On Svgator you can export your animation to gif – maybe that is an alternative vor you.
    By the way : next Enfold will offer lottie file support. These are svg / json “images” you can insert to Enfold.

    in reply to: Problem changing Footer Background Color (BUG?) #1401385

    there must be a reason for that . this is not default behavior.
    do you have any caching tools/plugins that can influence this?
    Those color settings are now saved as varible colors in a list- you can inspect that in developer tools


    have a look if that rule for the footer colors is that of your settings in enfold.

    try that rule in your quick css:

    #top #footer {
      background-color: var(--enfold-footer-color-bg);
    }
    in reply to: Problem changing Footer Background Color (BUG?) #1401346

    have a look if you got a css rule in your css like:

    #footer {
      background-color: var(--enfold-header-color-bg);
    }
    in reply to: Restart animations when back in viewport #1401345

    Yes – some animations – like the reveal animation – create extra child containers – then the target will be different.
    but nevertheless on f.e. simple left to right – it works sometimes – sometimes not – so the code is useless.
    So – a developer had to look for it – if there is a chance to “refresh” those keyframe animations.

    in reply to: Restart animations when back in viewport #1401309

    maybe a mod knows why on some animations the “trick” will not work.
    it sometimes only removes not all classes from all ( each ) observed element.

    function refresh_enfold_keyframe_animations() {
    ?>
    <script type="text/javascript">	
    	const hiddenElements = document.querySelectorAll('.av-animated-generic');
    	const observer = new IntersectionObserver((entries) => {
    	    entries.forEach((entry) => {
    	        if (!entry.isIntersecting) {
    				entry.target.classList.remove('avia_start_animation', 'avia_start_delayed_animation');
    	        }
    	        else {
    	        	return;
    	        }
    	    })
    	})
    	hiddenElements.forEach((element) => observer.observe(element));
    </script>
    <?php
    }
    add_action('wp_footer', 'refresh_enfold_keyframe_animations', 9999);

    see: https://enfold.webers-webdesign.de/category-header/

    But why ?
    this is typographically correct – have a look to a Sentence where all round Letters on the bottom ( o, e, c, etc ) are on the same line like the n, m, z etc.
    This looks horrible. The same here.

    on to it is not even half n-dash it is just nearby the stroke width.

    You can try that yourself
    duplicate your heading and after the line break (br-tag) insert &nbsp; and compare

    or start your second line with an A too! Just to see what happend to second line

    do you really believe that there is a whitespace ?
    This seems to be normal typographic behavior – for example : Carmen Sans ( not the same font but nearby ) – see first two lines without whitespace after break
    and at the end with a whitespace:
    ( i just activated those lines that you can see the alignment better )

    You see that a blank space in typography is a quarter square. ( half n-dash space )
    this is like fonts in that the baseline of curves is always slightly below the straight lines of a font.

    in reply to: Custom Header – Logo center menu left and right #1401225

    here is another way to get it.
    Starting point is – header setting: logo left – menu right !

    the rest with snippet for child-theme functions.php and quick css is all on that page: https://pureinstall.webers-testseite.de/logo-centered/

    that method provides a way to have shrinking header too !

    _________________

    btw. you can do that manually – by inserting the logo as image in your menu ( that is what the script does )
    This can be done by inserting the image src code to the Menu Label. – for better selecting that Menu-Item give a custom class to it ( all can be done in Menu Options )
    The Rest is quick css – like you find it on that page if you break to hamburger on 989px the min-width media querry had to be adjusted to 990px

    in reply to: Use a custom font on one page only #1401200

    try:

    #top .post-entry.post-entry-8977 * {
      font-family: "dkbeuclid", Helvetica, Arial, sans-serif !important;
    }

    the other sections – and footer etc are untouched on that rule – otherwise take #top.page-id-8977

    in reply to: Avia Layout Builder Issue #1401199

    What exactly do you mean by “does not load”
    because i see that you have used color-section, columns etc. pp.

    in reply to: Body CSS greift nicht #1401197

    Die Body Schrift wird im Allgemeinen über die Schriftart, die du in Enfold gewählt hast definiert.
    Die Schrift, die du bei : Allgemeines Styling – Schriften gewählt hast geht als z.B
    body.roboto … in das css child.css ein:

    body.roboto {
      font-family: 'roboto';
    }

    Wenn du es also global ändern möchtest – Dort würde ich es setzen – ohne es mit css zu versuchen.
    ____________________

    Solltest du jetzt auf einer bestimmten Seite nur diese globale Setzung überschreiben wollen, so musst du dort diese Anweisung überschreiben. Also entweder die andere Schrift auf !important dort setzen oder eine höhere Spezfität der Regel haben.
    Wizigerweise würde es denk ich reichen, wenn du statt body #top nimmst also:

    #top.page-id-123.roboto {
      font-family: “gineso-condensed”, sans-serif;
    }

    oder einfacher, weil es wohl ausreicht :

    #top.page-id-123 {
      font-family: “gineso-condensed”, sans-serif;
    }
    in reply to: Restart animations when back in viewport #1401196

    a jQuery Option could be to have intersectionObserver and give to elements that comes into viewport a class – and if they are out remove that class.

    see here f.e. the headings: https://webers-web.info/

    example code could be:

    function observe_headings_on_homepage() {
    ?>
    <script type="text/javascript">	
    	const wrappers = document.querySelectorAll(".av-special-heading")
    	const targets = document.querySelectorAll(".av-special-heading-tag")
    	const animClass = ["in-view"]
    	
    	const observer = new IntersectionObserver((entries, observer) => {
    		entries.forEach(entry => {
    			const currentIndex = Array.from(wrappers).indexOf(entry.target)
    				if (entry.isIntersecting) {	
    					targets[currentIndex].classList.add(animClass);	
    				} 
    				else {
    					targets[currentIndex].classList.remove(animClass);
    				}
    		})
    	}, {
    		root: null,
    		threshold: 0.1,
    		rootMargin: "-120px 0px -100px 0px",
    	});
    
    	wrappers.forEach(wrapper => {
    		observer.observe(wrapper)
    	});	
    	
    </script>
    <?php
    }
    add_action( 'wp_footer', 'observe_headings_on_homepage' );

    for that page above i set then the css in quick css:

    .heading-animation .av-special-heading-tag .heading-wrap,
    #top.privacy-policy .heading-animation .av-special-heading-tag {
        transform: scale(0);
        transform-origin: center center;
        opacity: 0;
        transition: 0.5s all ease;
    }
    
    .heading-animation .av-special-heading-tag.in-view .heading-wrap,
    #top.privacy-policy .heading-animation .av-special-heading-tag.in-view {
        transform: scale(1);
        transform-origin: center center;
        opacity: 1;
        transition: 1s all ease;
    }

    you can do that with columns etc.

Viewing 30 posts - 2,431 through 2,460 (of 11,696 total)