Forum Replies Created

Viewing 30 posts - 6,031 through 6,060 (of 11,983 total)
  • Author
    Posts
  • in reply to: Contact Form – Datepicker / german localisation #1191400

    you can see here how to change the placeholder and to substitute these prev. next text:
    https://kriesi.at/support/topic/change-contact-formular-field-date-prefilled-dd-mm-yy-in-tt-mm-jj/#post-1185401
    I prefer the : use signs as << and >>

    ja – ist eben leider so, dass es ohne die Seite schwer ist den genauen Code zu generieren. Du siehst allein anhand des vorhandenen Codes von Enfold , dass hier genau geschaut werden muss welche Ebene des Menus nun angesprochen werden soll – die
    .av-burger-overlay li a, .av-burger-overlay li li a, .av-burger-overlay li li li a Cascaden sprechen dort mit hinein.

    in reply to: Sticky Menu on Mobile not sticky #1191227

    That is not something I would generally adopt in the subject. Just for this particular case: only ok for sticky header on responsive case with non-shrinking headers.
    Otherwise the top positioning of overlay and overlay-bg had to be calculated equal to header-height.

    in reply to: Sticky Menu on Mobile not sticky #1191152

    maybe this could be a good alternative : not to have the overlay hamburger on top but shifted that amount of header height downwards:

    @media only screen and (min-width: 768px) and (max-width: 989px) {
      .responsive.html_mobile_menu_tablet #top #wrap_all #header {
        position: fixed;
      }
      .av-burger-overlay, 
      .av-burger-overlay-bg {
        top:91px
      }
      
      .html_av-overlay-side-classic #av-burger-menu-ul {
        padding: 0 0 100px !important;
      }
      
      .responsive.html_header_transparency.av-burger-overlay-active #header.av_header_transparency #avia-menu a {
        color:#fff !important;
      }
    
      .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner,
      .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner::before,
      .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner::after {
       background-color: #fff 
      }
    }
    
    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #header {
        position: fixed;
      }
      .responsive #top #main {
        padding-top: 80px !important;    /*** play with that - depends on your header-height ***/
      }
      #top .av_header_transparency .header_bg {
        background-color: #FFF;
      }
      .av-burger-overlay, 
      .av-burger-overlay-bg {
        top:81px
      }
      .html_av-overlay-side-classic #av-burger-menu-ul {
        padding: 0 0 100px !important;
      }
    }

    looks this way on opened hamburger between 768px and 989px

    in reply to: Sticky Menu on Mobile not sticky #1191149

    by the way ;) – dear mods – the example page shows a poor header behavior between 768px and 989px – see that ugly gray header.
    Allthough the padding-top of main is set to 0 ?

    in reply to: Sticky Menu on Mobile not sticky #1191145

    but that header he could have in fixed position on top.

    can you try this in quick css:

    depends on your burger-menu break point ( when burger is shown – on the demo page 2017 it is at 990px )

    @media only screen and (min-width: 768px) and (max-width: 989px) {
      .responsive.html_mobile_menu_tablet #top #wrap_all #header {
        position: fixed;
      }
    }
    
    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #header {
        position: fixed;
      }
      .responsive #top #main {
        padding-top: 80px !important;    /*** play with that - depends on your header-height ***/
      }
      #top .av_header_transparency .header_bg {
        background-color: #FFF;
      }
    }
    in reply to: menu IOS; problem #1191143

    well – if it is your nick.it site – i can see the burger-menu on my old iphone 6

    there is one thing to know the parent of that sub-menu link got the same class: current-menu-item
    but it has an additonal one of active-parent-item so you had to exclude this parent from being influenced too:

    #av-burger-menu-ul :not(.active-parent-item) .current-menu-item > a {
        color: red !important;
    }

    better would be to see your page – because sometimes there are second-, third-, fourth-level sub-menu items .

    you can select these devices over their device pixel ratio
    because these devices got one of 2

    You find here a good explanation: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    f.e.:

    @media only screen 
      and (min-device-width: 1366px) 
      and (max-device-width: 1366px) 
      and (orientation: landscape) 
      and (-webkit-min-device-pixel-ratio: 2) {
    …
    }
    in reply to: Changing Enfold files in my Child theme #1191103

    Hi Mike – what do you mean by:

    If you are using the newest child theme included with v4.7.3 then this code is already included

    The child theme i can download has no entry in the child-theme functions.php and in 4.7.3 i can not find an analog loading –
    so I think it’s still necessary to activate it with the snippet from above.

    And may i ask for what the if clause is here in your code – i allways use this without:

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    See here f.e.: https://kriesi.at/themes/enfold-2017/pages/contact/
    you mean these placeholder text?

    look for .main_color ::placeholder definition
    https://css-tricks.com/almanac/selectors/p/placeholder/

    in reply to: Change bacground color of sidebar #1190908

    HELLO MIKE : please change your image-hoster – it is horrible

    popups and other nefarious sites as they all open up – not always – but more and more often. Also the Kriesi page will be closed etc. pp.
    Please!

    ________

    On Ismaels code i see there was a little inconsitency: if there is a color-section with background-image on top – like here f.e:
    https://kriesi.at/themes/enfold-2017/blog/blog-single-author-small/ his code will end in a colorized top color-section too:
    So we can use an attribute selector – only if there was no background-image on container.wrap the code will do the job:

    @media only screen and (min-width: 768px) {
      .container_wrap.sidebar_right:not([style*="background-image"]):before {
          content: '';
          display: block;
          position: absolute;
          right: 0;
          top: 0;
          background: #ddd;
          height: 100%;
          width: calc(30%);
      }
    }

    if you got sidebar left the change it to: .container_wrap.sidebar_left.

    in reply to: Scrolling single-side column #1190873

    Or you do it with flex-box modell – and only css –
    you can see it here with content and sticky sidebar: https://webers-testseite.de/sticky-sidebar/
    and the code you need to set in your quick css.
    and here is a page with colums: https://webers-testseite.de/sticky-elements/
    The thing to have in mind is that the direct partent container gets display: flex – and the sticky child is set to position: sticky
    Important on that to know for Enfold: overflow settings as described in the first link
    It is a nice thing because it get out of sticky when the sticky element comes to the end of the parent container.

    Great advantage : no scroll calcalation with performance requirements.
    But i guess : IE11 does not support: https://caniuse.com/#search=sticky

    ja so ist es beschrieben oben:

    du legst dir eine Kopie dieser Datei in den child-theme/js/ Ordner ( der ist per se nicht unbedingt da, dann leg ihn an)

    durch das Snippet bindest du dann über das child-theme diese Datei statt der parent datei ein.
    So bist du einigermaßen sicher beim nächsten Eltern-update. Sollte sich aber mal was in der avia_google_maps_api.js ändern – siehst du wenigstens der Kommentare wegen, was sich geändert hatte und du kannst dann anhand dessen die neue Datei wieder bearbeiten.

    in reply to: on hamburger menu label and html tags #1190469

    I can get rid of these by css – but I’d prefer the clones didn’t emerge.

    #av-burger-menu-ul > li > ul.sub-menu > li.av-width-submenu > a:nth-of-type(1) {
        display: none !important;
    }

    Solved:

    ok that was the real hint : mega_titel.html() could not be used because it has all the content of the anchor in it too.
    So there is an empty anchor li and then the one with the text.
    i just did it now this way ( 1004 ff) : i inserted that new var: mega_title_text

    
    var megacolumn		= $(this),
    	mega_current  	= megacolumn.find( '> .sub-menu' ),	//  can be 0 if only a column is used without submenus
    	mega_title 		= megacolumn.find( '> .mega_menu_title' ), 
    	mega_title_text	= mega_title.find('a').html(), 	// so this is new to have tag transfer to hamburger menu titles
    	mega_title_link = mega_title.find('a').attr('href') || "#",
    	current_megas 	= mega_current.length > 0 ? mega_current.find('>li') : null,
    	mega_title_set  = false,
    	mega_link 		= new_li.find('>a'),
    	hide_enty		= '';
    

    and this mega_title_text comes then to the mentioned place:

    $('<a href="'+mega_title_link+'"><span class="avia-bullet"></span><span class="avia-menu-text">' + mega_title_text + '</span></a>').insertBefore(new_ul);
    mega_link = new_li.find('>a');

    This work great : can be closed

    Edit: i recognized that on indivdual link with link: # the new var needs an if clause:

    var mega_title_text = mega_title.find(‘a’).length > 0 ? mega_title.find(‘a’).html() : mega_title.html(),

    so it has to be:

    var megacolumn		= $(this),
    	mega_current  	= megacolumn.find( '> .sub-menu' ),	//  can be 0 if only a column is used without submenus
    	mega_title 		= megacolumn.find( '> .mega_menu_title' ), 
    	mega_title_text	= mega_title.find('a').length > 0 ? mega_title.find('a').html() : mega_title.html(),
    	mega_title_link = mega_title.find('a').attr('href') || "#",
    	current_megas 	= mega_current.length > 0 ? mega_current.find('>li') : null,
    	mega_title_set  = false,
    	mega_link 		= new_li.find('>a'),
    	hide_enty		= '';
    • This reply was modified 5 years, 11 months ago by Guenni007.
    in reply to: on hamburger menu label and html tags #1190459

    Thanks : But this is definitely something that has to be in a next update. It is precisely this possibility of setting html tags that is often necessary for the Hamburg menu items.

    Edit:
    But it does not seem to be that simple: the simple exchange leads to a blind menu entry – which also leads to the corresponding page, but see it on the source code

    And have a look on the demo page in private Content

    hi Victoria – i hope, not in my script? !

    no private Data for me – you have to wait til mods are here. I’m participant as you.

    in reply to: on hamburger menu label and html tags #1189747

    Yes – open the hamburger on that and look what happend to these tags

    on hamburger items these linebreaks or span-tags are not present.

    on the mega-menu it is all right – but on hamburger menu br and span tags are gone

    Du kannst hier einen immer noch aktuellen Lösungsansatz finden: https://kriesi.at/support/topic/one-google-map-marker-tooltip-at-a-time/#post-932107

    Mittlerweile wird die avia_google_maps_api.js conditional geladen. Heißt nur im Bedarfsfall. Macht es aber einfacher, dieses als child-theme script zu laden. ( Please dear mods – if this enqueue code could be optimized – tell us)
    Das hier kommt also in die child-theme functions.php:

    add_action( 'wp_enqueue_scripts', 'wp_change_google_maps_script', 100 );
    function wp_change_google_maps_script() {
      wp_deregister_script( 'avia_google_maps_api_script' );
      wp_enqueue_script( 'avia_child_google_maps_api_script', get_stylesheet_directory_uri().'/js/avia_google_maps_api.js', array('jquery'), $vn, true );
    }

    du legst dir eine Kopie dieser Datei in den child-theme/js/ Ordner ( der ist per se nicht unbedingt da, dann leg ihn an)

    Diese Kopie bearbeitest du entsprechend dem Link oben ( bitte beachte den Eintrag ganz oben – das vergessen viele)

    ODER : Auf Grundlage von enfold 4.7.3
    oder hier sehen: https://pastebin.com/9vUQrcFD
    hier downloaden: https://pastebin.com/dl/9vUQrcFD
    Ich habe Kommentare mit hineingeschrieben, damit du dich erinnerst was passiert ist.

    Auch wenn du nur irgendwo auf die Karte klickst gehen die InfoWindows zu.
    https://webers-testseite.de/google-maps-infowindow/

    _______________________________

    English Part for the interested other Participants:

    You can find a still up-to-date solution here: https://kriesi.at/support/topic/one-google-map-marker-tooltip-at-a-time/#post-932107

    Meanwhile the avia_google_maps_api.js is loaded conditionally. This means only if required. But makes it easier to load it as child-theme script. ( Please dear mods – if this enqueue code could be optimized – tell us )
    So this one goes into the child-theme functions.php:

    add_action( 'wp_enqueue_scripts', 'wp_change_google_maps_script', 100 );
    function wp_change_google_maps_script() {
      wp_deregister_script( 'avia_google_maps_api_script' );
      wp_enqueue_script( 'avia_child_google_maps_api_script', get_stylesheet_directory_uri().'/js/avia_google_maps_api.js', array('jquery'), $vn, true );
    }

    you put a copy of these files in the child-theme/js/ folder (it is not necessarily there per se, then create it)

    Edit this copy according to the link (please note the entry at the top of the page – many people forget this)

    On the basis of enfold 4.7.3
    or see here: https://pastebin.com/9vUQrcFD
    download here: https://pastebin.com/dl/9vUQrcFD
    I’ve included comments so you’ll remember what happened.

    Even if you just click somewhere on the canvas the InfoWindows will close.
    https://webers-testseite.de/google-maps-infowindow/

    in reply to: Enfold Mega Menu Customization #1189691

    you can activate the do_shortcode on menu-items by this in child-theme functions.php:

    add_filter('wp_nav_menu_items', 'do_shortcode');

    it works on mega-menu titles and items aswell. Maybe you have to get rid of: avia-bullet

    in reply to: Header Logo center, Menu below -> Scroll out only logo #1189688

    thats an important additional information – that you have transparency header!
    Anyway – it will be better to have your page to give you better advice

    you see here a test page with transparency header – you can even style the background-colors on the same toggle class:https://webers-testseite.de/elegant/con-tact/

    have you a page to see what is the fact?
    – maybe you got a already a css for class: sticky
    – have you declared a Menu as Enfold Main Menu ?

    in reply to: Header Logo center, Menu below -> Scroll out only logo #1189531

    Well you can use the enfold option for header : logo top menu below.
    Then the menu is in an extra div with ID: header_main_alternate

    the offset of 130 px here on my example depends on your given header height and if you are using a header_meta.
    On my example page i got a header-height of 100px plus the header_meta of aprox. 30px
    this comes to child theme functions.php:

    function scroll_up_down_change() {
    ?>
    <script>
    (function($){	
    $(document).on("scroll", function() {
      if ($(document).scrollTop() > 130) {
        $("#header_main_alternate").addClass("sticky");
      } else {
        $("#header_main_alternate").removeClass("sticky")
      }
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'scroll_up_down_change');

    this comes to quick css f.e.:

    #header_main_alternate.sticky{
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        box-shadow: 0 5px 25px #aaa;
        transition: box-shadow 0.5s ease;
    }

    this is how it looks like: https://webers-testseite.de/elegant/

    in reply to: Header, logo center, burger-menu top-left #1189491

    sorry – wrong topic !

    • This reply was modified 5 years, 11 months ago by Guenni007.
    in reply to: Autoplay Youtube Video in Lightbox #1188567

    Did you see the date of the post? September 13, 2018
    This is long time ago – and all the nice addenda to influence the playback have been deleted by Google – although some of them are still listed in their link.
    Most mobile devices do not autoplay videos on default – or do not play if it is not muted.

    in reply to: possible to have no scroll on opened Mega Div #1188268

    By the way – this results in a way if you hover the mega-div the body jumps to top.
    get rid of the height css – then it only stopps the scrolling without jumping to top.

    PPS: you can use ul.sub-menu as trigger aswell for all drop-dropdown menus. but then the first-level parent li has no effect – there is no toggling class on it like on mega-div open.

    by the way have you ever tested that button on the upper right corner?
    sticky elements on scrolling down !

    Yeah, I guess she saw that.

    NOT just a toggle to have the accordeons open like you do now …

    The all toggles open is a good thing but indeed the headings of the toggle description takes away good place.
    I can live with that option
    i now add to my default admin_head_mod the last line to shrink a bit the toggle heading:
    there is a setting for bigger quick css input field – removing reset button (to avoid accidentally delete settings) – and making the whole options field bigger.

    function admin_head_mod() {
      echo '<style type="text/css">
      #avia_quick_css .avia_description {float: none;margin-bottom: 20px !important;padding-left: 0 !important;width: 98%}
      #avia_quick_css .avia_control {float: left;max-width: 98% !important;width: 98% !important}
      .avia_footer_links li {float: left;padding-right: 20px}
      .avia_footer .avia_footer_save {float: left}
      .avia_reset {display: none !important }  //
      #avia_options_page { max-width: 3000px!important}
      a.avia-modal-toggle-title { padding: 2px; margin: 3px 12px; font-weight: normal;}
      </style>';
    }
    add_action('admin_head', 'admin_head_mod');
    in reply to: Datepicker flip flopping month and day #1188234

    try it this way:
    and copy paste please – if participants don’t use the code tag it is hard to inspect if you are using correct Quotationmarks

    add_filter('avf_datepicker_dateformat', 'new_date_format');
    function new_date_format() {
    $date_format = "mm / dd / yy";
    return $date_format;
    }
    
    add_filter('avf_datepicker_date_placeholder', 'new_date_placeholder');
    function new_date_placeholder() {
    $placeholder = "MM / DD / YY";
    return $placeholder;
    }
Viewing 30 posts - 6,031 through 6,060 (of 11,983 total)