Forum Replies Created

Viewing 30 posts - 4,081 through 4,110 (of 11,918 total)
  • Author
    Posts
  • in reply to: link on the same page inside lightbox #1325828

    can you give to that link the class: popup-modal-dismiss and see if that is enough to do

    the function on magnific popup doku to close the popup is: $.magnificPopup.close();
    may i see your function of the popup?

    in reply to: SVG Logos Issue #1325827

    first – did you copy&paste it?
    because the code here: Link has wrong quotation marks.

    The code above can’t affect the logo area.
    The function ( trimByWord ) that is defined there is exclusively then applied below to selectors that are not used in the logo or even header.

    please just let a mod look into your installation. I suspect that it is due to something completely different.
    My support on this topic is now over.

    btw – if you load the jQuery in the footer:

    then you must change the code by loading it in the wp_footer too! – last line:

    add_action('wp_footer', 'custom_excerpt_setting');
    
    in reply to: SVG Logos Issue #1325767

    you only got this in your child-theme functions.php ?

    without on top the

    <?php
    

    the snippets comes below that starting line

    and you copy&pasted it from here : Link ? because there are wrong quotation marks

    in reply to: issue when updating to Enfold version 4.8.6.5 #1325692

    I know that you write above that it was not so with the previous version. But often you forget that you have also run other plugin updates. – If you restore the older version now, do you not see the problems anymore?

    _______
    well if you look at: https://gtmetrix.com/reports/cdmercercontractors.co.uk/T9HHuSwk/

    you see that the TTFB ( Time to first byte ) is large – contact your provider and ask what could be the reason for it.
    maybe look to your site’s current memory limit – it is set in the wp-config.php file and may not match the limit allowed by your provider.
    you can look into Layerslider WP – Options – System Status – Server Settings:

    if it might be too low – put this code to the appropriate position ( f.e. under the WP_DEBUG setting ) :

    define( 'WP_MEMORY_LIMIT', '256M' );
    
    in reply to: SVG Logos Issue #1325681

    could you please post the whole functions.php of the child theme here! – but please use the code tag so we can check it better.

    in reply to: excerpt length on blog page #1325601

    no hurry – I just wanted to bring it up once because the topic came up now – and I honestly never checked that the manually pasted excerpts were not affected.
    Many thanks as always

    in reply to: issue when updating to Enfold version 4.8.6.5 #1325580

    on performance reasons : you should familiarize yourself with image optimization.
    f.e.: this image here: image1 is 524kb big
    this image2 450kb etc. pp.

    Since you are using the srcset option of enfold, you should ask yourself if increasing the compression level is not also an option for your images. Enfold offers a snippet for this; however, you would have to recalculate the thumbnails afterwards. Because the snippet only controls the compression during media upload.
    for 55% compression instead of 0% ( Enfold let the quality level on 100 on uploading )

    add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1);
    add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1);
    function avf_set_quality_mod($quality) { $quality = 55; return $quality;}
    in reply to: Exclude Javascript from Cache #1325576

    but isn’t there an option to mark that on new posts or comments etc the cache will be refreshed automatically?

    in reply to: SVG Logos Issue #1325562

    maybe you try that :

    Note for SVG Support plugin users: If you are using SVG Support plugin and your SVG logo does not show up even after updating the file, please re-create your SVG file and re-upload it. If you need assistance with it, please share WP admin logins :)

    from: https://kriesi.at/support/topic/hotfix-for-the-missing-logo-issue-on-enfold-4-8-6-4/

    _____________

    and by the way : why the code from above or here – should influence the logo ???
    there is not even one selector in that code that concerns to logo container ?
    here is my test page for your last topic: https://webers-testseite.de/blog-seite/
    and my svg logo is still there !

    • This reply was modified 4 years, 3 months ago by Guenni007.
    in reply to: excerpt length on blog page #1325559

    On that topic mentioned above – my solution to cut the excerpt by word count or something like this :

    function custom_excerpt(){
    ?>
    <script>
    (function($){
    	$(window).on('load' , function(){
    	    $('.slide-entry').each(function() {
    	     	$(".entry-content").text(function(index, currentText) {
    	     		return currentText.substr(0, 20);
    			});
    			// if you like to cut the titles
    	    	$(".entry-title").text(function(index, currentText) {
    	     		return currentText.substr(0, 50);
    			});
    	    });
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_excerpt');

    will work too – but better would be not to manipulate the DOM afterwards – but to directly build an excerpt with given settings.
    so again : HOW to influence even these excerpts ?

    in reply to: Blog Excerpt #1325412

    But maybe a Mod or Dev knows a method to influence it before it is build.
    I see the filter : avf_masonry_loop_prepare – perhaps there is a possibility to set the length of that excerpt here too.

    Edit – : no – i now see that on normal blog the masonry helper has no influence on that. It is only by postslider.php

    in reply to: Blog Excerpt #1325408

    can you please replace that jQuery Code and replace it by this:

    function custom_excerpt_setting(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
        function trimByWord(sentence,wordcount = 10) {
            var result = sentence;
            var resultArray = result.split(" ");
            if(resultArray.length > wordcount){
            resultArray = resultArray.slice(0, wordcount);
            result = resultArray.join(" ") + "...";
            }
            return result;
        }
        $(document).ready(function(){
            $('.avia-content-slider .read-more-link').each(function() {
                $(this).parent().parent().append($(this));
            }); 
    
            $('.avia-content-slider .slide-entry-excerpt').each(function() {
                 $(this).text(function(index, currentText) {
                    return trimByWord(currentText);
                 });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_head', 'custom_excerpt_setting');

    Edit : if you load jQuery in your footer ( see Enfold – Performance : “Load jQuery in your Footer” ) the whole had to be loaded in the footer too – and after jQuery is loaded. Last line should be replace by:

    add_action('wp_footer', 'custom_excerpt_setting');
    
    in reply to: Blog Excerpt #1325398

    yes – you are right – that is something i did not understand from the beginning- why the read-more button is part of slide-entry-excerpt.

    in reply to: Blog Excerpt #1325397

    and with the css code from beginning – you see that now the slide-meta like the date is then in one line at the bottom:

    #top.blog .avia-content-slider .slide-entry-wrap {
      display: flex;
      flex-flow: row wrap;
    }
    
    #top.blog .slide-content {
      padding-bottom: 60px;
    }
    
    #top.blog .entry-footer {
      display: ;
      position: absolute;
      bottom: 0;
      top: auto;
    }
    in reply to: Blog Excerpt #1325394

    so – now i could find your page – your nick is informative enough on that ;)

    function custom_excerpt_amount(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
        function trimByWord(sentence,wordcount = 10) {
            var result = sentence;
            var resultArray = result.split(" ");
            if(resultArray.length > wordcount){
            resultArray = resultArray.slice(0, wordcount);
            result = resultArray.join(" ") + "...";
            }
            return result;
        }
        $(document).ready(function(){
            // here is the place to choose the right selector
            $('.avia-content-slider .slide-entry-excerpt').each(function() {
                 $(this).text(function(index, currentText) {
                    return trimByWord(currentText);
                 });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_head', 'custom_excerpt_amount');
    in reply to: Blog Excerpt #1325385

    yes – and i comment in that code above ( jquery code ) that i do not see your page you are referring to. This line in the code :

    $('.av-masonry-entry .av-masonry-entry-content').each(function() {
    

    had to be adjusted to the selectors that will work on your page – i can not give better advice if i do not see the concrete page it concerns
    and since I am a participant like you I do not see the link if it is in the private content area.

    in reply to: Blog Excerpt #1325376

    i do not see your page ( private content ) but that jQuery solution is an example only – and the selector ( as commented above ) had to be adjusted.

    PS: And by the way – yes i can reproduce that – on my end here – if there is a custom set Excerpt – there is no influence on that filter.

    in reply to: Blog Excerpt #1325375

    but the filter you decided to use is ok. – maybe it is just a matter of the accepted args value – leave without that:

    function avia_change_masonry_excerpt_length($length){
    	$length = 200;
    	return $length;
    }
    add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10 );
    in reply to: Blog Excerpt #1325371

    ah sorry – now i see that you have masonry in use.
    I prefer on this to limit the excerpt on word basis.
    f.e. this on child-theme functions.php:

    function custom_excerpt_amount(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
        function trimByWord(sentence,wordcount = 10) {
            var result = sentence;
            var resultArray = result.split(" ");
            if(resultArray.length > wordcount){
            resultArray = resultArray.slice(0, wordcount);
            result = resultArray.join(" ") + "...";
            }
            return result;
        }
        $(document).ready(function(){
            // here is the place to choose the right selector
            $('.av-masonry-entry .av-masonry-entry-content').each(function() {
                 $(this).text(function(index, currentText) {
                    return trimByWord(currentText);
                 });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_head', 'custom_excerpt_amount');

    but this jquery solution does not work nice on “Load more” Masonries.

    in reply to: Blog Excerpt #1325370

    you mean on a page like this: https://kriesi.at/themes/enfold-2017/blog/blog-default/

    Is it your intention to have same-height blocks? For that you do not need to have the samel excerpt length?

    in reply to: circle as yours #1325317

    For you ? – yes, if you can carefully read the structure of the page, know how to use javascript and the elements used. Kriesi does not even bother to hide these things there.
    The javascript is available in front of you as kriesi.js file in the source code. It is present there as a “principles picker”.
    There is no ALB element for it if that’s what you mean. I always insert this element via CodeBlock element. Kriese did this via Text Block element.

    in reply to: Align buttons at the bottom of columns #1325061

    you can position those buttons absolute.
    Best would be to give to the color-section a unique ID – or a custom class.

    The code below is with your default ID on this : #av_section_2 – but to avoid that every section_2 will do that on other pages – see above.

    #av_section_2 .flex_column .avia-button-wrap {
      position: absolute;
      bottom: 0 !important;
      padding: 20px 0;
    }
    #av_section_2 .flex_column .av_textblock_section {
      padding-bottom: 40px;
    }

    The space now occupied by the button – must be added to the last element in front of it – here the text block – as padding-bottom.

    Maybe you decide to give the headings a min-height for screens larger than the responsive case ( in your installation 768px )
    f.e.:

    @media only screen and (min-width:768px){
      #av_section_2 .flex_column .av_textblock_section h5 {
        min-height: 50px
      }
    }

    only if there are three lines of heading – this will not result in the alignement.

    in reply to: how to use : avf_color_sets #1324986

    Yes you are right – but the original post is closed for new replies – so i couldn’t ask the Topic Originator.

    in reply to: Undefined index: img_scrset in postslider.php on line 464 #1324983

    did you have the last Enfold installed?
    because magazine has this too on 4.8.6.3.: https://kriesi.at/support/topic/error-25/#post-1322781
    or update to 4.8.6.5

    go and look if on line 464 from postslider.php there is only:

    if( 'disabled' == $atts['img_scrset'] )
    

    and try to replace it with:

    if( isset( $atts['img_scrset'] ) && 'disabled' == $atts['img_scrset'] )
    
    in reply to: SVG Logo Not Displaying #1324852

    or try an absolute Value please.

    #top .logo svg {
        width: 450px;
    }

    the real dimension is managed through the surrounding container – but for scaling it needs (in some browsers an absolute width ( height ) ).
    Can you show me a link – if not to the page – then to the svg itself?

    in reply to: Schema.org element "VideoObject" #1324780

    You want to apply flexbox model as here – and set parent element ( entry-content-wrapper ) to display flex? But in my opinion this requires to keep the flex columns exclusively in an enclosing ( color-section ) container. Then it would be enough to set the flex-flow to row wrap-reverse on responsive case. Otherwise, properties would still have to be assigned to the flex items.
    With grid-row this is automatically the case – each flex-cell row is separate from other flex-cells. See: https://webers-testseite.de/reverse-order/
    See the example page with one color-section ( white background ) and 6 1/3 flex-columns. On that it will be nice to have on the flex-column itself an input field with flex order number
    Result you see belongs to:

    @media only screen and (max-width: 767px) {
    	.page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column {
    		flex: 1 1 100%;
    		margin-bottom: 30px !important;
    	}
    	 .page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(2),
             .page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(3) ,
             .page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(6)  {
    		order: 1;
    	}
    	.page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(1),
            .page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(4),
            .page-id-38828 .avia-section.reverse-order .entry-content-wrapper .flex_column:nth-of-type(5) {
    		order: 2;
    	}
    }

    the trick will be that on responsive case this reverse order will be set in your media query ( when those columns should break to 100% width )
    it only makes sense if the reverse order influences only one column row. ( yellow background )

    ________
    Read More : https://css-tricks.com/snippets/css/a-guide-to-flexbox/
    the direct parent element should be the flexbox – the first children are the flex-items.

    in reply to: Header help – design layout? #1324749

    Do you need on that page a shrinking header – or could it be a static one?
    The header behavior is set to: “Let logo and menu position adapt to browser window”

    See here the example page: https://basis.webers-testseite.de/buttons/
    the logo: Logo
    the background for header-bg: background

    my ( page IDs included ) css:

    .page-id-2602 .container.av-logo-container {
      margin: 0 50px 0 0;
    }
    
    .page-id-2602 .logo.avia-svg-logo {
      height: calc(100% + 35px);
      position: absolute;
      top: -35px;
    }
    
    .page-id-2602 #header:before {
      background-image: url(//basis.webers-testseite.de/wp-content/uploads/blue.svg);
      background-repeat: repeat-x;
      background-size: 35px;
      background-position: top left;
      z-index: 1;
      content:  "";
      width: 100%;
      height: 100%;
      position: absolute;
    }

    the responsive design isn’t set on this now – but it will work the same way.
    the header_meta ( f.e. phone info had to change color on smaller screens etc. pp. )

    in reply to: Upload custom font #1324565

    Have a look on Google Font Inter it is a variable webfont and looks very similar to Helvetica Neue. Big Advantage is on modern browsers – that you load only one file for all font-weights – and maybe ligatures etc.
    Inter goes from 100 to 900 on weight ( flexible !!! ) and on slant ( italic variants -10 to 0 )

    btw. : this here is a nice online tool to get all font options from an uploaded font: https://wakamaifondue.com/

    in reply to: Upload custom font #1324558

    i’m not quite sure if fontsquirell converts every uploaded font to webfonts. Adobe fonts were not accepted in the past. In the meantime, there is a checkbox with which they secure copyright accordingly.
    https://www.fontsquirrel.com/tools/webfont-generator

    On Expert Option you can check which webfonts you prefer. Modern Browsers do work with woff and woff2. If you like to have a bigger browser support you had to check all ( see above ) webfonts.

    but also keep in mind that each font style brings performance burden with it.

    in reply to: Upload custom font #1324521

    do you have Webfont formats of Helevetica Neue ( woff, woff2, ttf, svg, eot ) ?

Viewing 30 posts - 4,081 through 4,110 (of 11,918 total)