Forum Replies Created
-
AuthorPosts
-
August 22, 2023 at 5:13 pm in reply to: Entry with Post Format “Video” with video thumbnail #1416868
there are plugins for that. But if your preview video is not too long and from big dimensions – a lot of external hoster ( youtube, vimeo) offer the option to generate from a custom part (6s) of the video a gif transform. You can download that gif and use it as featured image.
See f.e.: https://webers-testseite.de/blog/if you like to selfhost a video – you can convert a part of your video to gif by: https://ezgif.com/video-to-gif
For featured images there is a limitation of size (guess it is 320px width) to use a gif as featured image.Big advantage of a gif : if you had to be compliant with GDPR (DSGVO) a gif Preview does not need to have opt in.
but the snippet above works – your objection just says that if the value is between 0 and 1 by parseInt that is set to 0.
You’re right, I should have looked in there. With setting a multiplicator , I generally feel uncomfortable setting the zero in case the value is used elsewhere for a division.you can download the logo from above and use it! I do remove now from the example page – and from my initial Test Page your logo except from the link:
https://clean.webers-testseite.de/eichenhaus/If you have seen it – i will remove my solution for it.
see result here – ( it is up to you how to place path inside that svg )
https://clean.webers-testseite.de/eichenhaus/it just uses the header-scrolled class to change the logo inside:
#top #header #Bild-Logo, #top #header #Text-Logo { transition: all 1s ease; } #top #header.header-scrolled #Bild-Logo { fill-opacity: 0; } #top #header.header-scrolled #Text-Logo { fill-opacity: 1 !important }
and with the same logo – on transparency change fill option:
#top #header:not(.header-scrolled).av_header_transparency #Eichenhaus-Logo .eh0 { fill: #fff }
see Startpage of the link above
on your initial page there is a svg Logo on top right. ( The “S” from Schreinerei is not well verctorized – if you know the Font-Types you can create a good svg logo again.
if you look to the DOM of that svg ( svgs are xml based ) you see that i have your brand in an extra group with ID: “Bildmarke”
you can influence inline svgs via quick css!i would do that via svg logo – and just with shrink event.
there are classes added ( or removed ) if header changes. So no additional script is needed.i think it is part of that discussion here: https://kriesi.at/support/topic/erroneous-output-if-no-logo-is-deposited/
you can try that in the meantime:
this is based on what you entered to customizer as blog name – but you can chante it to a given h1
just insert for :$logo_heading = "Musikschule Jüttner & Co.";
function change_logo_on_empty_logo_input($logo){ $link = apply_filters( 'avf_logo_link', home_url( '/' ) ); $logo_heading = get_bloginfo( 'name', 'display' ); if(empty(avia_get_option('logo'))){ $logo = '<span class="logo text-logo"><a href="'.$link.'"><h1>'.$logo_heading.'</h1></a></span>'; } return $logo; } add_filter('avf_logo_final_output','change_logo_on_empty_logo_input');
and for quick css:
.logo.text-logo a { line-height: inherit !important; max-height: inherit !important; } #top .logo.text-logo a h1 { margin-bottom: 0 !important; display: inline; vertical-align: middle; }
…. just one moment – i had to see how to insert – with preserving shrinking header option
- This reply was modified 1 year, 3 months ago by Guenni007.
not before the filter – this is not possible – but with a different way ( that via word count) :
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).closest('.slide-entry').find('.entry-footer').prepend($(this)); }); $('.avia-content-slider .slide-entry-excerpt').each(function() { $(this).text(function(index, currentText) { return trimByWord(currentText); }); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_excerpt_setting');
but as said above – it is better to influence the build process – than to shift it afterwards.
The best place for the read more link is the entry-footer.yes on former attempts i shift the read-more link via jQuery
$('.avia-content-slider .read-more-link').each(function() { $(this).closest('.slide-entry').find('.entry-footer').prepend($(this)); });
to that entry-footer – but it would be better to have it just from the beginning on that place.
PS: it would be nice to have a filter to limit excerpt on both : ALB posts and standard Post by word count.
Some thoughts on excerpt:
I think it would be generally better to remove the read more link from the excerpts and put it in the entry-footer before the meta information. For this you would only have to change the postslider.php in some places.
In the ALB element is queried, as should be displayed – about the ID “contents” the value will then decide later, via switch and case contribute to how the output looks.So if we take the decisions whether to set read-more out of the excerpts and then put them in entry-footer, that should then give us the ability to limit the excerpts according to the above filter set by Mike without cutting the read-more link.
see here in the DOM where the read-more link is : https://webers-testseite.de/blog/
see here the edited postslider.php on pastebin: https://pastebin.com/PL15U0NN since lines 893-917 and for the entry-footer: 1227-1243
i hope that this will go to the next update of enfold – because it makes sense to limit excerpt length but to preserve read-more link!
Nur bei Post oder auch bei Portfolio?
insert on that copyright input fiield – f.e. at the end :
[nolink]
see: https://kriesi.at/documentation/enfold/footer/#copyrights-info
Yes – thanks – thats it: but as mentioned here: https://kriesi.at/support/topic/two-custom-widget-areas/#post-1415364
i can wait for next update – to solve the issue.August 5, 2023 at 12:13 pm in reply to: The new Swiss Federal Act on Data Protection (FADP) #1415539Couldn’t you name the differences here? That would certainly be helpful.
https://www.datenschutzkanzlei.de/schweizer-datenschutzgesetz-2023-dsgvo/This is only a cosmetic issue – the function is preserved.
can you please check if this happens when you go to performance and choose : “use minified theme javascript …”
ok – then I have to look through the child-theme functions.php to see if I have set something in this regard.
hallo mike – what widget area hook did you use?
i have found that with a shrinking header it can be advantageous to do it using ava_after_main_menu.what is your header setting? Logo left menu right … ?
August 1, 2023 at 12:49 pm in reply to: New website, when uploading Enfold theme immediately a critical error #1415139try it now the path is correct to your parent directory: https://jolijnsommers.nl/wp-content/themes/enfold/style.css
Yes – this is the much better solution!
July 31, 2023 at 1:57 pm in reply to: New website, when uploading Enfold theme immediately a critical error #1415035by the way if you start with your enfold page – this might be a good moment to install the enfold child-theme! Many good tips and snippets are much easier to implement with a child theme.
You can download it from the docu of enfold: https://kriesi.at/documentation/enfold/child-theme/
After renaming the enfold parent folder to enfold and uploading the child – you will see on Dashboard : Themes – two Enfolds – activate the ChildJuly 31, 2023 at 1:40 pm in reply to: New website, when uploading Enfold theme immediately a critical error #1415034aktiviere mal kurzzeitig den Wartungsmodus und schau nach ob da eine Seite hinterlegt ist – wenn ja stelle es auf “Seite auswählen” zurück und dann deaktiviere wieder den Wartungsmodus.
PS – da du auch keine 404 Seite hast – deaktiviere diese auch. Oder heißt die Seite so wie es dort steht (“404 Seite nicht gefunden”) ?
July 31, 2023 at 11:10 am in reply to: How to display “Enfold Main Menu” and “Enfold Secondary Menu” in burger menu #1415014you are welcome
July 31, 2023 at 12:35 am in reply to: How to display “Enfold Main Menu” and “Enfold Secondary Menu” in burger menu #1414983where do you load your jQuery script?
See on enfold options: Enfold – Performance – “Load jQuery In Your Footer” ?
if you load it in the footer we had to set a priority that the script is loaded after jQuery
in this case replace the last line :add_action('wp_footer', 'footer_menu_to_hamburger_menu');
by:
add_action('wp_footer', 'footer_menu_to_hamburger_menu, 999');
July 30, 2023 at 11:01 pm in reply to: How to display “Enfold Main Menu” and “Enfold Secondary Menu” in burger menu #1414976 -
AuthorPosts