Forum Replies Created

Viewing 30 posts - 61 through 90 (of 10,306 total)
  • Author
    Posts
  • 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)

    in reply to: Equal Column Height Not Working #1442273

    you can do it that way too – with 5 iconboxes inside one 1/1 column.
    css code on that page:
    https://webers-testseite.de/iconboxes2/

    hm – if i use the code snippet from here
    this is the result all tags are closing the right way – but only with div.

    if i use f.e. the p-tag:

    or – the way you noted the snippet and that is the way i learned it too:

    but i guess it is only a problem here with the p-tag ( span is working )
    a remove of the filter wpautop does not bring success.
    – i can live with the div!

    in reply to: Content not displaying on front end #1442148

    go to the editor and open the first 1/3 column – you can find there on “Row Margins” : custom margins – and a negative value.
    the whole column line is now shiftet to top by that amount ( 60px). For the effect to make sense, they will have a higher z-index, overlapping your heading.

    If you like to preserve that behaviour – pull your Heading into a 1/1 container and shift this to top. And get rid of the settings on your first 1/3 column. To obtain this looking i guess there is a no “Space Between Columns” defined.

    Would be perfect if i can use it like that!

    of course – that’s why I uploaded it for you to download. – If you need more icons for replacement – let me know.
    btw: have a look at this: https://www.svgrepo.com/vectors/solar-panel/monocolor/

    in reply to: Equal Column Height Not Working #1442064

    the columns are the same height – but you do not see it. What you see is the icon-box background – and the height of them is different due to content amount.
    You can see here what the crux is: https://webers-testseite.de/equal-height/ – look to the bottom columns.

    maybe you decide to not use the iconbox – but: https://webers-testseite.de/iconboxes/

    in reply to: List not hyphenating #1441995

    hi @ismael : this is one of the interesting trends of the last time
    that pseudo element :has

    https://css-tricks.com/the-power-of-has-in-css/

    the first selector that belongs to a parent if a child is present. More and more browser will support it.
    and it’s finally time for that. You had to laboriously toggle classes on the parent element via script to get a selector that then takes effect.

    • This reply was modified 1 month, 2 weeks ago by Guenni007.
    in reply to: Random (Background) image #1441983

    give a unique ID to your color-section – here in my case it was: randomized
    this is for only one page of mine so there is the is_page conditional.
    upload the images via ftp into a given folder ( here it is a folder on uploads-folder: random-images
    then put only the image-filenames into the array.

    function randomize_bg_image() {
    if(is_page(34024)){ 
    ?>
    <script type="text/javascript">
    (function($){
    	    var images = ['o2-7.jpg', 'o2-1.jpg', 'o2-2.jpg', 'o2-3.jpg', 'o2-4.jpg', 'o2-5.jpg', 'o2-6.jpg'];
    	    $('#randomized').css({
    	    	'background-image': 'url(/wp-content/uploads/random-images/' + images[Math.floor(Math.random() * images.length)] + ')'
    	    });
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action( 'wp_footer', 'randomize_bg_image' );

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

    PS: you can use all element options – f.e. background-color of the icon on iconbox-top – or animation styles – like pulse on hover.

    I would upload an unspectacular iconfont. Here I have inverted numbers. Link

    Then upload your coloured icons and make a note of the path for each icon.
    now replace an icon of this font with the noted links of your coloured icons

    this comes to your quick css:

    .av_font_icon {
        overflow: visible !important;
    }
    
    [data-av_iconfont="solar-icons"]  {
      content: " ";
      background-size: 100px;    
      background-position: center center;
      background-repeat: no-repeat;
      border: none !important;
      color: transparent !important;
    }
    
    [data-av_iconfont="solar-icons"][data-av_icon="\e800"]{background-image: url(/wp-content/uploads/globe.gif) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e801"]{background-image: url(/wp-content/uploads/broken-spheres.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e802"]{background-image: url(/wp-content/uploads/bubbles.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e803"]{background-image: url(/wp-content/uploads/chrome-balls.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e804"]{background-image: url(/wp-content/uploads/film.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e805"]{background-image: url(/wp-content/uploads/glas-dots.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e806"]{background-image: url(/wp-content/uploads/glas-waben.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e807"]{background-image: url(/wp-content/uploads/green-world.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e808"]{background-image: url(/wp-content/uploads/home.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e809"]{background-image: url(/wp-content/uploads/hui.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e80a"]{background-image: url(/wp-content/uploads/lotus.svg) !important}
    [data-av_iconfont="solar-icons"][data-av_icon="\e80b"]{background-image: url(/wp-content/uploads/nachhaltig1.svg) !important}
    
    

    Now – if you place your circled number 1 – you can see even in preview – the replaced colored icon:
    And – yes even animated gifs can be inserted:

    see replaced first icon : https://webers-testseite.de/abc/

    PS: on that page with the snippets – you can see that i use the elements sizes for the icons – to generate the background-size :
    https://enfold.webers-webdesign.de/colorized-font-icons/

    if you like to use that too – remove from css code above the background-size line

    function transfer_fontsize_to_backgroundsize(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
    (function($) {     
    	$('.av-icon-char[data-av_iconfont="solar-icons"], .iconbox_icon[data-av_iconfont="solar-icons"]').each(function() {
    		var iconLineHeight = parseInt($(this).css('line-height'));
    		var iconPadding = parseInt($(this).css('padding'));
    		$(this).css('background-size', (iconLineHeight + 2*(iconPadding))+'px');
    	});
    })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'transfer_fontsize_to_backgroundsize');

    by the way – same thing on

    .click(function() {
    

    it is now:

    .on('click', function() {
    

    and please think of since jQuery 3 the (window).load( is deprecated – it is now : (window).on('load',
    ( purely cosmetic – I personally prefer to write all jQuery as $ – and redeclare it by wrapping it in a jQuery function. )

    function av_move_search(){
    ?>
    <script type="text/javascript">
    (function($){
    	$(window).on('load', function(){
    		$('#menu-item-search').detach().appendTo('#header_meta .sub_menu ul');
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'av_move_search');

    by the way: your cloudflare security blocks your website (on all of my browser – even on those where i do not run µBlock or private window only.

    aha – the do_shortcode is the crux – i tried it with tags too and have only the $preview wrapped.
    Thanks – but there seems to be an auto close on div wrapping – there are empty divs after the preview insertion.
    btw. with p tags it does not work that way

    This is enough:

    add_filter("avf_portfolio_grid_excerpt", function ($excerpt, $entry) {
        $id = $entry->ID;
        $preview = get_post_meta($id, '_preview_text', true);
        if ($preview) {
            $excerpt = "<div class='av-custom-grid-excerpt-container'>" . do_shortcode($preview);
        }
        return $excerpt;
    }, 10, 2);
    in reply to: List not hyphenating #1441794

    hyphens: auto will break words with a dash : Link
    see on “can i use” the support for hyphens auto: https://caniuse.com/mdn-css_properties_hyphens_auto

    you can use ismaels css in combination with hyphens

    #main li {
       word-wrap: break-word;
       overflow-wrap: break-word;
       -webkit-hyphens: auto;
       -moz-hyphens: auto;
       hyphens: auto;
    }
Viewing 30 posts - 61 through 90 (of 10,306 total)