Forum Replies Created

Viewing 30 posts - 2,581 through 2,610 (of 11,513 total)
  • Author
    Posts
  • in reply to: Host Web Font yourself … some info #1371287

    @thinkjarvis : Looks really good. Meanwhile I only go to offer woff2 and as fallback the original ttf.
    Karla is also a variable font. Therefore I have now tried the following:
    Load Karla static and set it as default in Enfold Dialog. Upload the variable Font aswell.
    Then via quick css the following.

    @supports (font-variation-settings: normal) {
      body.karla {
        font-family:'karla-variable';
      }
      
      #top.karla h1,
      #top.karla h2,
      #top.karla h3,
      #top.karla h4,
      #top.karla h5,
      #top.karla h6,
      #top.karla .title_container .main-title,
      #top.karla tr.pricing-row td,
      #top.karla  .portfolio-title,
      #top.karla .callout .content-area,
      #top.karla .avia-big-box .avia-innerbox,
      #top.karla .av-special-font,
      #top.karla .av-current-sort-title,
      .html_elegant-blog #top.karla  .minor-meta,
      #top.karla #av-burger-menu-ul li {
        font-family:'karla-variable';
        font-weight:600;
     }
    }

    see Karla in action with that “fall-forward” ;). if the browser supports variable fonts: https://consulting.webers-testseite.de/

    in reply to: Important change request for avia_google_maps_api.js! #1371221

    maybe a force to enque it in header ( in_footer : false) brings the effort.
    the script from above had to be loaded before the gmaps scirpt.
    i do not know if js merging is set – if this is always the case – on my installation it does not work that way.

    so maybe this has to be done for all possible constallations:

    function agwp_addCustomScripts(){
        wp_enqueue_script('norobotofontbymaps',get_stylesheet_directory_uri().'/js/norobotofontbymaps.js', array(), $vn, false );
    }
    add_action('wp_enqueue_scripts', 'agwp_addCustomScripts');
    in reply to: Important change request for avia_google_maps_api.js! #1371156

    Next option to embed a google map is using the google maps script api

    and just after the function initMap() and before the info window and markers are set – insert the code from above in that manner:

        var head = document.getElementsByTagName('head')[0];
        var insertBefore = head.insertBefore;
        head.insertBefore = function (newElement, referenceElement) {
            if( 
                   newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Roboto') > -1 
                || newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Google+Sans+Text') > -1
              
              ){return;}
              insertBefore.call(head, newElement, referenceElement);
        };

    that will work too. see: https://enfold.webers-webdesign.de/google-maps/

    in reply to: Important change request for avia_google_maps_api.js! #1371152

    i think it is better to load it as early as possible – maybe in the head:

    function no_google_font_loading() {
    ?>
    <script>   
        var head = document.getElementsByTagName('head')[0];
        var insertBefore = head.insertBefore;
        head.insertBefore = function (newElement, referenceElement){
            if(
              newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Roboto') > -1 
           || newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Google+Sans+Text') > -1
          
            ) 
        
            if(newElement.tagName.toLowerCase() === 'style' && newElement.innerHTML.indexOf('.gm-style') > -1){
                return;
            }
            insertBefore.call(head, newElement, referenceElement);
        };
    </script>
    <?php
    echo '<style type="text/css">  .gm-style * { font-family: Helvetica,Arial,sans-serif !important;}.gm-style-cc, .gmnoscreen {display: none !important}</style>';
    }
    add_action('wp_head', 'no_google_font_loading');


    BUT:
    this will not work on iframe!

    to be continued …

    in reply to: Important change request for avia_google_maps_api.js! #1371145

    thats right – i now try to first register the external script and enqueue then. Maybe that makes a difference. …
    No effort – how do you look – if fonts are loaded from external Sources ? i do it only with developer tools – on chrome – and there are always google fonts.
    And even Google Fonts Checker comes to the same result.

    I tested it with Borlabs Cookie Plugin deactivated – and with only Google Maps ALB.

    in reply to: Important change request for avia_google_maps_api.js! #1371064

    nothing of the above worked on my testinstallations.

    one thing to mention – you can remove it – or you can create your own backlink text:

    function my_own_backlink($link){
      $no = "rel='nofollow'";
      $backlink_url = 'Backlink URL';
      $theme_string = 'Custom Backlink Text'; 
      $link = " - <a {$no} href='{$backlink_url}'>{$theme_string}</a>";
      return $link;
    }
    add_filter( 'kriesi_backlink', 'my_own_backlink', 10, 1);
    in reply to: How to change the px for when the Burger menu appears? #1370821

    try:

    @media only screen and (max-width: 1399px) {
      nav.main_menu {
        display: block !important;
      }
      #avia-menu .menu-item {
        display: none;
      }
      .av-burger-menu-main.menu-item-avia-special {
        display: block;
      }
    }

    PS: 1399px – This value is not obligatory, but I have made the habit to note the min-values with even values – and the max-values with odd values.

    in reply to: Really Poor Score On Mobile – Google Speed Test #1370817

    @thinkjarvis : thanks – with no third party caching tools i prefer merging css but only minify the js files for standard enfold installations.
    On my recaptcha / borlabs construction i had to exclude the script from merging – otherwise it will not block properly the google addons.
    with your detailed instructions i will try now the wp rocket on a testinstallation.

    in reply to: CSS Klasse zuweisen #1370801

    it is masonry-1 again but not on home page

    @media only screen and (max-width: 767px) {
      .responsive #top.page-id-3005 #wrap_all #main #av-masonry-1 {
        width: 100vw !important; 
        position: relative !important; 
        left: calc(-50vw + 50%) !important; 
      }
    }

    to avoid that you always have to look what ID or on what page/post you are – it maybe better to give to those masonries a custom-class to have a unique selector.

    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #main .av-masonry.custom-class {
        width: 100vw !important; 
        position: relative !important; 
        left: calc(-50vw + 50%) !important; 
      }
    }

    have a look if advanced layerslider options are on google font support.

    in reply to: Menue Highlighting and IDs #1370760

    Yes – see the wood for the trees. Is it already operational blindness?

    in reply to: Mobile header blinking #1370687

    well – the great benefit of inline svg files is that they can be addressed from outside with css.
    So you do not need to have here that gif behind the logo. And on scrolled header to display the one the other not.
    your logo – reworked a bit with text editors will have all you need to make things visible or not – or to move parts inside the svg file.

    A logo in this way you can influence by:

    #header.header-scrolled svg .branding {
      opacity: 0;
      transition: opacity 1s ease;
    }

    Thats it – and you do not have to look for if the one image has the same dimensions as the other. One graphic for all.
    you find your logo here: https://webers-testseite.de/sneakaces.svg

    next is the colors – you can influence them for each page/post or transparency you like.
    you have your color class – so you can decide on transparency to have a white logo
    either over header class: header-transparency or :not selector

    #header:not(.header-scrolled) .cls0 {
      fill: #FFF;
    }
    in reply to: Really Poor Score On Mobile – Google Speed Test #1370628

    have you good advices for WP-Rocket Settings? Do you put on top to Enfold merging / minification the WP-Rocket Optimization, or do you switch off those enfold performance tools.

    in reply to: Inline POPUP Enabler not working #1370627

    can you post your inline popup snippet here ( please use the code tag – to better inspect the code) ?

    besides that – your suggestion to solve the problem with inline popup – seems to be misleading.
    What do you think you’re going to accomplish by having a page/portfolio page that exists on your website run in a lightbox? As you already mentioned, it would be better for SEO reasons to simply call the page normally. – Or are they external pages?

    in reply to: Mobile header blinking #1370626

    now you got a shrinking header on mobile – did you edit your avia-snippet-sticky-header.js
    ( respectively your avia-snippet-sticky-header.min.js) ?
    And an additional header component is present ( cart ) – maybe it is better to put that cart icon to av-logo-container navigation div.

    in reply to: update trouble due to unneeded .DS_Store files #1370611

    i can not reproduce that –
    i’m working with macOS Monterey ( in deep it is a unix based OS ) – so – downloading from envato ( the installable nor the other ) zip File – there are no hidden files inside the zip.

    i put one hidden file to that directory that you can see that i do show all – even hidden files .

    On ftp clients like filezilla you can force to show those hidden files – dito – no hidden files :

    So I can’t tell where your files might come from.

    in reply to: Menue Highlighting and IDs #1370610

    i removed that menu-item which opens an inline popup.
    That inline popup div got a unique ID and is hidden by mfp-hide class. The individual link of that item is that unique ID.

    The point is on that – if i’m on a page abc – the menu-item abc is highlighted ( underlined by avia-menu-fx ) – but scrolling to the position where i placed my hidden div with the ID for opening the inline-popup – both menu-items are highlighted then.

    But it is not so urgent for me now – because : see the first sentence

    in reply to: Inline POPUP Enabler not working #1370608

    if you are referring to those older articles – you should know that some commands on jQuery are deprecated.

    so have a look to f.e.

    jQuery(window).load(function( ){
    // it is now:
    jQuery(window).on('load', function( ){
    

    same with :

     element.on('click', function( ){
    
    in reply to: Page not found – strange #1370497

    look to the htaccess file on root directory of your wordpress installation.

    in reply to: Page not found – strange #1370490

    in editor mode of that page – and you go to admin bar on top and click “Seite ansehen” ( I guess you are working with a German WordPress ) – what happend then?

    – just copy the content to another page and try to save that new page.

    in reply to: Suche einschränken #1370408

    Du möchtest für eine spezielle Seite nur die Suchfunktion einschränken – wohingegen die anderen Seite alle Beiträge/Seiten durchsuchen?

    in reply to: Mobile header blinking #1370406

    you should work on your transparency colors ( menu and logo)

    for mobile it would be better to have on all headers ( transparency or not ) a black fill of your svg class.
    the blinking comes from the header-bg change on transparency to non-transparency:

    @media only screen and (max-width: 767px) {
      #header .logo .cls-1 {
        fill: #000;
      }
      .responsive #top .av_header_transparency .header_bg {
        background-color:#fff;
        opacity:1
      }
    }
    in reply to: prev – next on testimonials on 5.2 #1370242

    Yes, of course.

    in reply to: How to hide Headers and Footers? #1370068

    … there are no header nor footer – just borders

    #top.avia-blank #main .container_wrap {
      border: none !important
    }
    in reply to: New feature : CSS File Merging And Compression #1369966

    by the way: it seems that the merging of css files in combination with minified js files have best Performance Values on my end here.

    a friend told me to deactivate better the borlabs cookie to not influence the results :

    in reply to: New feature : CSS File Merging And Compression #1369959

    ok – everything that is mentioned in functions.php had to be there for registering the child-theme:

    function wp_change_sticky_header_script() {
    	wp_deregister_script( 'avia-sticky-header' );
    
    	$vn = avia_get_theme_version();
    	$options = avia_get_option();
    	$child_theme_url = get_stylesheet_directory_uri();
    
    	$min_js = avia_minify_extension( 'js' );
    	//  $min_css = avia_minify_extension( 'css' );  for that js - file not needed to mention here
    
    	$condition  = ( isset( $options['header_position'] ) && $options['header_position'] == 'header_top' );
    	$condition2 = ( isset( $options['header_sticky'] ) && $options['header_sticky'] == 'header_sticky' ) && $condition;
    	avia_enqueue_script_conditionally( $condition2 , 'avia-sticky-header-child', "{$child_theme_url}/js/avia-snippet-sticky-header{$min_js}.js", array('avia-default'), $vn, true);
    }
    add_action( 'wp_enqueue_scripts', 'wp_change_sticky_header_script', 100 );

    because in condition2 – condition1 is mentioned etc. vn etc.

    in reply to: prev – next on testimonials on 5.2 #1369873

    Aha – ok

    in reply to: prev – next on testimonials on 5.2 #1369850

    What I don’t quite understand is why it also shows up in the testimonials? Because there the assets are loaded correctly.

    in reply to: Split a column #1369841

    but you know that you can nest columns in a grid-row cell?
    To have the grid-row not as full-width – you can add a snippet to your child-theme functions.php.

    See result and all code you need: https://enfold.webers-webdesign.de/grid-row-special/
    PS: with no gap – there will be no gap !
    I prefer to have here 1/4 cells besides each other and style them by grid layout.

    but you can also style it as 1/2 Cells this way:

Viewing 30 posts - 2,581 through 2,610 (of 11,513 total)