Forum Replies Created
-
AuthorPosts
-
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, 1 month 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, 1 month ago by
Guenni007.
May 31, 2021 at 9:06 am in reply to: Layerslider loading last – how do I get it to load first? #1303119if you look to my testpage now :
Uploaded Images ( left tranfered to sRGB before uploading) ( right – with ProPhotoRGB)
all smaller calculated images are not “well colored”
what I don’t quite understand is why the original Size on both images ( and in my lightbox these are displayed ) have correct colors – although it is a ProPhotoRGB.hm – the original size of your image:
https://www.bureaureinasmallenbroek.nl/wp-content/uploads/2021/05/Gasterse-Duinen-4-bomen.jpg
it has a ProphotoRGB embedded – maybe that will cause the color shift on upload and recalculation to smaller images.-
This reply was modified 4 years, 1 month ago by
Guenni007.
Yes – and i see on your Webpage that you are a professional Photographer.
If i work with my photos i do work as long as possible in AdobeRGB – because the color room is bigger than on sRGB. For webupload i do transfer those profiles to sRGB – not all Browsers have a color-management for adobeRGB ( Firefox , Edge) – Safari and Chrome not.
See here one of your Photos – left with sRGB Profile embedded – right with adobeRGB:
https://webers-testseite.de/reina/
when you have seen it – i will remove those examples.your color mode rgb is a sRGB profile or is it f.e. an adobeRGB.
– I used to work for museums and the color correct reproduction was always an issue.
Unfortunately, many of the images were also intended for printing, so I sometimes got a CMYK in the web upload.
Maybe that’s what happened to you with that one image without you realizing it, you failed to convert it to sRGB.
The standard RGB Profile is for Web – guess all browsers try to generate the image display according to this standard.
If i rember it well – the adobeRGB interpreted as sRGB looks a bit more magenta – especially the blue colors.-
This reply was modified 4 years, 1 month ago by
Guenni007.
and you definitly have a fontello icon set ? – and that has the new icons for your new definitions.
( the standard enfold fontello set is: entypo-fontello )Did you place it in your functions.php on the right place? right before that
line 844 :require_once( 'functions-enfold.php');
Did you refresh all cachings – refresh the merging of Enfold on Performance Settings ?
you have still some rules concerning to padding-top of #main in your css set to !important
you got this rule in your css:
@media only screen and (min-width: 787px) { #header_meta { display: none !important; } .html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 170px !important; } }
the rule of a blank page layout :
#top.avia-blank #wrap_all #main { padding-top: 0 !important; margin: 0; }
comparing the selectors – the first has one class more than the second – so it will win the game ;)
is the first rule a custom rule in your quick css ?you can overwrite that rule by:
.html_header_top #top.avia-blank #wrap_all #main { padding-top: 0 !important; margin: 0; }
BUT
The first rule is an enfold rule but not set to !important on default.
is there any reason to set it this way?But now you have decided to have the stretched Layout:
_____
Yes – you have to think about that, and it happens even with experienced users.
So my recommendation: as long as you are still working on the site, trying out different stylings and css settings, turn off all caching you have influence on. So the merging of the css and js files in Enfold and also turn off caching plugins. The browser cache can be hard refreshed relatively quickly with key combinations depending on the browser.
As soon as this phase is finished, you can take care of the performance.PS: Any image larger than 2560px will be scaled by wordpress during upload and saved as original with the name xyz-scaled.jpg.
So in order not to inflate your upload unnecessarily, you should not upload images larger than 2560px.
And you should choose a higher compression rate in your graphics program when saving.
Unfortunately, the Enfold calculated image formats have no more compression, so it can happen that the original file has less filesize than the 1500px image from Enfold.There are only a few images ( monochrome gradients – like sunsets or skin tones )where it could really be noticeable.
But you gain quite a bit in performance. It is of little use if your pictures look sharp and beautiful, but take 10s to load. Then the viewers of the pictures are already gone.There are some snippets to avoid that and define a compression rate for those recalculated Images on upload.
This snippet in your child-theme functions.php set the compression rate to 55 ( instead of 100 : no compression )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;}
give this a chance ( remove the other code ):
html.html_av-framed-box { padding-top: 0 !important; } .av-frame.av-frame-top.av-frame-vert { height: 0 !important; }
remove all css rules trying to get rid of the headers of that page. The mentioned template will do the job and will think of the right padding for #main
a page popup is done easily by the page link followed by ?iframe=true
f.e.: see here a demo page : https://webers-testseite.de/my-website/
on the right button i have inserted as link :https://webers-testseite.de/under-construction?iframe=true
that is my “Maintenance Mode” Page
Left is an external page of mine.we can surround the weekday by some html with a class. Those extra letters had to be escaped.
Replace the whole code with:
function add_date_time_popup_content( $content ) { if ( ! function_exists( 'pum_get_popup_id' ) ) return; $popup_id = pum_get_popup_id(); return "<p class='date-published'>" . get_the_date( '\<\s\p\a\n \c\l\a\s\s\=\"\w\e\e\k\d\a\y\"\> l \<\/\s\p\a\n\> \d. d.m.Y' , $popup_id ) . "</p>" . $content ; } add_filter( 'pum_popup_content', 'add_date_time_popup_content' ); function show_date_of_popup(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function(){ $('.pum-trigger').each(function() { var pumPopup = $('.pum').css('display'); var trigger_name = $(this).attr('class').split(' ')[0]; var publishingDate = $(this).closest('#top').find('#'+trigger_name+' .date-published').html(); var date_published = $('<span class="puplished">'+publishingDate+'</span>'); $(this).append(date_published); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'show_date_of_popup', 9999);
and put this to quick css:
.puplished .weekday, .date-published .weekday { text-transform: capitalize; }
-
This reply was modified 4 years, 1 month ago by
-
AuthorPosts