Forum Replies Created

Viewing 30 posts - 391 through 420 (of 10,649 total)
  • Author
    Posts
  • By the way: uploaded Fonts – are at the end of the drop-downlist under: “Uploaded Fonts”
    sorry to mention this – but some participants do not scroll down to the end of the list ;)

    I don’t believe that only Google Fonts can be uploaded.
    I have successfully uploaded several premium fonts from Adobe, Bitstream, Elsner & Flake etc. pp. after converting them to web font formats. In the meantime I only prefer woff2 (for older browsers I usually add the ttf files)

    try to upload otf files to tranfonter page: Link

    Big Advantage on Transfonter Page is the family support.

    if there are troubles in rendering the font – ( what OS X do you use on your device) you can include the other font formats too
    but with ttf you got a good old browser support.
    Browser Support

    in reply to: Space between color sections #1445404

    To better advise; is there a link to this page?
    If you don’t want to make the link public, you’ll have to wait until the mods are here to see your private message.

    in reply to: Change the color of the hover line #1445390
    #top #avia-menu .avia-menu-fx {
      background-color: #8c084c
    }
    in reply to: Easy Slider Darken Image (Opacity) #1445361

    this is one idea –

    #top.page-id-102 #av_section_1 .flex_column img {
      filter: brightness(0.5)
    }

    or with two filters and hover effect:

    #top.page-id-102 #av_section_1 .flex_column img {
      -webkit-filter: brightness(0.6) blur(3px);
      filter: brightness(0.6) blur(3px);
      transition: filter 1s ease;
    }
    
    #top.page-id-102 #av_section_1 .flex_column:hover img {
      -webkit-filter: brightness(0.8) blur(0.5px);
      filter: brightness(0.8) blur(0.5px);
      transition: filter 1s ease;
    } 
    

    but maybe you like a frosted glass effect behind your caption:

    
    /***** here only for those images inside column 4,5 and 6 *****/
    #top.page-id-102 #av_section_1 .flex_column:nth-of-type(n+4) .av-slideshow-caption {
      border-radius: 10px;
      background-color: rgba(0,0,0,0.3);
      width: calc(100% - 34px);
      margin: 0 auto !important;
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
    }


    if
    you change your font color to black then switch to a white frosted glas ;)

    btw: it seems to be better if you switch to single rows on 990px for that color section.

    if the html lang attribute changes to the new language – the labels are not translated?
    does your lang plugin set a html lang attribute?

    _________
    anyway:
    give a unique ID to your countdown element f.e.: spanish

    then follow the exemple here: https://enfold.webers-webdesign.de/3-columns/

    for child-theme functions.php:

    function set_spanish_translations(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($) {       
    		$('#spanish').attr('lang', 'es-ES');
    		$('#spanish .av-countdown-years .av-countdown-time-label').attr({'data-label': 'Año', 'data-label-multi': 'Años'});
    		$('#spanish .av-countdown-months .av-countdown-time-label').attr({'data-label': 'Mes','data-label-multi': 'Meses'});
    		$('#spanish .av-countdown-weeks .av-countdown-time-label').attr({'data-label': 'Semana','data-label-multi': 'Semanas'});
    		$('#spanish .av-countdown-days .av-countdown-time-label').attr({'data-label': 'Día','data-label-multi': 'Días'});
    		$('#spanish .av-countdown-hours .av-countdown-time-label').attr({'data-label': 'Hora','data-label-multi': 'Horas'});
    		$('#spanish .av-countdown-minutes .av-countdown-time-label').attr({'data-label': 'Minuto','data-label-multi': 'Minutos'});
    		$('#spanish .av-countdown-seconds .av-countdown-time-label').attr({'data-label': 'Segundo','data-label-multi': 'Segundos'});
    	}(jQuery)); 
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'set_spanish_translations');

    it differs between data-label and data-label-multi – for singular and plural form of the Units

    in reply to: Space between color sections #1445348

    Your code should actually work because of the important setting.
    Try first renewing the caching / merging of Enfold?

    _______

    on your selector there are only classes ! A class is not so high in specifity than an ID.
    not knowing your page – i can not say if your selctor is the right one – but try:

    @media only screen and (max-width: 767px)  {
      #top #main .avia-section .content {
        padding-top: 0;
        padding-bottom: 0;
      }
    }
    in reply to: contact form drop-down list background colour #1445204
    in reply to: Post Slider display video instead of featured image #1445191

    if you have sound on that video – There will be (for the lightbox video) a button ( if you set muted ) to activate sound – or if you set without muted – the vimeo video will play with sound!
    on the preview videos it will make no sence – if there are more than one Video. – Real cacophony

    in reply to: Section autoplay video (force with js) #1445189

    I fear that this would have to be decided by YouTube (Google) alone. Many of the previously valid parameters no longer have any influence on video events. YouTube is particularly keen to push through related videos. And this is probably the crux of the matter. They earn money with such links and don’t care about user-friendliness. I’ve long had a Vimeo account with a weekly 5GB upload to get around all this.

    in reply to: Section autoplay video (force with js) #1445134

    It runs with your video on iPhone – but the loop not. After the video the related Videos are shown.

    see https://webers-testseite.de/youtube-background/
    After you have inspect it – i will remove your video from my page

    PS: if i remove the playlist parameter ( see bottom color-section) the video stops playing on iPhone – but does not show those related videos allways :
    see screenshot from iPhone:

    in reply to: Section autoplay video (force with js) #1445093

    if it is that Relax Page – on my iPad it restarts (loop) the video. On my iPhone the relative Videos are shown.
    try to add as Parameter: &rel=0

    PS: i tried it with many other parameters. But your video always shows at the end the relatives.
    some videos do not – i don’t know why.

    on inserting your video id on Youtube there is an automatic add behind the VIDEO-ID. : ?si=_2iiQuHBWVJZQ8s6

    Did you upload that with an existiing playlist?

    in reply to: contact form drop-down list background colour #1445022

    you can only influence the select box ( as check boxes, radio buttons etc. ) by replacing the original html by a different html structure.

    put this to your child-theme functions.php:
    ( it is specific to your form – because the selector for that form element is given by the ID: #element_avia_6_1
    on other form elements it might be a different ID )

    function style_select_options(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
        (function($) {     
            $('.avia_ajax_form #element_avia_6_1').addClass('custom-select');
        })(jQuery);
    
        var x, i, j, l, ll, selElmnt, a, b, c;
        /* Look for any elements with the class "custom-select": */
        x = document.getElementsByClassName("custom-select");
        l = x.length;
        for (i = 0; i < l; i++) {
          selElmnt = x[i].getElementsByTagName("select")[0];
          ll = selElmnt.length;
          /* For each element, create a new DIV that will act as the selected item: */
          a = document.createElement("DIV");
          a.setAttribute("class", "select-selected");
          a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
          x[i].appendChild(a);
          /* For each element, create a new DIV that will contain the option list: */
          b = document.createElement("DIV");
          b.setAttribute("class", "select-items select-hide");
          for (j = 1; j < ll; j++) {
            /* For each option in the original select element,
            create a new DIV that will act as an option item: */
            c = document.createElement("DIV");
            c.innerHTML = selElmnt.options[j].innerHTML;
            c.addEventListener("click", function(e) {
                /* When an item is clicked, update the original select box,
                and the selected item: */
                var y, i, k, s, h, sl, yl;
                s = this.parentNode.parentNode.getElementsByTagName("select")[0];
                sl = s.length;
                h = this.parentNode.previousSibling;
                for (i = 0; i < sl; i++) {
                  if (s.options[i].innerHTML == this.innerHTML) {
                    s.selectedIndex = i;
                    h.innerHTML = this.innerHTML;
                    y = this.parentNode.getElementsByClassName("same-as-selected");
                    yl = y.length;
                    for (k = 0; k < yl; k++) {
                      y[k].removeAttribute("class");
                    }
                    this.setAttribute("class", "same-as-selected");
                    break;
                  }
                }
                h.click();
            });
            b.appendChild(c);
          }
          x[i].appendChild(b);
          a.addEventListener("click", function(e) {
            /* When the select box is clicked, close any other select boxes,
            and open/close the current select box: */
            e.stopPropagation();
            closeAllSelect(this);
            this.nextSibling.classList.toggle("select-hide");
            this.classList.toggle("select-arrow-active");
          });
        }
    
        function closeAllSelect(elmnt) {
          /* A function that will close all select boxes in the document,
          except the current select box: */
          var x, y, i, xl, yl, arrNo = [];
          x = document.getElementsByClassName("select-items");
          y = document.getElementsByClassName("select-selected");
          xl = x.length;
          yl = y.length;
          for (i = 0; i < yl; i++) {
            if (elmnt == y[i]) {
              arrNo.push(i)
            } else {
              y[i].classList.remove("select-arrow-active");
            }
          }
          for (i = 0; i < xl; i++) {
            if (arrNo.indexOf(i)) {
              x[i].classList.add("select-hide");
            }
          }
        }
    
        /* If the user clicks anywhere outside the select box,
        then close all select boxes: */
        document.addEventListener("click", closeAllSelect); 
    
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'style_select_options');
    

    after that for quick.css:

    /*the container must be positioned relative:*/
    .custom-select {
      font-family: inherit;
      text-transform: uppercase;
    }
    
    .custom-select select {
      display: none !important;
    }
    
    #top .select-selected {
      background-color: var(--enfold-main-color-bg);
      border-color: var(--enfold-main-color-primary);
      border-width: 1px;
      height: 41px;
      font-size: 12px;
      color: var(--enfold-main-color-primary);
      opacity: 0.7
    }
    
    /*style the arrow inside the select element:*/
    .select-selected:after {
      position: absolute;
      content: "";
      top: 18px;
      right: 10px;
      width: 0;
      height: 0;
      border: 6px solid transparent;
      border-color: #666 transparent transparent transparent;
    }
    
    /*point the arrow upwards when the select box is open (active):*/
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent #666 transparent;
      top: 12px;
    }
    
    /*style the items (options), including the selected item:*/
    .select-items div,
    .select-selected {
      color: #FFF;
      padding: 2px 15px 2px;
      border: 1px solid transparent;
      border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
      cursor: pointer;
      user-select: none;
    }
    
    /*style the items (options), including the selected item:*/
    .select-selected {
      padding: 5px 15px 2px;
    }
    
    /*style items (options):*/
    .select-items {
      position: absolute;
      background-color: #ddd;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 99;
      font-size: 12px
    }
    
    /*hide the items when the select box is closed:*/
    .select-hide {
      display: none;
    }
    
    .select-items div:hover, .same-as-selected {
      background-color: #7d2a7e;
      color: #fff !important;
    }

    Looks then this way – but you can now style each option and pseudo states to your needs:

    • This reply was modified 4 months, 1 week ago by Guenni007.
    in reply to: Post Slider display video instead of featured image #1445001

    by the way: vimeo and youtube now offers for a while gif creation for preview.
    That gif ( up to 8s ) should not be to big in dimension ( f.e.: 260px width) – you can use it as featured images.
    See: https://webers-testseite.de/masonry-blog/

    and click on “Excerpt” post

    in reply to: Post Slider display video instead of featured image #1444999

    can you try this solution: https://kriesi.at/support/topic/portfolio-items-on-click-navigagte-to-external-website/

    but i guess it is only for portfolios …

    see the comment:

    Link portfolio item to external URL
    You can add a link to any (external) page here.
    If you add a link to a video that video will open in a lightbox

    for posts you then had to set the format to “link”

    in reply to: Section autoplay video (force with js) #1444970

    see playerparameters: https://developers.google.com/youtube/player_parameters?hl=de for Youtube.

    so rel should work – but if you set a playlist – and a loop – it will not stop – so same result.

    in reply to: Auto player video on mobile #1444968

    see – example page: https://webers-testseite.de/vimeo-bg-video/

    as long the parameter muted is set – it will autoplay on mobile iOS devices.

    in reply to: Auto player video on mobile #1444893

    but if you do not need all those features of advanced layerslider – you can use color-section background video option as well.
    just put in that inputfield : https://vimeo.com/917970783?badge=0&autoplay=1&muted=1&loop=1
    maybe with parameter ( do not track ) &dnt=1

    see here the player parameters of vimeo videos : https://help.vimeo.com/hc/de/articles/12426260232977-%C3%9Cberblick-%C3%BCber-Player-Parameter

    I have found that pages simply load faster without the layer slider.

    in reply to: Sidebar pushed down #1444793

    Thanks for digging into this for me. I can see that works but the odd thing is that this is the same setup as this website and we use that plugin with no issues.

    See if there are different settings for that plugin – the pf-content div wraps all content inside #main. On the working page not!

    F.e. on “Select content using”

    see: https://support.printfriendly.com/wordpress/customize-content-selection/

    in reply to: Auto player video on mobile #1444765

    if i set your video with the given settings of muted !!!
    https://webers-testseite.de/vimeo-bg-video/

    You have this button to toggle between mute and unmute – so I’m guessing that’s the culprit – that you try to have sound. That is something only desktop browsers will support as bg-video

    in reply to: Sidebar pushed down #1444754

    where does that “div.pf-content” comes from. It is a wrapper that does not exist in the working constallation.

    open that single portfolio – there is an option to show “Additional Portfolio Settings”

    if you like to open all external links in a new tab/window – put this to your child-theme functions.php

    function open_external_links_in_newtab(){
    ?>
    <script type="text/javascript">
    (function($) {
      var url = window.location.origin;
      $('a').not('a[href*="'+url+'"], a[href*="mailto:"], a[href*="#"], a[href*="tel:"], a[href*="javascript:;"] ').attr({
        'target':'_blank',
        'rel': 'nofollow noreferrer',
      })
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'open_external_links_in_newtab');
    in reply to: Sidebar pushed down #1444745

    the sidebar is not inside the div.container ( child ) – it is a sibling of that container
    so div.container has closed to early. I do not know why it is happening on the one page. Try to rebuild that page – maybe just duplicate the page and have a look if that new page shows the same behaviour.

    in reply to: Auto player video on mobile #1444710

    Try to set the option “play muted” to

    in reply to: Section autoplay video (force with js) #1444681

    But you are talking about a background-video with audio?
    For me, as background these videos are muted and can be played automatically, except on a mobile device – but this is not an Enfold setting – it is a browser-dependent agreement not to unnecessarily increase traffic nor power-consumption from mobile phones.

    so – you can try to force muted by adding playerparameters
    on youtube for example:

    ?autoplay=1&mute=1&playsinline=1

    so the inserted video is for example:
    https://www.youtube.com/watch?v=81hhkBaIvNM?autoplay=1&mute=1&playsinline=1

    by the way – if you have set a loop for the youtube video – then the ID had to be added as playlist:
    &playlist=81hhkBaIvNM
    but the parameter “playlist” seems to be removed by Enfold at data-original_url for data-videoid

    See: https://webers-testseite.de/youtube-background/
    Password is : Enfold

    but nevertheless – it seems to work on f.e. ipad

    by the way: you are using on desktop version a svg logo. Why don’t you use an edited svg file for mobile too.

    The font is lufga i guess. So it is easy to get in illustrator.
    you can find your mobile logo here: Link
    upload that – and on list view inside the media library look for the ID of that file. f.e. 456

    then replace it via:

    function av_change_mobile_logo($logo){
        if(wp_is_mobile()){
          $logo = 456;
        }
        return $logo;
    }
    add_filter('avf_logo','av_change_mobile_logo');

    Your png file got a bit different color – is that a wanted style – i styled it now like your desktop svg file.
    But you can fill it a different way by quick css.

    and btw. you decided to preseve the header visible on mobile view.
    then adjust the padding-top of main to

    @media only screen and (max-width: 767px) {
      .responsive #top #main {
        padding-top: 80px !important;
      }
    }
    in reply to: Search Bar Results #1442319

    there are pages that use a slightly different snippet – if the last snippet is not what you want.
    I think it’s more accurate what is allowed to be displayed in the search results:
    ( of course – such snippets are intended for the child-theme functions.php. )

    add_filter( 'pre_get_posts', function( $query ) {
    global $woocommerce;
    
      if ( ! is_admin() && $query->is_search && isset( $query->query_vars['s'])){
      $query->set( 'post_type', 'product' );
      $query->set( 'wc_query', 'product_query' );
    
      $tax_query = $query->get( 'tax_query' ) ?: [];
      $tax_query[] =  [
                      'taxonomy' => 'product_visibility',
                      'field' => 'slug',
                      'terms' => 'exclude-from-search',
                      'operator' => 'NOT IN'
                      ];
    
      $query->set( 'tax_query', $tax_query );
      }
      return $query;
    });
    in reply to: Search Bar Results #1442318

    i use this snippet to include some custom post types to the search:

    try:

    function wc_only_search_filter_pages($query) {
        // Frontend search only
        if ( ! is_admin() && $query->is_search() ) {
            $query->set('post_type', 'product');
            $query->set( 'wc_query', 'product_query' );
        }
        return $query;
    }
    add_filter('pre_get_posts','wc_only_search_filter_pages');

    have you tried the test the other way round?
    disable siteground optimizer and activate “use minified …”

    Clear all cachings before you deactivate siteground optimizer – i think that tool comes with a caching addon.

    merge all css an js means – combine all css and js in one file each. I guess that this is what a lot of optimization tools do too.
    Now Enfold offers the usage of minified Versions of their core files. That seems to be a better way. Especially for TTBF (time to first byte)

    Firstly – to get your content back: What do you see in the top right editor of the page – are there any revisions to this page?
    If so – click on the link : browse.
    If you now hover the timeline you will see the backup times. Then choose the one that restores your old content (the time just before the text was edited)

Viewing 30 posts - 391 through 420 (of 10,649 total)