Forum Replies Created

Viewing 30 posts - 421 through 450 (of 10,882 total)
  • Author
    Posts
  • 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;
    }
    in reply to: Caption in lightbox #1462977

    you can use instead this snippet to remove the titles:

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var links = document.querySelectorAll('a, img, *[title]');
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("data-tooltip", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
              link.onmousedown = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');

    but a lot of enfold elements have a choice for showing instead of the title f.e. the description.

    in reply to: Scrolling inside Avia Builder does not work #1462945

    btw: if i got big layouts i use often that little button :

    ;). it fixes the ALB Control Bar to top – Layout Input Field scrolls away under the top fixed Control Bar. So no need to pull an ALB Element on holding down the button …

    in reply to: Photos very dark when uploaded #1462908

    First try it with one photo that you have allready uploaded by which you notice the loss of quality described above (darker etc.)
    Open the image in Photoshop, reduce it to a maximum width of 1500px, for example, and save it as sRGB. Upload this image and compare it with the existing library image. If the image is much better, you can do the same for the rest of your photos.

    in reply to: Photos very dark when uploaded #1462856

    the browsers work with the s-RGB color profile – many photographers save their photos with adobe-RGB or ProPhoto RGB, sometimes even with 16bit per color channel.
    When you upload these images to the media library, they are treated as if they were s-RGB images. Embedded color profiles are not taken into account in browser rendering.

    Next: If you upload images from your professional digital camera without recalculating them for web use, most of them will be too large.
    Wordpress will first convert them to a size of 2560px – and use this as the source for the other image format calculations. – It is therefore better to do the web optimization yourself in a program of your choice.

    See a comparison : https://webers-testseite.de/image-comparison/

    Allthough the ProPhoto RGB Color Room is much bigger than the sRGB – they will not be rendered in a correct way.

    in reply to: How to change columns order in responsive view? #1462852

    this is your slideshow test 2 page?

    responsive on enfold means: the columns goes to 100% width. Then the order is determine by the mentioned above.
    if you like to reach that of your screenshot – you had to place these 3 columns best in an extra color-section. That is easier to handle.
    Then best a custom class is added to that color-section to better select that columns. A custom flex layout should then be set by css.
    Means – after first responsive break – the one flex-item will have 100% – the others will have 50% width.

    If it will be a slideshow – you like to have an event on those arrows under the image? what is the function of that X in the middle ? – and on the right side the counter should count the images automatically?

    see here with a possible css code : https://webers-testseite.de/slideshow-test2/

    may i ask you just a question – what benefit has a button label with the ID – That’s not very meaningful for visitors. Perhaps I am overlooking the usefulness of such a button.

    in reply to: How to change columns order in responsive view? #1462831

    if you only like to have the reverse order :

    __________________
    if you choose the third option on that – than go to advanced tab (erweitert) – and choose the responsive position

    in reply to: Table sortable header row #1462823

    This is only needed if you got date columns with uncommon format. Like Dots ( 10. 12. etc. Jan. Feb. ) or fullnames of the month.
    I guess a normal format like 24-07-2024 could be handled without that way.

    in reply to: Add Partner/Logo Element in a Footer Widget #1462806

    on editing that post :

    is it just me? – or only that answer due to the shortcode ?

    in reply to: Add Partner/Logo Element in a Footer Widget #1462805

    do you know how to get the avia shortcodes for that element?
    Just style your partner logo element on a f.e. new page without any wrapper elements ( espacially color-section )

    copy that code – f.e.:

    [ av_partner heading='' type='slider' columns='1' navigation='arrows' control_layout='av-control-default' nav_visibility_desktop='' nav_arrow_color='' nav_arrow_bg_color='' nav_dots_color='' nav_dot_active_color='' size='no scaling' img_size_behave='no_stretch' border='' img_border='' img_border_width='' img_border_width_sync='true' img_border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' padding='' padding_sync='true' animation='slide' transition_speed='' autoplay='false' interval='5' heading_tag='' heading_class='' img_scrset='' lazy_loading='disabled' el_id='' custom_class='' template_class='' av_uid='av-lyyz7l6u' sc_version='1.0']
    [ av_partner_logo id='1225']
    [ av_partner_logo id='1224' id_dynamic='' hover='' link='' link_dynamic='' link_target='' linktitle='' av_uid='av-lyyz76rg' sc_version='1.0']
    [/av_partner]

    and insert that code to your footer widget. If you don’t use that element on your pages – it might be neccessary to activate that option on enfold – performance: “Scan Widgets For Theme Shortcodes”

    Attention: You must replace “[ av_…” with “[av_…” (remove space between “[” and “av_…” )

    • This reply was modified 4 months ago by Günter.
    • This reply was modified 4 months ago by Günter.
    in reply to: Table sortable header row #1462777

    i solved it with the help of moment.js script ( with locale settings ):

    function fix_for_sorttable(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () {  
    (function($){
        $('.avia-table.sortable').each(function(){
          // this is the heading of the column with dates - you had to adjust to your needs
          var dateTableIndex =  $(this).find('thead th:contains("Dat")').index();
          var dateChildNumber = parseInt(dateTableIndex)+1;
          $(this).find('tbody td:nth-of-type('+dateChildNumber+')').addClass('date');
        });
               
        $(".date").each(function(idx) {
            // change the locale setting to your needed language - spcifications may occur like de_at - for austria 
            moment.locale('de');
            var datum = $(this).text(),
            // this is the code for my used german date format like : 16. Mai 1962
            datum_formated = moment( datum , 'DD. MMMM YYYY').format('YYYY-MM-DD');
            $(this).attr("sorttable_customkey", datum_formated);
        });  
    })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'fix_for_sorttable');

    the format YYYY-MM-DD is sortable
    see: https://webers-testseite.de/sortable-table/

    in reply to: Table sortable header row #1462741

    I think the childtheme table.php is not needed as we can trigger this by giving the data table the custom class: sortable
    I have tested this and there should be no problems for standard tables.
    ______________

    Unfortunately, it looks different for tables that are to be sorted by date. As long as you use standard english date formats you are probably on the safe side. Unfortunately, in Germany we like to use the dot as a separator and the month names are of course different.
    So e.g. 16. Mai 1962 etc. is then not sorted correctly.

    here is my snippet to give to each td under a “Datum” ( my trigger heading word )

    see solution on the next posting

    However, this does not have the desired result either, because here too, for example, local date format entries are not taken into account. The result is that a NaN is returned for e.g. Mai / Dez etc or 16.05.2001.

    Or in other words – how do we get a date field to have a sorttable_customkey attribute in the form yyyymmdd ?
    and that with a given local date formate like 16. Mai 2001

    brilliant – I didn’t think of this little trick to use it again as $header_content[‘cats’].
    So – definitely use this snippet. I see you know how to get rid of the word “in”.

    i think there must be a way to reorder an existiing array .
    inside magazine.php there is on lines 1545ff :

    $header_content = array(
    	'time'		=> "<time class='av-magazine-time updated' {$markupTime}>{$time}</time>",
    	'author'	=> $author,
    	'cats'		=> $cats,
    	'tags'		=> $tags,
    	'title'		=> "<{$titleTag} class='av-magazine-title entry-title {$titleCss}' {$markupTitle}>{$title}</{$titleTag}>"
    );

    And that is the reason why the cats are placed over the titles.
    Edit : code erased see snippet from Ismael

    but: as mentioned above – maybe there is a very easy way to reorder that array.

    mayby a mod knows a method to influence the generation of that sequence – perhaps via filter: avf_magazine_header_content

    but here is a quick jQuery function for child-theme functions.php:

    function change_position() { 
    ?>
    <script>
    (function($){
      $('.entry-content-header').each(function() {
        movedElement = $(this).find('.av-magazine-title');
        targetElelemt = $(this).find('.av-magazine-cats-wrap');
          $(movedElement).insertBefore($(targetElelemt));
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_position');
    in reply to: Change of Logo #1462526

    you mean in the logo of the example demo page?
    There are a lot of suitable candidates. One of the better-known commercial fonts is probably: Avenir Next LT Pro
    (In GillSans or Helvetica New, for example, the centre E stroke ends on a line with the other ‘arms’.)
    If you like to know which google font is similar to that – see here f.e.: https://similarfont.io/3-google-fonts-similar-to-avenir-next
    See Prompt: https://fonts.google.com/specimen/Prompt?preview.text=ENFOLD&query=Prompt

    in reply to: Change of Logo #1462485

    this is the logo for transparency / glassy headers.
    You can find a switch on Theme Options : Transparency Options (Contains options for transparency header)
    here you can replace that logo or set the color for menu items for transparency headers

    a note : my Wordfence scan shows that after the last WP update, old files from the previous version remained in the folders – and these are mainly related to the editor files!

    try to start in that mode with the “automatic” click on that unseen button:

    function trigger_alb_on_load(){
    ?>
    <script>
    (function($){
        $(window).on('load', function(){
          setTimeout(function() {
            $("#avia-builder-button").trigger('click');
          }, 300);
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('admin_head-post-new.php', 'trigger_alb_on_load');
    in reply to: 360°-Panorama (KRPano)? #1462235

    they got a nice docu – i think there is no special trick for it: https://krpano.com/docu/embedpano/#top

    in reply to: show marker in certain pictures in portfolio grid #1462136

    Why don’t you assign an additional special category to these portfolios? “Guest”

    As far as I know, no further intervention is necessary then!

    The Portfolio Grid is now: Whether you have selected the sort option or not, this taxonomy appears there as the class on grid-entry : XYZ_sort
    In your case then guest_sort

    in reply to: Pauseable video in Header section #1462061

    although I believe that it is rather good if visitors can interact with autoplay videos. Turning it off is certainly better than leaving the website because a video is annoying!

    Super : i didn’t think of that: https://img.savvyify.com/image/Enfold-Support-6295.9iVHK !
    and this is the way the class: widget_nav_hide_child comes to the menu.

    besides that : this is the shortcode for polylang lang switch:

    function custom_polylang_langswitcher() {
      $output = '';
      if ( function_exists( 'pll_the_languages' ) ) {
        $args   = [
          'show_flags'    => 1,
          'hide_if_empty' => 0,
          'show_names'    => 1,
          'echo'          => 0,
        ];
        $output = '<ul class="polylang_langswitcher">'.pll_the_languages( $args ). '</ul>';
      }
      return $output;
    }
    add_shortcode( 'polylang_langswitcher', 'custom_polylang_langswitcher' );

    there are a lot of args you can use to manage the way it looks like:

    /**
    * @param array     $args {
    *   Optional array of arguments.
    *
    *   @type int      $dropdown               The list is displayed as dropdown if set, defaults to 0.
    *   @type int      $echo                   Echoes the list if set to 1, defaults to 1.
    *   @type int      $hide_if_empty          Hides languages with no posts ( or pages ) if set to 1, defaults to 1.
    *   @type int      $show_flags             Displays flags if set to 1, defaults to 0.
    *   @type int      $show_names             Shows language names if set to 1, defaults to 1.
    *   @type string   $display_names_as       Whether to display the language name or its slug, valid options are 'slug' and 'name', defaults to name.
    *   @type int      $force_home             Will always link to home in translated language if set to 1, defaults to 0.
    *   @type int      $hide_if_no_translation Hides the link if there is no translation if set to 1, defaults to 0.
    *   @type int      $hide_current           Hides the current language if set to 1, defaults to 0.
    *   @type int      $post_id                Returns links to the translations of the post defined by post_id if set, defaults not set.
    *   @type int      $raw                    Return a raw array instead of html markup if set to 1, defaults to 0.
    *   @type string   $item_spacing           Whether to preserve or discard whitespace between list items, valid options are 'preserve' and 'discard', defaults to 'preserve'.
    *   @type int      $admin_render           Allows to force the current language code in an admin context if set, default to 0. Need to set the admin_current_lang argument below.
    *   @type string   $admin_current_lang     The current language code in an admin context. Need to set the admin_render to 1, defaults not set.
    *   @type string[] $classes                A list of CSS classes to set to each elements outputted.
    *   @type string[] $link_classes           A list of CSS classes to set to each link outputted.
    * }
    */

    some quick css:

    .lang-item {
      display:inline;
      padding-left:5px;
      list-style:none;
    }

    a few minutes ago i could open the url http://www.lzau.at/wp-login.php and it opens some kind of login page – try to login to that page.
    (it seems that they forget to install a working certificate). I guess you now are working on that

    in reply to: Menu Items for mobile #1461956

    Try in quick css:

    @media only screen and (max-width: 1050px) {
        #top #header .av-main-nav > li.menu-item  {
            display: none !important;
        }
        #top #header .av-burger-menu-main {
            cursor: pointer;
            display: block !important;
        }
    }
    in reply to: Socket menue on left side #1461952

    yes – or if you like to have on responsvie case first the menue then the copyright info use instead as media query:

    @media only screen and (max-width:767px) {
      #socket .container {
        flex-flow: column-reverse wrap;
        align-items: center;
      }
      #socket .container > * {
        display: inline-block;
        width: unset !important;
      }
    }
Viewing 30 posts - 421 through 450 (of 10,882 total)