Forum Replies Created
-
AuthorPosts
-
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 #1414976yes in the else statement of :
if( ! empty( $logo ) )
there will be no image so no alt nor title.
The aria label should stay :
i replaced those lines from 822 to closing else statement with:$aria = ''; $aria = 'aria-label="' . __( 'Fallback Logo', 'avia_framework' ) . '"'; /** * Return a complete modified aria-label="" attribute string * * @since 5.6.5 * @param string $aria * @return string */ $aria = apply_filters( 'avf_avia_logo_link_aria_label', $aria ); $logo = "<{$headline_type} class='logo bg-logo'><a href='{$link}' {$aria} >{$logo}{$sub}</a></{$headline_type}>"; }
see on pastebin the whole code.: https://pastebin.com/8BsvVC6T
but i guess that Günter will fix it soon – in a better way. than i can do.
yes i can confirm that i have this too – a bit different:
___________________
you can use this snippet to avoid output that fallback image or the blog_name
function change_logo_on_empty_logo_input($logo){ if(empty(avia_get_option('logo'))){ $logo = ""; } return $logo; } add_filter('avf_logo_final_output','change_logo_on_empty_logo_input');
That’s up to you: I make no claims to copyright ;)
the heading is only a “heading” for those bookmark links: you can see it in the screenshot of mike:
“Social Bookmarks” thats allor here:
July 30, 2023 at 8:07 pm in reply to: How to display “Enfold Main Menu” and “Enfold Secondary Menu” in burger menu #1414960use your footer menu for that. If you do not like to show that menu – set it to display: none. via quick css.
it goes without saying that the hamburger menu must be set to full page overlay!this snippet goes to child-theme functions.php:
function footer_menu_to_hamburger_menu(){ ?> <script> (function($){ $('#header').one('click', '.av-main-nav-wrap', function() { var isMobile = $('.av-burger-overlay').css('display'), footerMenu = $('#avia3-menu'), mobileMenu = $('#av-burger-menu-ul'), footerMenuClone = $('#avia3-menu').clone(true).addClass('second-burger-menu').css('display', 'block'); if( footerMenu.length ){ (footerMenuClone).insertAfter(mobileMenu); } }); })(jQuery); </script> <?php } add_action('wp_footer', 'footer_menu_to_hamburger_menu');
this to your quick css:
#socket .sub_menu_socket { display: none } #top .av-burger-overlay-inner { display: inline-table; top: 0 !important; } .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item { display: block !important; } #top .av-burger-overlay #av-burger-menu-ul { display: table-cell; vertical-align: middle !important; width: 50vw; padding: 0px 5vw !important; text-align: right !important; text-transform: uppercase; border-right: 1px dashed #999; /**** a separator if you like ***/ } #top .av-burger-overlay .second-burger-menu { display: table-cell !important; width: 50% !important; height: 100%; left: 50vw !important; padding: 0px 5vw; vertical-align: middle !important; text-align: left; text-transform: uppercase; z-index: 115; } .html_burger_menu_active #header .avia-menu .av-burger-overlay .second-burger-menu .menu-item { font-size: 24px; line-height: 2.7em; padding: 0.3em 0; } .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item a { color: #FFF !important; } .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item a:hover { opacity: 0.7; } .html_burger_menu_active #header .avia-menu .av-burger-overlay-inner .avia-menu-fx { display: none; } #top .av-burger-overlay-bg { background-image: url(/wp-content/uploads/background.jpg); background-repeat: no-repeat; background-size: cover; opacity: 1; filter: brightness(0.1); }
PS: the behavior of shifting the content left side was the setting before testing your requested hamburger option – it is part of non-fullpage overlay that hamburger pushes the content side
July 30, 2023 at 4:31 pm in reply to: How to display “Enfold Main Menu” and “Enfold Secondary Menu” in burger menu #1414934there is no such option in enfold by default. Yes – that page is an enfold page – but there might be custom script combining overlay main menu with footer menu.
one thing to mention on inserting these snippets to child-theme functions.php: Sometimes you had to set the priority of the function to be before loading of datepicker. So a 10 might be usefull as priority – f.e.:
function exclude_datepicker_dates() { ?> <script type="text/javascript"> var unavailableDates = ["17/12/2017", "12/12/2017", "18/6/2017"]; function unavailable(date) { dmy = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear(); if (jQuery.inArray(dmy, unavailableDates) == -1) { return [true, ""]; } else { return [false, "", "Unavailable"]; } } </script> <?php } add_action('wp_footer', 'exclude_datepicker_dates', 10);
and to keep in mind – counting starts at zero : Sunday is Day: 0 of the week and
and you do not like to use the video alb instead for it?
There you have the option to have a user defined image as preview image – and on advanced tab you can choose “Show in lightbox”by the way – in which form did you enter the youtube link? as
https://www.youtube.com/watch?v=ID
i would have centered them in a different way. Not only because the fit-content is not supported on all mobile browsers or IE’s: Link
The isHeading is only the “first level” Menu Item text. I did not set it as a first level item with a submenu (expandable) in the code. That would be quite possible. But I didn’t want to do without a heading for the sub-menu items.
-
AuthorPosts