Forum Replies Created
-
AuthorPosts
-
A few things to keep in mind:
If both the logo and the logo for the transparencies is an inline svg.logo, .logo a { overflow: visible; } .logo svg { position: absolute; left: 0; top: 0; width: 450px /*** an absolute value might be necessary for best browser support ***/ } #top :not(.av_header_transparency).av_alternate_logo_active .logo .subtext svg { opacity:0; filter:alpha(opacity=0) }the svg code inside in the head section :
<svg alt="transparent Logo Webers Webdesign" title="Webers Webdesign" version="1.1" id="Webdesign-transparent" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 570 200" preserveAspectRatio="xMinYMid meet" xml:space="preserve">- if width and height is set it will be responsive to the surrounding container.
- the preserveAspectRatio setting determines the way the svg shrinks with its surrounding container (xMinYMid – means it shrinks to the left side but stays in the middle on y-Achsis)
if this is the fact – you do not need to set different display options for the .logo and .logo a
see here: https://webers-testseite.de/copy – or more generally in use – it checks if the inserted logo ( if header transparency logo too ) is svg – then replaces it.
to allow the mime type you can use this littel snippet – or better use svg support:function custom_mtypes( $m ){ $m['svg'] = 'image/svg+xml'; $m['svgz'] = 'image/svg+xml'; return $m; } add_filter( 'upload_mimes', 'custom_mtypes' );here is a new code:
( it takes the svg files inserted in the enfold options dialogs ( logo and transparency logo ) as source for the scriptfunction replace_logo_if_svg_with_inline_svg() { ?> <script type="text/javascript"> (function($) { $('.logo img').filter(function() { return this.src.match(/.*\.svg$/); }).each(function(){ var imgLogo = $(this); var imgURL = $(this).attr('src'); $.get(imgURL, function(data) { var svg = $(data).find('svg'); // Remove any invalid XML tags as per http://validator.w3.org svg = svg.removeAttr('xmlns xmlns:xlink'); // Replace image with new SVG imgLogo.replaceWith(svg); }, 'xml'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'replace_logo_if_svg_with_inline_svg');-
This reply was modified 4 years, 7 months ago by
Guenni007.
you can use this snippet in child-theme functions.php to place an svg inline instead of the existing img:
// insert svg as logo function replace_logo_with_svg() { ?> <script type="text/javascript"> (function($) { function a() { $( ".logo a img" ).remove(); $.get('/wp-content/uploads/YOUR-LOGO.svg', function(svg){ $( ".logo a" ).html( svg ); }, 'text'); } a(); })(jQuery); </script> <?php } add_action('wp_footer', 'replace_logo_with_svg');I use svg support too – but to replace the logo via the “force replace” of that plugin might be to slow
if you want that only on special pages – you can use if clausesyou need to set some absolute width to the inlins svg logo – and for shrinking headers the display options had to be changed.
f.e.:.logo svg { width: 450px; } .logo a { display: flex; position: relative; }This will work on masonry and masonry galleries aswell.
both masonry default h3 got the class : av-masonry-entry-titleBy the way the code-block element is not necessary to have it on top of the page.
if you got one masonry on top and one on the bottom you can differ between them on having custom class f.e. on the masonry element itself ( in my test page the masonry on top got custom class: is-h2
and the script in that case is:
https://webers-testseite.de/abcdef/<script> (function($) { $(document).ready(function(){ function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('.is-h2 h3.av-masonry-entry-title', '<h2></h2>'); }); }(jQuery)); </script>-
This reply was modified 4 years, 7 months ago by
Guenni007.
I like in particular the navigation, which creates a top level menu item in which omitted menu items are collected as a submenu. Only when it no longer works, the hamburger is offered as an alternative menu.
can you make the link to these images public. maybe someone new has another view on it.
ok – i see there is a hidden checkbox with id and class – so i can use
$('.aviaPrivacyVideoEmbedsDisabled:checkbox').change(function() { if (this.checked) { // do something } }); // or : if ($('.aviaPrivacyVideoEmbedsDisabled:checkbox').is(':checked')) { // do something }Can you be more specific about what you want to achieve?
You see here: https://kriesi.at/support/topic/make-all-mega-menu-images-the-same-size/#post-1305031 that the space for calculating how many list points are next to each other is only made for the row. I assume that the classe at the mega-div itself depends on the maximum value of columns.
In a row, the list points then have a class that determines how many columns are next to each other.
So if you decide to start a new row – this code will work for the most circumstances.By the way: how did you style this menu ?
That the sub-menu levels of the mega-menu title did not have an anchor?Edit : oh i see – didn’t recognize that option on description

just besides the mega div with 5 columns – here are more general css code:
NOW : we have to see what happens to these rules when there is a second row underneath the first.
edited code to fit for new row in that mega div:
#top #wrap_all #header .avia_mega_div > .sub-menu { display: flex !important; flex-flow: row nowrap; justify-content: space-around; padding: 2% 1% !important; } #top #header .avia_mega_div li { width: unset !important; padding: 0 !important; margin: 0 !important; } /*** settings for different mega_div ***/ #top #header .avia_mega_div li.avia_mega_menu_columns_6 { flex: 0 1 14% } #top #header .avia_mega_div li.avia_mega_menu_columns_5 { flex: 0 1 18% } #top #header .avia_mega_div li.avia_mega_menu_columns_4 { flex: 0 1 23% } #top #header .avia_mega_div li.avia_mega_menu_columns_3 { flex: 0 1 31% } #top #header .avia_mega_div li.avia_mega_menu_columns_2 { flex: 0 1 48% } #top #header .avia_mega_div li > .mega_menu_title { display: inline-block; margin-bottom: 0 !important } #top #header .avia_mega_div li > .mega_menu_title a { display: inline-grid; overflow: hidden !important; } #top #wrap_all #header .avia_mega_div > .sub-menu > li img { margin-bottom: 15px !important; -webkit-filter: saturate(0.2); filter: saturate(0.2); } /*** just to have some indicators for hovering ***/ #top #wrap_all #header .avia_mega_div > .sub-menu > li:hover img { -webkit-filter: saturate(1); filter: saturate(1); }see Mega Menu on page: https://consulting.webers-testseite.de/
The fact that I’m asking you to try copy&paste is that I can’t see from your posting if you used the correct quotation marks.
Unfortunately, far too few people on this forum use the code tag function.I tested it on a new installation and it works on my end.
i think your code works
try with copy pastefunction my_avf_masonry_loop_entry_content($loop_excerpt, $entry) { $loop_excerpt = $entry->post_excerpt; return $loop_excerpt; } add_filter('avf_masonry_loop_entry_content', 'my_avf_masonry_loop_entry_content', 10, 2);believe it or not – my solution works better.
look at the current page at narrower screen width:

remove the rules from Ismael and try it out ;)
SEE general solution next
-
This reply was modified 4 years, 7 months ago by
Guenni007.
or escape enfold settings – with different padding for first and last li.
Try this instead in your quick css:
#top #wrap_all #header .avia_mega_div > .sub-menu { display: flex !important; flex-flow: row nowrap; justify-content: space-around; padding: 2% 1% !important; } #top #header .avia_mega_div li { flex: 0 1 18%; width: unset !important; padding: 0 !important; margin: 0 !important; } #top #wrap_all #header .avia_mega_div > .sub-menu > li img { transition: 0.3s all ease; margin-bottom: 10px }and if you like to have some hover indicators on that try in addition:
#top #wrap_all #header .avia_mega_div > .sub-menu > li:hover img { transform: scale(1.05); transition: 0.7s all ease; margin-bottom: 20px }June 4, 2021 at 10:10 am in reply to: Layerslider loading last – how do I get it to load first? #1303972Well one thing to mention is that you have a max width of your content of 925px – why do you load images bigger than that.
The one is nearly twice bigger.
The same with the 768px version for the responsive case.
And it seems that you load the images as background and as layers:

you can see it between 768px and 990pxset your rules to important
besides that trial – i can not see your inserted css code at all in your existing css. – try to refresh all cachings and refresh css and js file mering of enfold too.body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_radio .gchoice, body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_checkbox .gchoice { display: inline-grid !important; grid-auto-flow: column !important; } #top .gform_wrapper .gfield_checkbox li label, #top .gform_wrapper .gfield_radio li label { margin: 5px 0 0 5px; }you see these rules are all classes except the body tag – if there is an enfold rule only with one ID that is concerning to the li – it will overwrite the normal rules.
f.e.:
June 2, 2021 at 8:11 am in reply to: Layerslider loading last – how do I get it to load first? #1303520The button that is part of the fullwidth slider can only be placed on default to the left side. But with a bit css in quick css you can shift this button to a right position.
In the Element ( as on most of the advanced Layout Builder Elements ) they have the opportunity to show or hide on 4 differnt screensizes.
So i placed two fullwidth sliders on top:
( click to enlarge the images )


The second fullwidth slider with the oposite setting.For the button positioning i gave a custom-class to the sliders : homeslider
.homeslider .avia-slideshow-button { position: absolute; right: 5vw; bottom: 5vw; padding: 15px 25px !important; box-shadow: 2px 2px 15px -5px #000; font-size: 18px; }June 1, 2021 at 6:27 pm in reply to: Layerslider loading last – how do I get it to load first? #1303456Do you use the advanced layerslider elsewhere on your page?
As far as i can see it is only one image and a button – something you can achieve with enfold sliders aswell.see here ( for mobile view with the other image ) https://webers-testseite.de/sideutsch/
two fullwidth enfold sliders.you only need this ( nice ) slider if there are more action in the layers. Link
btw: if your content is only 925px wide – why not optimize it for this maximum widthit is a wordpress limitation : 2560px – all images bigger than that will be recalculated and saved as xyz-scaled.jpg ( or png etc )
– Enfold creates some image-formats for their used elements ( see functions.php line 185ff : sizes )
– on functions.php lines 246ff – you see that for these images a compression level is set to 100% – : no compression.That is the reason why the original jpg ( with 2560px width) might be smaller in file-size as the recalculated 1500px image ( featured_large or extra_large ).
You can set this compression level by a small snippet in child-theme functions.php:
e.g. for compression level 55%: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;}This will only influence the uploading process. If you want the existing images have the same compression level you might use a “regenerate Thumbnails” Plugin afterwards.
__________________
PS: you can influence this big image threshold via a filter : big_image_size_threshold see here: Link
f.e.:function increase_big_image_size_threshold( $threshold ) { return 3500; // new threshold } add_filter('big_image_size_threshold', 'increase_big_image_size_threshold', 999, 1);Ps : i restored now the page settings before – can be closed
aha – now i see what the new feature is going to do.
But is something totaly different to the approach i gave on : https://webers-testseite.de/tab-section/i thought you will show these arrows ( on content area ) if the tab-title-container is out of view on scrolling down ( that makes sense for big tab section containers ).
You don’t have to scroll to top to switch between the tabs but to press the left / right arrows.
to show arrows if there are too many tab titles when screen width has less space ;) is a lame ducksee private Content
by the way @Yigit – I mention it here again now; this should actually be the standard behavior. It makes no sense when you are in the single post to set the link that leads to itself. Maybe you pass this on as a suggestion to Günter.
Oh, come on now – you should be able to provide a little of your own effort and, above all, transfer performance!
make the selector more specific.
if there is$('.pum-trigger').each(function() {– this will influence all elements with “pum-trigger” class.
you can give to those columns f.e. a custom class – or to the color-sections etc. pp.
if it is only on that page ( page id : 7) and in that color-section etc etc.$('#top.page-id-7 #av_section_2 .pum-trigger').each(function() {the first snippet is untouched of that – so in the popup there will be the date.
But the transfer to the trigger is only on those more specific selected elements.Did you download the “installable wordpress file only” or the “All files & documentation” zip ? ;)

or: prevent the creation of these links: if you are on single post
see: https://kriesi.at/support/topic/remove-permanent-link-from-the-post-h1-title/#post-1220155
sadly the hover style is correlated not to the anchor but to that class .post-title:
so set it to 1.html_elegant-blog #top .post-entry .post-title:hover, .html_elegant-blog .avia-content-slider .slide-entry-title:hover { opacity: 1; }it is not as perfect as it could be.
@ismael – i think he is looking for a solution in that li with a lot of text following “Dabei werden zwei Arten unterschieden:”

Please remove the code – and after that i will see if it is better with some different code.Add to your code :
.entry-content-wrapper .smaller-dots li { display: flex; }and maybe 8px padding-right is enough to synchronize it with the other normal dots:
.smaller-dots ul li::before { content: "\00BB"; padding-right: 8px; color: red; }-
This reply was modified 4 years, 7 months ago by
Guenni007.
-
AuthorPosts


