Forum Replies Created

Viewing 30 posts - 391 through 420 (of 10,880 total)
  • Author
    Posts
  • in reply to: Unload unused CSS/JS automatically #1463727

    But the idea would be worth considering.
    To see which enfold shortcodes are used on the page and then only load these scripts/styles.
    I don’t know whether there is a performance gain, because this check also takes time.

    In the examples mentioned above, it is not a problem because a contact form only needs its scripts after the form has been filled in. The same applies to a ReCaptcha.

    in reply to: grid-row full width pictures (no spacing) #1463724

    Standard Padding of grid-cells are 30px – so if you do not set it to zero – it will have this 30px padding.
    I guess you are belonging to this?

    in reply to: Remove products from search #1463688

    can you post your code snippet that you used on portfolio?
    a portfolio is nothing else than a custom post type as woocommerce products too.

    i only do know that there is an include snippet – all posttypes that are not listet ( as: product ) are then excluded

    function exclude_from_search($query) {
      if ( !$query->is_admin && $query->is_search) {
         // include the posttype that should be included to search results
        $query->set('post_type', array('page', 'post', 'portfolio') );
      }
      return $query;
    }
    add_filter( 'pre_get_posts', 'exclude_from_search' );

    if you do not like the portfolios – just remove it from array

    btw. the ajax search has its own query ! If you like to influence this too …

    Actually, I’m just surprised that a contributor has this option at all.

    in reply to: Translate Main Logo #1463652

    Yes – and if you use for both logo svg files you can replace it by the ID of that logo file.
    you can find that ID on media library list view! ( it is an own column for that )

    try for default logo:

    function change_logo_on_different_languages($logo){
        $currentlang = get_bloginfo('language');
        if($currentlang == "fr_FR"){
            // see on media library what ID your Logo for Fr site has.
            $logo = 162;  
        }
        return $logo; 
    }
    add_filter('avf_logo','change_logo_on_different_languages');
    

    and for transparency logo:

    function av_change_alternative_logo_img($header){
        $currentlang = get_bloginfo('language');
        if($currentlang == "fr_FR"){
            // next line is only neccessary if on options no default transparency logo has been set
            $header['header_class'] .= ' av_alternate_logo_active'; 
            $header['header_replacement_logo_id'] = 163;
        }
        return $header; 
    }
    add_filter('avf_header_setting_filter','av_change_alternative_logo_img');

    or adjust Ismaels code that way with ID’s

    in reply to: Easy Slider ‘Mouse Hover’ #1463650

    but you read that

    and maybe sitespecifc – to not influence all sliders

    my code above works for that page-id: 12345

    if you use the global code from Ismael every slider ( easy-slider, fullwidth-slider, fullscreen-slider etc. will have that hoverpause.
    That is only the difference.

    in reply to: Table sortable header row #1463629

    send me an email – info under my nick

    in reply to: Table sortable header row #1463627

    therefor use the grid layout on that. My solution is pure css – the problem is:
    if you do not have scrollbar besides heading row – and only body scrolls – then the column width are not synchronized ( that it the reason for the above flex layout – with a pseudo-container after.
    having the scrollbar besides the whole table makes it much easier.

    in reply to: Table sortable header row #1463608

    on my example page there is now both code for sortable and “fixed” table header with tbody scroll.

    https://webers-testseite.de/sortable-table/

    on the bottom of that page there is the example table styled layouted by Grid Layout !
    this had to be only for wider screens – on responsive case all tables are ugly;

    in reply to: Translate Main Logo #1463598

    oh – nice; I didn’t realise that polylang has an extra for currentLanguage

    with get_bloginfo() you can have info on current language too.

    function change_logo_on_different_languages($logo){
        $currentlang = get_bloginfo('language');
        if($currentlang == "fr_FR"){
            $logo = "/wp-content/uploads/YOUR_LOGO_FILE.jpg";
        }
        return $logo; 
    }
    add_filter('avf_logo','change_logo_on_different_languages');
    in reply to: Asking for support on an old problem #1463553

    Sorry, I really tried to go through your decision tree, but there are quite a few logic errors in the conditional fields. Big disadvantage of the plugin is that there is only an and logic – no or – that would make things easier.

    I’m getting out now – if what I’ve achieved on the example page is enough for you – I’ll post the codes here.

    in reply to: Asking for support on an old problem #1463544

    is it this what you are trying to get?

    https://webers-testseite.de/conditional-mail/

    but on conditional fields there are missing values for the conditions e.g:

    but this is something you had to know better when fields are shown if e.g from above privacy not equals – and e-mail not equals.

    in reply to: Asking for support on an old problem #1463540

    What do you mean by 2steps ?
    This is the complete content of Formbuilder – isn’t it?

    First view shows me a value Avanti – that has not a field to prove!

    On the whole conditional fields these “Avanti” check has no field to prove.

    in reply to: Asking for support on an old problem #1463518

    can you please post the content of your cf7 formular code?
    use the code tag here to post!

    copy paste it from here:

    often the conditional field groups are wrapping all that should be hidden – my guess is that the p tag is outside the conditonal group

    and please post the conditional fields content ( use the text mode to copy paste it )
    f.e:

    show [rueckruf] if [rueckrufwunsch] equals "Bitte um Rückruf"
    show [mail1] if [rueckrufwunsch] not equals "Bitte um Rückruf"
    show [mail2] if [rueckrufwunsch] equals "Bitte um Rückruf"
    show [group-1] if [checkbox-15] not equals "Beratung"
               and if [checkbox-16] not equals "Schulung"
               and if [checkbox-17] not equals "Begleitung"
               and if [checkbox-18] not equals "Funded-heads"
    show [group-2] if [checkbox-15] equals "Beratung"
    show [group-2] if [checkbox-16] equals "Schulung"
    show [group-2] if [checkbox-17] equals "Begleitung"
    show [group-2] if [checkbox-18] equals "Funded-heads"

    And doesn’t it seem strange to you that almost all virus scanners(1/66), even very well-known ones, find nothing – only one of them gives an alarm?
    i suppose it has to be a false positive result. BitDefender, McAfee, Eset, Kaspersky, Symantec etc. all highly recommended Scanners find nothing !
    Who is VirIt ?

    My local scanners (Eset Smart Security Premium for PC and GData Antivirus on Mac OSX) do not find any suspicious files.

    in reply to: Easy Slider ‘Mouse Hover’ #1463467

    try on child-theme functions.php:

    as written on orig Post.

    and use it as (with $default) ( and maybe sitespecifc – to not influence all sliders )

    function change_slide_options($default){
    	if(is_page(12345)){
    		$default['hoverpause'] = true ;
    	}
      return $default;
    }
    add_filter('avf_avia_slideshow_defaults','change_slide_options', 10, 1);
    in reply to: Easy Slider ‘Mouse Hover’ #1463456
    in reply to: Replace Logo-image with text #1463448

    you can do that by subtext option – this inserts f.e. the bloginfo name and description as text.
    – but you do not need to insert these dynamic texts – you can insert simple html too
    ( this inside child-theme functions.php)

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub)
    {
      $sub .= "<h1 class='logo-title'>";
      $sub .= get_bloginfo( 'name', 'display' );
      $sub .= "</h1>";
      $sub .= "<h2 class='logo-title logo-subtitle'>";
      $sub .= get_bloginfo( 'description', 'display' );
      $sub .= "</h2>";
      return $sub;
    }

    then you can set logo img to display none – and style the text via quick css too ( positioning; font-size; colors etc. )
    btw: : you can see that here on top with logo and text. this “kriesi.at” and “Premium Themes” is placed that way ( but only in strong tags)

    PS: you can insert this way dynamically the page title as second text by replacing in the code above

    $sub .= get_the_title();
    

    f.e.:

    #top .logo img {
      display: none
    }
    #top .logo,
    #top .logo a {
      overflow:visible
    }
    #top .logo-title {
      font-size:12px;
      color:#000;
      position:absolute;
      left:0px;
      top:-7px;
      white-space:nowrap
    }
    #top .logo-subtitle {
      color:#aaa;
      top:7px
    }
    in reply to: Sliders #1463446

    try on child-theme functions.php:

    function change_slide_options($default){
    		$default['hoverpause'] = true ;
      return $default;
    }
    add_filter('avf_avia_slideshow_defaults','change_slide_options', 10, 1);
    in reply to: Sliders #1463442

    on slideshow.js these events ( mouseenter and mouseleave are bind to hoverpause status.
    it is set on line 69 to : hoverpause: false,
    but i do not see a filter to change that option – maybe a mod or dev knows a trick.

    in reply to: Sliders #1463440

    is it a fullwidth or a fullscreen slider that is needed?
    your link goes to easy-slider – the part below shows fullscreen slider.

    Do you have for each slide a different rotator text? Or should the rotator text lay over all slides and is synchronized on slide-change/rotator text change ?

    you can insert the enfold shortcode to caption input field of first slide, then on styling tab of the slider there is the option : “Use first slides caption as permanent caption” ( There will be warnings on doing that – but ignore them )

    see: https://webers-testseite.de/tiago-slider/

    there is no default option on slide stop on hovering the slides.

    if you are using image Element for that – just go to advanced tab on the image elmenent and choose as “Image Link”: set manually.
    Insert the url of that new image to show in lightbox.
    As long this is an image it will open then automatically in the lightbox: https://webers-testseite.de/custom-link-to-lightbox/

    easiest way to hamper that lightbox opening would be a media query to set pointer-events to none for that link.

    if you like to have more selectivity – then use custom-class on the image element.

    @media only screen and (max-width: 899px) {
      a.avia_image.lightbox-added {
        pointer-events: none;
      }
    }

    for that close button you can shift it f.e. into the image – or to the right side of the image

    test:

    div.avia-popup .mfp-close {
      right: 5px;
      top: 45px;
      background-color: rgba(0,0,0,0.3);
    }
    #scroll-top-link {
      display: none !important;
    }
    in reply to: Can’t Update Enfold Theme #1463361

    You should create a complete backup in any case, e.g. with the free plugin: duplicator.

    If you use a child theme, you will not be able to avoid checking the child theme files for validity. e.g. header.php has changed a lot – also footer.php.
    Custom Advanced Layout elements should also be updated. ( if you use child-theme pendents of them ) –
    if you only have these three files (style.css, functions.php and screenshot.png) in your child-theme folder – than only a check of your child-theme functions.php is neccessary.

    Is your WordPress version older too?
    Then you need to take precautions here too.
    What php Version is in use? with php 7.x or 8 a new jQuery is implemented.

    With such a huge step, I would update as follows:
    I would advise everyone to follow this way. You always have a rollback in the background.

    The advantage of this procedure is that it can be undone.
    Uploading the new theme takes a little time; if all goes well, the site will only be offline for a short time (just for the moment of renaming).

    Update via ftp

    • Download the “installable WordPress file only” file from themeforest  and unzip it
    • After that – you got a folder : enfold
    • Rename this downloaded newest version to enfold-new
    • Upload that enfold-new folder to the themes folder
    • Rename the existing enfold folder to f.e. enfold-old
    • Rename your uploaded enfold-new folder to enfold
    • On Enfold – Performance – check mark and “Delete Old CSS And JS Files?”
    • Check if your Website works to your full satisfaction.
    • Yes – then stop here – Update is finished
    • After a while of testing – you can delete that enfold-old folder via ftp
    • No – delete or rename back the enfold folder back to enfold-new
    • rename the enfold-old folder back to enfold
    • check on enfold board if there are known bugs – or similar problems
    in reply to: Unload unused CSS/JS automatically #1463360

    For example – i got this check for my contact form 7 element.
    I do want to load all css and scripts only if i use the cf7 on my page:

    function contactform_dequeue_scripts(){
    $load_scripts = false;
    $post = get_post();
    if(has_shortcode($post->post_content,'contact-form-7')){$load_scripts = true;}
    if(!$load_scripts){wp_dequeue_script('contact-form-7');wp_dequeue_style('contact-form-7');}
    }
    add_action( 'wp_enqueue_scripts', 'contactform_dequeue_scripts', 99 );

    I then implemented a similar behavior for Google Recaptcha. Where there are no form fields to be filled in, I do not include the Recaptcha.
    over the filter avf_load_google_recaptcha_api_prohibited

    This has the similar basic idea of not unnecessarily burdening the performance of the other pages.

    in reply to: Unload unused CSS/JS automatically #1463359

    this is true – but the setting of enfold does not support it for each page/post.

    “By default the theme will only load elements that are used on your posts and pages. You can disable the feature or manually manage loaded elements if you run into trouble”.

    “on your posts and pages” – means every element that has been used for your whole installation is loaded. If you use a table on page A – that script will be loaded on page B too.
    But you are right – if that would be possible to look what elements are used on a certain page – and loads only these files loading that page will be a good thing. I do not know if this is possible.

    Or if it is possible – maybe the performance benefit would be so great that checking on loading the page which elements are used would take away this advantage.

    in reply to: image slider wave at footer #1463320

    well i do not see where you set it – but there is a rule:

    /.slide-1{clip-path:polygon(0% 1%, 0% 99%, 12% 96%, 23% 91%, 33% 91%, 48% 92%, 58% 95%, 70% 91%, 81% 91%, 93% 91%, 100% 94%, 100% 1%);}
    .slide-2{clip-path:polygon(0% 1%, 0% 99%, 12% 96%, 17% 98%, 22% 97%, 29% 98%, 36% 100%, 43% 98%, 53% 98%, 59% 99%, 70% 100%, 78% 98%, 85% 98%, 100% 99%, 100% 1%);}
    .slide-3{clip-path:polygon(0% 1%, 0% 99%, 12% 99%, 17% 98%, 22% 97%, 29% 98%, 36% 100%, 43% 98%, 53% 98%, 59% 99%, 70% 100%, 78% 98%, 85% 98%, 100% 99%, 100% 1%);}

    the first rule does not take effect because of leading “/”

    for inspecting it would be better to have no merged or minimized css codes. Maybe you can switch this off for that moment.

    in reply to: image slider wave at footer #1463305

    I can see that too? If you don’t want to make the url public send me an e-mail (contact details under my nick).

    in reply to: Photos very dark when uploaded #1463219

    De rien. Comme je l’ai dit, ce n’est qu’une supposition, car cela m’est déjà arrivé. Je ne peux pas te dire si c’est lié. Mais cela vaut la peine de faire un test.

    in reply to: Lightbox background #1462978

    try:

    #top .mfp-zoom-in.mfp-ready.mfp-bg, 
    #top .mfp-zoom-in.mfp-ready .mfp-preloader {
      opacity: 1;
      background-color: #013101;
    }
Viewing 30 posts - 391 through 420 (of 10,880 total)