Forum Replies Created

Viewing 30 posts - 481 through 510 (of 11,475 total)
  • Author
    Posts
  • Do you use any plugin that transforms your jpg to webp – and then uses these webp instead.
    see :

    supposedly it is a jpg according to the file extension – in fact it is a webp. The conversion may be the reason for the color shift.

    Inspecting your original “jpg” : https://chappledesign.com/wp-content/uploads/2024/12/64_TR6_Triumph_05.jpg

    photoshop does not open it as jpg – renaming it to webp – opens in Photoshop!

    @mike – it is as mentioned just before head tag is closing. But i do not have it on any of my enfold installations even on those which are in combination with Yoast SEO.

    but nevertheless in combination with that “new” indexifembedded it is ok :
    https://developers.google.com/search/blog/2022/01/robots-meta-tag-indexifembedded

    But can you please link to an image that shows the unwanted effect.

    in reply to: I have alignment issues #1473612

    nice to see the page now – then it is much easier to give advice.
    First – why do you use the image as background? – use it as image element inside that column.
    Best would be to give a custom class to that flex-column with your image.

    to see an interims result – that could be done:

    @media only screen and (min-width: 768px) {
      .flex_column.av-cvo-a82f70a62f8490e3b0b75af0c90996f9 {
        position: absolute;
        bottom: 0
      }
    }

    But: i guess we can have better results if you do not use the equal height option! because in responsive case the height of those containers are too big.
    So can you please give to the flex-column with that image a custom class and remove the equal height option – then i check if there is a better solution for every screen width.

    See example with css code : https://webers-testseite.de/greg/

    in reply to: Content Slider Customization #1473611

    if you got different content height the arrows will adjust because of 50% position – maybe it is best to have an absolute value for the top position.
    Next i think they should not lay over content
    Because the demo ( Link ) only got smallarrow setting and no headings – this is a interims solution:

    #top .avia-smallarrow-slider-heading {
      height: 100%;
      position: absolute;
    }
    
    #top .avia-smallarrow-slider .avia-slideshow-arrows {
      position: absolute;
      width: 100%;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3
    }
    
    #top .avia-smallarrow-slider .avia-slideshow-arrows .prev-slide {
      left: -35px
    }
    
    #top .avia-smallarrow-slider .avia-slideshow-arrows .next-slide {
      right: -35px
    }
    in reply to: Fixed frame with 1px border #1473609

    i guess – as the frames – it will be better for positioning to choose display : fixed
    I don’t know how the vw unit reacts to the scroll bar thickness. However, it seems to be the case that this must unfortunately be taken into account. For this reason alone, it is important to align all four pseudo containers to the top left.
    for the mentioned Demo this works in all browser i do have on my Mac (FF dev, FF, Safari, Chrome)

    .av-frame:before,
    .av-frame:after {
        pointer-events: none;
        display:block !important;
    }
    
    .av-frame.av-frame-top.av-frame-vert:before {
        content: '';
        left: 30px;
        top: 30px;
        height: calc(50vh - 30px);
        width: calc(50vw - 38px);
        border-top: 1px solid #102f5d !important;
        border-left: 1px solid #102f5d !important;
        position: fixed;
    }
    .av-frame.av-frame-right.av-frame-hor:before {
        content: '';
        left: calc(50vw - 8px);
        top: 30px;
        height: calc(50vh - 30px);
        width: calc(50vw - 38px);
        border-right: 1px solid #102f5d !important;
        border-top: 1px solid #102f5d !important;
        position: fixed;
    }
    .av-frame.av-frame-bottom.av-frame-vert:before {
        content: '';
        left: calc(50vw - 8px);
        top: 50vh;
        height: calc(50vh - 30px);
        width: calc(50vw - 38px);
        border-right: 1px solid #102f5d !important;
        border-bottom: 1px solid #102f5d !important;
        position: fixed;
    }
    .av-frame.av-frame-left.av-frame-hor:before {
        content: '';
        left: 30px;
        top: 50vh;
        height: calc(50vh - 30px);
        width: calc(50vw - 38px);
        border-left: 1px solid #102f5d !important;
        border-bottom: 1px solid #102f5d !important;
        position: fixed;
    }

    if you got a different frame width than 10px we had to adjust some settings.

    in reply to: Fixed frame with 1px border #1473607

    add to your css of first post :

    .av-frame:before,
    .av-frame:after {
      pointer-events: none;
    }

    i do not see your site – but with the demo : “Enfold Hotel” i made some tests in dev tools.
    There is always a shift of bottom lines. Some browsers have that border/height 1px difference – so mybe it would be better to position all in relation to the top position.

    in reply to: Load time – scripte – lighthouse speed test #1473602

    @strumpumpel:

    Guenni007 so great for your fast help!
    Arrr … i don’t usede the code tag …. :(
    Sorry total!
    Bist Du Deutscher?

    Ja – der andere Beitrag ist schon zu.

    btw. if you use on your landing page the advanced layer slider element – it is hard to get good loadiing times.
    not least because the slider needs to be time-controlled to load the content. That’s the point behind it. So if you see my test page, the slider is set to show the entire content after approx. 7 seconds.

    if you got an advanced layerslider on your landing page – then it might be usefull to play a bit with the advanced layerslider performance settings:
    there is on “layerslider first window” on top right a gear icon which opens the settings dialog for gloabl settings of layerslider.
    If you have opend one slider – you got on the top left “Project Settings” here are the performance settings for the specified slider.

    in reply to: Google tag manager script in function.php error #1473589
    in reply to: Adding google tag manager in Enfold #1473588

    the signs of <!-- Google Tag Manager --> are not right – and you used instead of two single quotes on one place one double Quote
    (here after that part : …'dataLayer'?'&l='+l: )

    in reply to: Adding google tag manager in Enfold #1473587

    or try this ( replacing your GTM-IDs ) with copy&paste:

    i think it is ok to have both in head section

    function ava_g_tag_custom_script() { 
    ?>
    <!-- Google Tag Manager -->
    <script>
      (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
      'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer','GTM-XXXXX');
    </script>
    <!-- End Google Tag Manager -->  
    
    <!-- Google Tag Manager (noscript) -->
    <noscript>
      <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXX"
      height="0" width="0" style="display:none;visibility:hidden"></iframe>
    </noscript>
    <!-- End Google Tag Manager (noscript) --> 
    <?php
    }
    add_action('wp_head', 'ava_g_tag_custom_script');

    but if you like to have the noscript in body tag:

    function ava_g_tag_custom_script() { 
    ?>
    <!-- Google Tag Manager -->
    <script>
      (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
      'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer','GTM-XXXXX');
    </script>
    <!-- End Google Tag Manager -->  
    
    <!-- Google Tag Manager (noscript) -->
    <noscript>
      <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXX"
      height="0" width="0" style="display:none;visibility:hidden"></iframe>
    </noscript>
    <!-- End Google Tag Manager (noscript) --> 
    <?php
    }
    add_action('wp_head', 'ava_g_tag_custom_script');
    in reply to: Adding google tag manager in Enfold #1473584

    it is very hard to check your codes – if you do not use here the code tag

    easiest way is to click once the code tag button – enter your code – click again the /code button
    because sometimes it is only the use of uncorrect quotation marks. etc.

    in reply to: File download does not work #1473569

    did you compare the htaccess files – if there are differences between those who work and those which do not work?

    espacially look for : application/octet-stream

    by the way for Enfold Download Button – fill out only the Use File Input field

    in reply to: Remove lightbox-link from image #1473568

    can you try in child-theme functions.php:

    add_filter( 'avf_post_ingnore_featured_image_link', '__return_true' );
    
    in reply to: How to set a phone number link into an animated number #1473564

    well there is on element itself on adanced tab – link setting – choose manual:

    Doing this – will end on a wrap all inside that element with an anchor tag.
    This anchor tag is displayed as block – so the whole width of the element ( if it is inside a 1/1 column it will have active click for the whole width.

    if you only like to have the active click area on that element:

    put this to quick css:

    .avia-animated-number {
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }

    can you link to one image example ?

    and by the way 9400×400 – really? can you link to one of those big images.
    WP has for media library a dimension threshold at 2560px – so if bigger dimensions are uploaded a new source will be generated with : filename_scaled.

    What color profile did you choose on photoshop export: – did you check to have rgb export?

    in reply to: SVG Logo: incorrect path color fill in (non-) scrolled header #1473556

    your welcome – but if you like send me the link anyway.

    if you use both options this should work. But if only fill color is different then it might not be necessary to use them both – as you can see on my example page.
    If you use both: look with a good text editor (for windows : notepad++ or for mac : sublimetext ) inside both svg files – there are the same classes used – as usually by illustrator – these are the st0, st1 etc.

    Now the transparency logo comes later in the DOM – so this fill rules inside the transparency logo rules the css for st0.
    Or aslong your external css does not differ between both logo files – these rules are woring on both files.
    The one for non transparency case is ( .avia-svg-logo > a > svg ) – and the one for transparency is at ( .avia-svg-logo-sub > svg )

    Yes – send me the link to your page via e-mail. Everything is under my nick.

    have a look inside your svg code – i guess both will have the same st classes ( these are former illustrator standard classes) in the mean-time it is cls. But different name same shit.
    if you inspect my test page: https://webers-testseite.de/
    i only use my colored svg logo – have unique classes set and the transparency logo isn’t a different one but just different fill:

    .html_header_transparency #header:not(.header-scrolled) .buchstabe {
      fill: #FFF;
    }

    may i see your page it concerns?

    in reply to: remove container wrappers around code widget #1473454

    i didn’t implement the script. Thats why i wrote: “Edit: you had to adopt now the scrubbing script to its selectors.”
    Your question only referred to customization without additional wrappers. A little work should still be left for you.

    Edit: now i have implemented that script – but you see – bigger video files do not work – and even the current mp4 with 10sec and less resolution do not work nice ( as the demo too ). So believe me Apple realizes this effect in a different way.

    in reply to: remove container wrappers around code widget #1473449

    well – put your code block just inside a color-section – that color section set custom class to: special-vids
    inside you got your html structure like:

    <section id="scrubs" class="vid">
    	<div class="holder">
    		<video src="/wp-content/uploads/Time-Lapse.mp4" autoplay muted loop playsinline></video>
    	</div>
    
    	<div class="story">
    		<div>
    			<h3>In the heart of Wildrise…</h3>
    		</div>
    		<div>
    			<h3>…where the breezes play.</h3>
    		</div>
    		<div>
    			<h3>We embrace the call of the wild each day.</h3>
    		</div>
    		<div>
    			<h3>Untamed places stretch,</h3>
    		</div>
    		<div>
    			<h3>vast and wide.</h3>
    		</div>
    		<div>
    			<h3>Whispering secrets of a world outside.</h3>
    		</div>
    	</div>
    </section>

    put this to your child-theme functions.php:

    function scrub_preparation_of_color_section() { 
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($){
    		$('.avia-section.special-vids ').each(function() {
    			var vids = $(this).find('.vid').detach().html();
    			$(vids).prependTo($(this));
    			$(this).addClass('vid').find('.container').remove();
    		});
    	})(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'scrub_preparation_of_color_section');

    see: https://webers-testseite.de/scrubbing-videos/

    my css on that page is:

    .responsive body#top {
        overflow-x: visible;
    }
    
    #wrap_all {
        overflow: visible;
    }
    
    .avia-section.vid {
      height: 600vh;
      position: relative;
    }
    
    .avia-section.vid div.holder {
      position: sticky;
      top: var(--enfold-header-height);
    }
    
    .avia-section.vid video {
      width: 100%;
      height: 100vh;
      object-fit: cover !important;
    }
    
    .avia-section.vid div.story {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    
    .avia-section.vid div.story div {
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    but i do not want to style it till the end. have a look how that is made in that video. – and how to handle the other .avia-section
    Edit: you had to adopt now the scrubbing script to its selectors. And perhaps a debounce and resize will be needed.

    you can use the embedded debounce function of enfold:

    function ava_add_custom_script(){
    ?>
    <script>
    (function($){
      function b() {
          // here comes the script …
      }
    
      $(window).on('debouncedresize', function() {
        b();
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_add_custom_script');
    in reply to: remove container wrappers around code widget #1473438

    Can you please post the code you like to insert? Where did you see that effect you like to reproduce?
    And where do you like to insert it – as first child in #main or between other alb elements?

    why do i ask this: if it is first child inside #main you can use that filter: ava_after_main_title

    f.e.:

    add_action('ava_after_main_title', function() {
    	if ( is_page(49162)){
    		echo '<section class="vid">';
    		echo '<div class="holder">';
    		echo '<video class=" " preload="metadata" autoplay=" " muted=" " playsinline=" " loop=" " controls=" " id="player_27_1266727400_788445252_html5" src="/wp-content/uploads/Time-Lapse.mp4"></video>';
    		echo '</div>';
    		echo '</section>';
    	}
    });

    see: https://webers-testseite.de/no-wrappers/

    in reply to: Gap at bottom of page on mobile #1473435

    i do not see any white gap on the bottom – neither on dev tools nor on my iPhone.

    or if you got h1 headings in content – why not using h2 tag by using the same filter

    function avf_title_args_mod( $args, $id ) {
        if ( !is_archive() ) {
            $args['heading'] = 'h2'; 
        } 
        return $args;
    }
    add_filter( 'avf_title_args', 'avf_title_args_mod', 10, 2 );
    in reply to: Customized widget above another widget but only on one page #1473388

    I usually use this type of notation using a function name to help me remember what the function is supposed to do. However, this also requires a meaningful function name. Something like : insert_widget_before_footer
    Note that the function names are separated by an underscore.

    You can also use a notation that makes a function name superfluous:

    add_action('ava_before_footer', function() {
    	if (is_page(3416)) {
    		dynamic_sidebar( 'maps' );
    	}
    	dynamic_sidebar( 'CTA-Footer' );
    });

    Incidentally, there are plugins that build conditional logic into widgets. The standard plugin is complex but powerful; another small plugin is more intuitive to use: https://wordpress.org/plugins/widget-options/
    but all these rules the widgets itself and not the widget areas. But f.e. if you have one widget area – you can put in the cta-button and maps widget and determine that the maps widget only is shown on contact page.

    in reply to: Customized widget above another widget but only on one page #1473386

    the code breaks because function names should be unique! if you got “avia_above_footer” twice in your child-theme functions.php it will come to conflict.

    If you rearange your codesnippet above you see the similarity of your codes:

    function avia_above_footer(){
        dynamic_sidebar( 'Maps' );
    }
    add_action('ava_before_footer','avia_above_footer');

    now you see that you can use the same conditional usage of your “ava_after_content”
    to avoid having a similar function name you can rename the one function – or simply combine both rules in one function.

    function avia_above_footer(){
        dynamic_sidebar( 'CTA-Footer' );
        dynamic_sidebar( 'Maps' );
    }
    add_action('ava_before_footer','avia_above_footer');

    you can now wrap the one of those lines inside a conditional setting:

    function avia_above_footer(){
    	dynamic_sidebar( 'CTA-Footer' );
    	if (is_page(3416)) {
    		dynamic_sidebar( 'maps' );
    	}
    }
    add_action('ava_before_footer','avia_above_footer');
    in reply to: MEGA MENU COLUMNS #1473382

    And maybe you decide to have the burger-menu on top:

    #top #header #av-burger-menu-ul {
      vertical-align: top;
      padding: 125px 0 !important;
    }
    in reply to: add custom icon #1473364

    i guess you have that warning on uploading your icons to fontello about compound path.
    you can edit your vector based icon f.e. in illustrator – open your svg and look at Object Menu – Compound Path – create
    i hope that this will be the names – because i’m working on german versions : Objekt – zusammengesetzter Pfad – erstellen.

    Working with Pathfinder is not enough. You had to go that way.

    ________

    Mikes Way is to substitute an existing entypo-fontello icon by an image. Big advantage – you can use the icon font to insert even colored svg icons.
    see here: https://enfold.webers-webdesign.de/colorized-font-icons/

    in reply to: MEGA MENU COLUMNS #1473324

    Well enfold provided the option to only show submenu items on hover or on click.

    If you choose click we can edit that to only show one toggle open.
    then put this to your child-theme functions.php:

    function only_one_submenu_open_on_burger(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
      (function($) {
        $('body').on( 'click touch', '.av-active-burger-items > a', function () {
          $(this).parent('li').siblings().removeClass('av-show-submenu');
          $(this).parent('li').siblings().find('ul').slideUp( "fast");
        });
        $('body').on( 'click touch', '.av-active-burger-items .av-width-submenu > a', function () {
          $(this).closest('.sub-menu').siblings().find('li').removeClass('av-show-submenu');
          $(this).closest('.sub-menu').siblings().find('ul').slideUp( "fast");
        });
      })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'only_one_submenu_open_on_burger');

    after doing that i will have a look to your site to optimize if needed.

    in reply to: MEGA MENU COLUMNS #1473317

    maybe you can get comfortable with not having all top-level menu items open with a drop down.
    You could, for example, only have one of them open at a time. When you click on another one, the one open menu item closes.

Viewing 30 posts - 481 through 510 (of 11,475 total)