Forum Replies Created

Viewing 30 posts - 6,661 through 6,690 (of 11,745 total)
  • Author
    Posts
  • in reply to: Grid row boxes don't line up #1125194

    is there a life link to that page?

    in reply to: Mega Menu layout #1125192

    by the way – if this is the mega menu for your blog – each item got his own featured image ?

    you can have infront of each mega-menu li your featured image
    see here on a test page: https://webers-testseite.de/lepper/
    look to “Was wir bieten” Mega Menu

    it is a code from ismael that works perfectly – see here:
    https://kriesi.at/support/topic/on-mega-menu-show-in-front-of-list-points-the-featured-image/#post-688912

    after you only have to style these little images ! : .main_menu .avia_mega_div .attachment-thumbnail.size-thumbnail.wp-post-image
    on that line : if ($args->menu->name != 'Main Menu') return $sorted_menu_objects; you must enter the name of your main menu

    in reply to: Mega Menu layout #1125186

    can you try this to see if it fits your needs – we had to use the flex model to style it:

    #top #header .avia_mega_div {
        max-height: calc(100vh - 200px);
        overflow: auto !important;
    }
    
    #top #header .avia_mega_div > .sub-menu {
      display: flex;
      align-items: stretch;
      justify-content: flex-start;
    }
    
    #header .avia_mega_div .units {
      border-right: 4px solid #010660 ;
    }
    
    #header .avia_mega_div .avia_mega_menu_columns_first {
      padding-left: 15px;
      border-left: 4px solid #010660;
    }
    
    #header .avia_mega_div .avia_mega_menu_columns_last {
      border-right: 4px solid #010660;
    }
    • the max-height is necessary for example for ipad – that mega menu is scrollable inside.
    • the stretch makes the columns inside the same height – so the borders can have the same length
    • if you don’t liike the left border on first row and right border on last element – get rid of the last two rules

    hope that it looks this way then:

    in reply to: Ipad behaviour at Mega Menu #1124978

    Thanks – yes i changed the timing to 500ms.
    but i think this should be an implemented default behavior – like on hamburger the content must be accessible after click.
    A closing button could be an alternative but from usability point of view the touchend is more intuitive to use.

    Can be closed – if you like

    in reply to: An actual solution to a sticky column. #1124890

    by the way: it is here with more options on parent container: https://alligator.io/css/position-sticky/

    and if you like you can have that on sticky sidebar too. See here: https://webers-testseite.de/buttons/

    in reply to: An actual solution to a sticky column. #1124882

    This method is based on the flex-box modell and the “stickyness” is allways in relation to its parent container.
    See testpage here: https://webers-testseite.de/sticky-elements/
    So see first if this fits your needs – otherwise you don’t need to read further.

    well it will be better to see any live page to give better advice – but here we go.
    a good method will be position sticky ( only Opera mini and IE11 do not support position: sticky )

    it is important that on this method the default values for these elements are changed to overflow : visible:

    .responsive body#top {
        overflow-x: visible;
    }
    
    #wrap_all {
        overflow: visible;
    }

    if you only have that on some pages it might be usefull to limit it to only these pages by f.e.:

    .responsive body#top.page-id-123 {
        overflow-x: visible;
    }
    
    .page-id-123 #wrap_all {
        overflow: visible;
    }

    the sticky elements ( columns f.e.) stick if they have a given distance to top – and will scroll when the parent container scrolls out of the scene.
    f.e. you can have on that column a menu etc.

    A useful setup would be to have a color-section as surrounding container – give to that color-section a custom class:
    sticky-parent
    Place your columns to this color-section – the columns you like to be sticky give them a custom class:
    sticky-element

    on responsive case you don’t need that – because columns then stand among each other. – so we can place the css in a media query:

    @media only screen and (min-width: 767px){
    	.sticky-parent .entry-content-wrapper {
    	  display: flex;
    	  justify-content: space-between;
    	  align-items: flex-start;
    	}
    
    	.sticky-parent .entry-content-wrapper:before,
    	.sticky-parent .entry-content-wrapper:after {
    		display:none
    	}
    
    	.sticky-element {
    	    position: -webkit-sticky !important;
    	    position: sticky !important;
    	    top: 140px;
    	    align-self: flex-start;
    	    min-width: 30%;
    	}
    }

    you can play with top position and min-width here – because even if the columns are 1/3 the flex-model rules here the width !

    in reply to: Remove border from containers #1124833

    put this to quick css:

    .page-id-2249 .flex_column {
        border: none !important;
    }

    by the way you have to set this on the alb ( colums ) by yourself – on default the columns do not have border.

    in reply to: Contact Form Required Fields #1124827

    Warum fügst du es nicht als Checkbox in dein Kontakt Element ein? – und setzt es dann auf Pflichtfeld (ohne Preselection)
    oder habe ich dein Anliegen falsch verstanden? Was willst du damit erreichen? Wenn die Checkbox Pflicht ist, ist doch der Vorschrift genüge getan. oder?

    Da hast du dann gleich alles was nötig ist . In das Form Element Label kannst du nämlich html code einsetzen:

    
    Ich habe die <a href="/datenschutzerklaerung/">Datenschutzerklärung</a> gelesen und bin mit der entsprechenden Verarbeitung meiner Daten einverstanden.
    
    in reply to: Ipad behaviour at Mega Menu #1124815

    no – this line has to be present. ( tested on a real device – not on simulated ipad )
    The chrome simulation is good for a quick check – but in the end you still have to test it on the real device.

    if you have the call of new pages, everything is not necessary anyway, it is just only needed if you want to navigate to a sublevel anchor link.

    in reply to: Ipad behaviour at Mega Menu #1124706

    Thanks Ismael – does not work in this way.

    this is my solution for now – but i thought it was a bit oversized.
    But that works on my test page – see private Content:

    function add_megamenu_touch_fix(){
    ?>
    <script>
    (function($){	
    	var megaParent = $('.menu-item-mega-parent');
    	megaParent.on('click touch', function() {
            megaParent.trigger('mouseenter');
    		megaParent.find('>a').addClass('open-mega-a');
        });	
    	$('.avia_mega_div a').on('click touch', function() {
    		setTimeout(function(){  
    			megaParent.trigger('mouseleave');
    			megaParent.removeClass('current-menu-item');
    			megaParent.find('>a').removeClass('open-mega-a');
    		}, 900);
        });	
        $('.avia_mega_div').on('click touch', function(e) {
            e.stopPropagation();
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_megamenu_touch_fix');
    in reply to: multiline Menu with shrinking header – tutorial #1124583

    And that happens to me – who likes to emphasize the possibilities of the flex model here so much on board. That I didn’t think of it!
    Great !!!
    I pull my hat before this solution.

    the more complex ( too complicated ) solution has only one benefit – you get a good insight into the functionality of Enfold ;)
    and you can keep the menu first lines to the common baseline.

    in reply to: How to add ALT text to easy slider image #1124421

    hey Rikard on full-width easy slider the images are not placed as background – they are img’s
    When Henk opens the Media Library he can fill out all alt info there and insert them later – you will have the attachment alt as alt for the img.

    Edit : you can do that even after you have created the sliders.
    Only on fullscreen Slider they are background-images of the li
    ______


    @Rikard
    – By the way, I confuse the English names often only because the full-width slider was named slideshow_fullsize.php as alb Element, which sounds more like full screen to me. I don’t know why you didn’t name the ALB element slideshow_fullwidth.php –
    so i have to look which of them has the background-images too.

    sometimes ( it depends on the multi-level menu structure it became necessary to have an addon on that:

    
    	$('body').on( 'click touch', '.av-width-submenu > a', function () {
    		$(this).parent('li').siblings().removeClass('av-show-submenu');
    		$(this).parent('li').siblings().find('ul').slideUp( "fast");
    	});

    the li’s on some circumstances are not direct siblings

    hm – does not work on my end here !
    (maybe it is because of my webers-testseite and its child-theme functions.php with over 2000 lines of additional test snippets. But i guess there is something missing.
    Can you please post the whole thing you have done. The code f.e. in your child-theme functions.php.

    Or are you looking only for a solution of first-level menu ( with submenu ) closing? – Then your code is enough for it.
    i’m trying to close a second-level by clicking its siblings. This is often the case if you are having a mega menu with column headings and sub-menu under it.

    so there must be additional code .
    the “siblings-structure” is on sub-menu a bit different – maybe this will work:

    function only_one_submenu_open(){
    ?>
    <script>
    (function($) {
    $(document).ready(function(){ 
    	$('body').on( 'click touch', '.av-width-submenu > a', function () {
    		$(this).parent('li').siblings().removeClass('av-show-submenu');
    		$(this).parent('li').siblings().find('ul').slideUp( "fast");
    	});
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'only_one_submenu_open');
    • This reply was modified 6 years, 3 months ago by Guenni007.

    just one moment – on touch devices this must be adjusted …
    … hm could not find the clue. on avia.js there is that function toggle_submenu( menu, e )
    but i do not see how to close the siblings on touch.
    Maybe a mod knows better way to do it. – Sorry

    i do not have this to examine if it will work but can you try this in child-theme functions.php:

    hm – not working – looking for touchfriendly code

    All is said in detail above: now your page-id is 309

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('.page-id-309 .avia-slideshow-1 .slide-1 h2.avia-caption-title', '<h1></h1>'); 
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    the only thing to do is now to give the h1 then a white color:
    see if i simulate the jQuery on developer tools.
    Film

    in reply to: SVG Datei #1123990

    ich würde dir das Plugin svg Support empfehlen wollen, weil es zusätzlich die Möglichkeit bietet eventuell die svgs nicht als img sondern als inline svg zu setzen.
    Trotzdem benötigt ein svg eine Größenangabe zB width – da es von der Media Library als 0 x 0 image geführt wird.

    in reply to: Hide Logo when scrolling down #1123989

    hm – when reading his topic i guess he will only hide the logo when scrolling – so maybe this in child-theme functions.php
    will do the job ( but without seeing your site it is hard to give advice)

    function hide_logo_on_scrolling(){
    ?>
    <script>
    (function($) {
    	$(function() {
    		    $( window ).scroll(function() {
    		    	$('.logo img').css({ 
    		    	        'opacity': '0',
    				'transition': 'all 1s ease',
    		    	});
        			clearTimeout( $.data( this, "scrollCheck" ) );
        			$.data( this, "scrollCheck", setTimeout(function() {
        				$('.logo img').css({
        				'opacity': '1',
        				'transition': 'all 1s ease',
        				});
        			}, 250) );
        		});
    	});
    })( jQuery );
    </script>
    <?php
    }
    add_action('wp_footer', 'hide_logo_on_scrolling');
    in reply to: Create 1 block – use it on all peges? #1123458

    yes if you better like to use a plugin – this is one i use for it: https://habenicht.io/product/enfold-repeatable-content/
    it is not too expensive and it is especially written for enfold.
    You will have all “repeatables” on the left side in dashboard – and you can place them by alb.

    in reply to: Create 1 block – use it on all peges? #1123185

    on “Content Elements” there is that alb : “Page Content”
    so if you create a whole page with all you need – and then you can insert that page content to different pages / posts.
    When editing that page all pages will follow that changings.

    in reply to: Ipad behaviour at Mega Menu #1123133

    I can’t see the benefit of a copy in the child’s theme.
    This was my approach, unfortunately it doesn’t work that way.

    function add_megamenu_touch_fix(){
    ?>
    <script>
    (function($){	
    	$('#avia-menu .menu-item-mega-parent .avia_mega_div a').on('touchstart', function () {
    		setTimeout(function(){ 
    
    			$(this).closest('.menu-item-mega-parent').find('>a').removeClass('open-mega-a');
    			$(this).closest('.menu-item-mega-parent').css('overflow' , 'hidden');
    			$(this).closest('.avia_mega_div').css({
    				'opacity' : '0',
    				'display': 'none',
    			});
    		}, 500);	
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_megamenu_touch_fix');

    It can’t be the first time that a touch-friendly Mega Div solution has been demanded.
    A Mega Div with Anchor submenu items is not unusual, is it? So please find a solution on that issue

    if you realy want to get rid of that button – you can use remove for it – place that in child-theme functions.php
    f.e. you placed an enfold button and give a custom class to it f.e.: button-customclass

    function remove_a_button_with_custom_class(){
    ?>
    <script>
    (function($){	
    	$(".button-customclass a").click(function(){
        	$(this).remove();
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_a_button_with_custom_class');
    in reply to: Hexadecimal colors not accepted #1122724

    even if they are different – you wouldn’t realy recognize a difference.
    But what version of WordPress and Enfold do you use?
    see here : https://webers-testseite.de/color-transformation/
    i can define both values – and they are not changed !

    in reply to: Rename shortcode #1122459

    what about : [av_privacy_link]Datenschutzerklärung[/av_privacy_link]

    in reply to: Reverse column order for mobile #1122308

    well everything you did is correct.
    the direct parent element of the items gets the flex property. So you can have that on a color-section your class.
    If you just want to do reverse, everything is ok.
    So from 1,2,3 becomes 3,2,1

    However, if you want to determine the order, you can set it to the flex items

    @media only screen and (max-width:767px) {
    .column_flex_reorder .entry-content-wrapper {
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
    }
      .column_flex_reorder .av_one_third:nth-child(1) {
        order:2
      }
      .column_flex_reorder .av_one_third:nth-child(2) {
        order:3
      }
      .column_flex_reorder .av_one_third:nth-child(3) {
        order:1
      }
    }

    nice Articel here: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

    Test page: https://webers-testseite.de/defined-order/

    if you only have that on the given page and do not need to have that elsewhere i recommend to use: https://kriesi.at/support/topic/how-do-i-create-h1-tag-from-the-caption-title-in-fullscreen-slider-element/#post-1122106

    in reply to: change HTML Dom enfold Menu #1122302

    can not open your image in the way above.

    Can you please explain what you want to achieve with this?
    The structure in your image is the default structure of logo left menu right ! except the hamburger menu is hidden when non-responsive menu is shown.

    this is one of mine:

    in reply to: iPad drop down menu won't "tap-off" #1122284

    a little effort:

    $('#avia-menu').find('.menu-item-has-children:not(.menu-item-mega-parent).menu-item-top-level.current-menu-item .sub-menu a').on('touchend', iPadMenuFix);
    

    i placed another class to the selector so the mega-div does not hide the sublevel ul’s on touch now – but now we had to find a method to close the mega-div on touch any link in it !

    maybe a toggle of the dynamically set of open-mega-a class could help…

    in reply to: iPad drop down menu won't "tap-off" #1122223

    i tried this first to see if i could be specific only to non mega-menu issue:

    function add_touch_fix(){
    ?>
    <script>
    (function($){
    	const iPadMenuFix = function() {
            $(this).closest('ul.sub-menu').delay(1000).animate({opacity: 0,},300, function() {
                $(this).css('visibility', 'hidden');
            })
        };
    
        $('#avia-menu').find('.menu-item-has-children:not(.menu-item-mega-parent).current-menu-item a').on('touchend', iPadMenuFix);
        console.log($('#avia-menu').find('.menu-item-has-children:not(.menu-item-mega-parent).current-menu-item a'));
    
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_touch_fix');

    but it does not exclude the sub-menu hide on mega-div

Viewing 30 posts - 6,661 through 6,690 (of 11,745 total)