Forum Replies Created

Viewing 30 posts - 1,021 through 1,050 (of 10,888 total)
  • Author
    Posts
  • this is GDPR info (DSGVO) – you can click the third green button “Ablehnen” : Reject/Decline. This means that you do not agree to the use of cookies. Only those that are essential.
    _________
    PS: maybe this would be a nice to have feature. Like in Image Galleries to have here an optional Tooltip over the images.

    that title you see on the image from: https://kriesi.at/support/topic/how-to-get-rid-of-curved-arrow-on-linked-images-and-allow-image-title-to-show/#post-1427817 – is a “tooltip” and – you can not influence that. It is part of the standard behavior of all browsers – and position is dependent on where your mouse rests over the image. ( The title tag from DOM i used for inserting it to overlay – is part of enfold source code ).

    did you follow the link of my test-page? there you have the title tag on that position you like
    see: https://webers-testseite.de/image-title-to-hover/

    SEO remains unaffected, as the title tag was there before and is still there after the code. The visibility has only changed. Apart from that, from a SEO point of view, the alt tag on the image is more important than the title tag.

    you are talking about those title tags showing on hovering an image for a while:

    by the way – i tested this function first – and this works on developer tools – but only the mutationObserver is working the correct way.

    (function($) {
      $('.avia-image-container.show-title').each(function() {
          var imgLabel = $(this).find('.avia_image').attr('aria-label').replace(/\-|_/g, " ");
          $(this).find('.image-overlay-inside').append('<span class="overlay-title">'+imgLabel+'</span>'); 
      });
    })(jQuery);

    it would be nice to have the title inside that span.image-overlay-inside
    This would be easy if the overlay exists from the beginning ( on page load) . On avia.js – we see – it is generated via if(!overlay.length)
    having a whole child-theme avia.js seems to be a way – but we can use mutationObserver to see when it is added to DOM – and then insert the title.

    in my test case i gave a custom class to the image alb element : show-title
    now i can observe these classes if there is a new node added – and if so – add some html to it ( btw. i use the aria-label from the anchor – because if you set a custom title to the image alb this will be better to have)

    function transfer_label_to_overlay(){
    ?>
    <script>
    (function($) {
      var target = document.querySelectorAll(".show-title");
      var observers = [];
      // configuration of the observer
      var config = { attributes: true, childList: true,  subtree: true  };
    
      for (var i = 0; i < target.length; i++) {
          // create an observer instance
          observers[i] = new MutationObserver(function(mutations) {
              mutations.forEach(function(mutation) {            
                $(mutation.addedNodes).find(".image-overlay-inside").each(function() {
                  var imgLabel = $(this).closest('.avia_image').attr('aria-label').replace(/\-|_/g,' ');
                  $(this).append('<span class="overlay-title">'+imgLabel+'</span>');      
                });
              });
          });
          // pass in the target node, as well as the observer options
          observers[i].observe(target[i], config);
      }
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'transfer_label_to_overlay');

    now for quick css:

    .avia_transform .show-title a:hover .image-overlay {
      opacity: 1 !important;
      background-color: rgba(255,255,255,0.1);
    }
    /*** styling the title is up to you ****/
    .overlay-title {
      display: inline-block;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 500;
      font-size: 16px;
      line-height: 24px;
      font-family: var(--enfold-font-family-body);
      color: var(--enfold-main-color-heading);
      text-shadow: 1px 1px 3px #333;
      background-color: rgba(255,255,255,0.8);
      padding: 0 20px 5px;
      border-radius: 5px;
    }
    

    ( if you do not want the hover image behind the title set the pseudo-class to display : none)

    .show-title .image-overlay-inside::before {
      display: none;
    }

    see: https://webers-testseite.de/image-title-to-hover/
    left hand – no custom class : show-title – right hand: with custom-class.

    but: what you see on images with no link is not an enfold feature – this is standard behavior of wordpress images and the title tag.
    Now we had to find a way to show the titles on images that are linked to ? what – lightbox or always – even if they link to other targets?

    I think you need to be more specific about your plan so that we can give you some advice.
    Which data should be accessed and what should be achieved in each case?

    in reply to: Infinite scroll #1427490

    have a look at this – maybe it is still working:
    https://kriesi.at/support/topic/quick-way-to-add-infinite-scroll/#post-681490

    in reply to: insert javascript #1427445

    hm ?

    some thoughts on custom scripts via functions.php

    you can do that:

    function custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
      $(window).on('load', function(){
        $('.open-popup-link').trigger('click');
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Maybe – i think it will be enough to just wait til DOM is loaded and not the whole page
    so this could therefore be sufficient

    function custom_script(){
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($) {
    	    $('.open-popup-link').trigger('click');
    	})(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    But
    did you really got that class on the anchor?
    Lets say you got a button as trigger for the inline popup loading. And you gave a custom class to that button element – the class will be at the button wrapper – not the anchor!

    so the selctor must be different:

    function custom_script(){
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($) {
    	    $('.open-popup-link a').trigger('click');
    	})(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');
    in reply to: body font very small #1427436

    unter Allgemeines Styling – gibt es den Tab ganz am Ende: “Typography”. ( vielleicht sollte man das im deutschen dann doch Typografie nennen)
    dort den ersten Switch mal umlegen und das gewünschte dann setzen:

    in reply to: Difference in size for transparent and non-transparent logo #1427433

    it’s ok for me – the css code is now not in there ( earlier when I looked he was inside ) – and the one logo on privat is now again bigger than in the other page.

    but now to synchronize it is only:

    span.logo.avia-standard-logo {
      padding: 10px !important;
    }
    in reply to: insert javascript #1427431

    keep in mind that the

    jQuery(window).load(function(){
    

    is deprecated, you now have to use:

    jQuery(window).on('load', function(){
    

    I am always happy when the solution is in place – but there is no feedback at all. ;)
    OK – seems to be solved.

    in reply to: font styling isn’t working #1427344

    again – if the belgium domain with your nick is the page you are talking about: i do only see an open-sans font uploaded. – No Montserrat.
    If you hamper google font support by the theme on GDPR reasons (DSGVO) in the functions.php the choice of the Montserrat Font from Drop-Downlist (except the fonts on the bottom: uploaded fonts ) will have no effect.

    in reply to: 100% width video background in color section #1427239

    what kind of link did you enter on the input field?
    try : https://www.youtube.com/watch?v=_Xbn6nNAIwc

    i think the black bars are part of your video itself.
    the video only got 2:3 aspect ratio

    see here your video – croped to a 16/9 video :
    https://webers-testseite.de/responsive-bg-video/

    ( i will remove it after you have seen the issue)

    • This reply was modified 11 months, 3 weeks ago by Guenni007.
    in reply to: font styling isn’t working #1427235

    The drop-down menu at Advanced styling to choose the font that should be loaded – did you scroll to the bottom of that list and choose your Montserrat Font from there?
    the manual uploaded Fonts are placed at the end of the drop-down list!
    ________
    btw. is that .be page the page it concerns? – i do not see any uploaded Montserrat there.

    on the one installation you got :

    span.logo.avia-standard-logo {
      padding: 10px !important;
    }
    span.logo a img {
      padding: 10px;
    }

    two times padding. The privat installation does not have that setting.

    in reply to: How to hide theme version and name? #1427231

    put this to your child-theme functions.php:

    add_filter('avf_debugging_info', 'remove_debugging_info', 10, 1);
    function remove_debugging_info($info) {
    return false;
    }
    in reply to: Masonry no entries fallback #1427137

    on my test environment – this is standard behavior.
    if there are no entries there is no masonry shown.
    Only an element ( here it is a heading ) got the class: el_before_av_masonry_entries

    in reply to: overlay #1427130

    i recommend to use now the svg dividers – instead of the slanted option for the color sections.
    the slanted option is only available for bottom styling.
    The svg dividers you can set both top and bottom for the same color-section
    _________

    for that behavior the parallax settings are set on the last tab (advanced) of the elements (columns)
    I recommend not to set the first option (Parallax – default setting – used for all screen sizes (no media query)) and start with the next two options on Parallax Rules. ( And for the Column Position this is the same recommendation.)
    Parallax – for large screens (wider than 990px – Desktop)
    Parallax – for medium sized screens (between 768px and 989px – eg: Tablet Landscape)

    for mobile devices with narrow screen widths, it often makes no sense to set a parallax effect, as you hardly notice the background anyway.
    Parallax – for small screens (between 480px and 767px – eg: Tablet Portrait)
    Parallax – for very small screens (smaller than 479px – eg: Smartphone Portrait)

    in reply to: header widget #1427129

    2) Under Widgets – did you create a widget area : header ?
    Your code alone is not enough, the snippet only assigns the widget area position in the DOM.

    1) I don’t think the fact that a child theme is used here has anything to do with it. There can be many reasons. It starts with the hoster, or certain htaccess settings could also be responsible. Some security plugins can also be a reason.

    PS : how was the child theme created? Is it the one provided by Enfold – or a manually created version?

    in reply to: show background on password page #1427113

    sadly there is no class for those pages that are password protected – so maybe it is only possible to use the page-id of those pages.

    #top.page-id-15240 .container_wrap.container_wrap_first {
      background: url(//dorfgeschichte.li/wp-content/themes/enfold/images/background-images/floral-dark-compressed.png) !important;
      background-repeat: repeat;
    }

    but: because you set the background to all pages ( except the home page ) to wrap_all container – you only need to get rid of the backgrounds overlaying this:

    #top.page-id-15240  #main,
    #top.page-id-15240 .container_wrap.container_wrap_first {
      background: transparent !important;
      min-height: 75vh
    }
    in reply to: slider above the password entry? #1427109

    if both sliders are determined by their alias – you can try that with one function too. Both i guess will work:

    
    add_action( 'ava_after_main_container', 'rev_slider_mod', 10 );
    function rev_slider_mod() {
    	if ( is_page(15240) ) {
    		echo do_shortcode('[rev_slider alias="bereich-vorstand"][/rev_slider]');
    	}
    	if ( is_page(2959) ) {
    		echo do_shortcode('[rev_slider alias="bereich-mitglieder"][/rev_slider]');
    	}
    }

    for color try in quick css:

    #top .rs-parallax-wrap .rs-layer {
      color:  yellow !important;
    }

    You have mistakenly assumed that deactivating the mode (on Maintenance Mode) will also reset the setting at the bottom (Select Maintainance Mode Page). If this were technically possible, it would be a good thing. However, you must first reset the page to the default value, which is “Select page” (and that means no page is selected) – only then you should set the checkbox at the top to unchecked (Disable Maintainance Mode).
    That’s why I set the numbering in the drawing.

    1) first disable the page you choose
    2) then disable the Mode

    oh wow – long time ago
    ps on that given example page there are both versions – on top : showing the bg-image of that weekday
    on bottom randomized.

    by the way: here it is for the seasons:

    function scheduling_per_season(){
    if(is_page(39621)){
    ?>
    <script>
      var currentTime = new Date();
      var month = currentTime.getMonth() + 1;
      var imglocation = "/wp-content/uploads/season-images/";  // put the images in this folder
    
    	switch(true) {
    		case (month >= 6 && month <= 8):
    			var seasonImg = "summer.jpg";
    			var season = "summer";
    			break;
    		case (month >= 9 && month <= 11):
    			var seasonImg = "fall.jpg";
    			var season = "fall";	  
    			break;
    		case (month == 12 || month == 1 || month == 2):
    			var seasonImg = "winter.jpg";
    			var season = "winter";
    			break;
    		default:
    			var seasonImg = "spring.jpg";
    			var season = "spring";
    	}
      	document.getElementById('changed_on_season').style.backgroundImage = 'url(' + imglocation + seasonImg + ')';
    	document.body.classList.add(season);
    	document.getElementById('changed_on_season').getElementsByClassName("av-special-heading-tag")[0].textContent = "It is "+season+""; 
    	
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'scheduling_per_season');

    see: https://webers-testseite.de/season-scheduling/

    Are you looking to your domain as logged-out user?
    ________
    Or have I misunderstood your question and it remains active – even though the mode is disabled?
    Then it is probably the case that you first have to remove the page that was originally selected there (i.e. set it to the “select Page” ( ) and then deactivate the mode. Like Mike mentioned above.

    • This reply was modified 11 months, 4 weeks ago by Guenni007.
    • This reply was modified 11 months, 4 weeks ago by Guenni007.
    in reply to: Password protected post image in masonry not displayed #1426935

    And you did already what Ismael said: “Look for this block of code around line 948, and remove it. ” ?

    in reply to: Password protected post image in masonry not displayed #1426921

    you now got under the folder: config-templatebuilder two folders ( one for legacy case – and a default one )
    you now find those files under:
    /enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php ( the lines are : 1244 ff)
    and
    /enfold/config-templatebuilder/avia-shortcode-legacy/av-helper-masonry.php ( lines : 978ff )

    don’t know if it is needed to edit both – i think it will be enough to edit only the first one.

    in reply to: Google search results show ‘Untitled’ #1426873

    Have you ever thought about displaying a real clock in the logo?
    see: https://weber.tips/clock/

    in reply to: How to insert line with own icon #1426850

    Or if it only affects a few icons and it is therefore not worth uploading your own font icon set, you can also swap the icon via a user class and using css.
    The advantage could then also be that multi-colored icons are possible.

    First case: you see a different html-entity f.e. here: https://www.toptal.com/designers/htmlarrows/
    then you can replace that content directly:
    my custom class is in this case: my-separator-icon

    #top .my-separator-icon .av-seperator-icon:before {
      content: "\00A7";
      font-size: 40px;
    }

    next colored icons:
    my custom class is in this case: my-colored-separator-icon

    #top .my-colored-separator-icon .av-seperator-icon:before {
      content: "";
      display: inline-block; 
      position: relative;
      width: 40px;
      height: 40px;
      background: url(/wp-content/uploads/webers-globe1.svg);
      background-size: contain;
      background-repeat: no-repeat;
    }

    see: https://webers-testseite.de/separator-icons/

Viewing 30 posts - 1,021 through 1,050 (of 10,888 total)