Forum Replies Created
-
AuthorPosts
-
What do you mean by publication date – the date is shown allready – if there is no excerpt !
So you want to have Excerpt and Time and comment count?
like this:
always try – if css tips do not work – with !important:
#top div .av_ajax_search_entry_view_all { display: none !important; }
on inline svg i can include the alt and title attribute directly to the xml code – so I did not notice the lack
i can not proove it because all my installations got an inline svg file as logo. But if you look at helper-main-menu.php there is on line 126ff:
$addition = false; if( ! empty( $headerS['header_transparency'] ) && ! empty( $headerS['header_replacement_logo'] ) ) { $addition = "<img src='{$headerS['header_replacement_logo']}' class='alternate' alt='{$headerS['header_replacement_logo_alt']}' title='{$headerS['header_replacement_logo_title']}' />"; }
and on functions-enfold.php on line 1186ff:
if( false === apply_filters( 'avf_hide_transparency_logo_meta', false, $header_replacement_logo_id ) ) { $header['header_replacement_logo_title'] = get_the_title( $header_replacement_logo_id ); $header['header_replacement_logo_alt'] = get_post_meta( $header_replacement_logo_id, '_wp_attachment_image_alt', true ); }
so it has to work for png –
What about the usage of the filter: avf_hide_transparency_logo_metaEdit: i tested it on a playground – it does not work as it should with png/jpg files
I got an alt-attribute but no title ! on logo
I got neither alt nor title on alternate logoThat is the reason why i explained the code.
Blurry Images can have a lot of reasons. One is the source image. If this is not blurry : the common reason is the the used image in the frontend is a recalculated image. That can have more than one reason – one is the responsive reaction on the give space.
so if you put in a 1500px wide image and it is resized to 900px because there is no space for it – it could cause blurry results.so first try this in child-theme functions.php:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
refresh all cachings and look what happens to the lightbox image.
the size of the lightbox is configured via:
in Quick Css:.mfp-image-holder .mfp-content { max-width: 80vw; }
correct the padding-top of #main
On every page/post edit – on the right side where you publish the page a field with : page-attributes:
there you can choose : no header – no footer.
If you only want to get rid of header :
On the right side again there is from Enfold: Layout –
: Header visibility and transparency
Several options to change the header transparency and visibility on this page.you can choose there to have: “Hide Header on this page”
how to influence the lightbox size itself:
.mfp-image-holder .mfp-content { max-width: 80vw; }
how to avoid downscaling when column only can show a scaled version of an image ( not the lightbox )
you can not avoid scaling on responsive case – you only can hope that an image in the srcset fits best to the given space for it.
But you can create your own image-size for best fitting on non responsive case.
…
filter: image_size_names_chooseadd_image_size( 'new-size', 2000, 500, true ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'new-size' => __( 'New Size' ), ) ); } add_filter( 'image_size_names_choose', 'my_custom_sizes' );
Enfold on Default takes for the lightbox-images not the full but the large images. These image formats are defined in functions.php on lines 174ff
( i just removed the comments) just for info:$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); $avia_config['imgSize']['entry_without_sidebar'] = array('width'=>1210, 'height'=>423 ); $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
these image-sizes are generated from Enfold on uploading it to media-library.
WordPress itself generates 3 additional image-sizes:Thumbnail (on default : 150px square or 80px)
Medium (on default : maximum 300px width and height)
Large (on default : maximum 1024px width and height)
Full (full/original image size you uploaded)
But: Enfold has some filter to change the format of this image for the different uses.
One is: avf_avia_builder_helper_lightbox_size
Another one is: avf_avia_builder_masonry_lightbox_img_size
Or: avf_avia_builder_gallery_image_linkHow to use the filter : over child-theme functions.php:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
function avia_change_masonry_thumbnail_link($size){ return "full"; } add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){ $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
do not forget to empty all caching plugins and if you merge js and css files in Enfold to regenerate these files.
March 9, 2020 at 4:12 pm in reply to: Burger/Mobile submenu links / How can I add a further colour for the… #1191558Das CSS ist kein Hexenwerk, wenn man sich mal mit den Browser eigenen Developer Tools beschäftigt (nahezu alle bringen da mehr oder weniger gute mit – bei Safari muss man das in den Einstellungen allerdings aktivieren).
siehe mal hier mein Kommentar unten: https://kriesi.at/support/topic/arrange-to-middle/#post-1094963Da kann man ganz gut vergleichen was an Klassen zB an einem aktivem Menu Punkt anliegt.
Man kann dort “virtuell” css code einfügen, und die Veränderung beobachten – bevor man es überhaupt in das Quick CSS einfügt.
#top .avia-datepicker-div.ui-datepicker .ui-datepicker-prev span, #top .avia-datepicker-div.ui-datepicker .ui-datepicker-next span { color: transparent; }
So if you also want to consider selecting these text fields :
then set them to display: none#top .avia-datepicker-div.ui-datepicker .ui-datepicker-prev span, #top .avia-datepicker-div.ui-datepicker .ui-datepicker-next span { display: none }
“The video itself actually contains the black bars or space. ”
so re-render your film : https://webers-testseite.de/wp-content/uploads/testbackground.mp4
this is than 16/9 Format.
and give to the color-section : “Custom-height in % …” : 56%
See: https://webers-testseite.de/fullvideo-background/you can see here how to change the placeholder and to substitute these prev. next text:
https://kriesi.at/support/topic/change-contact-formular-field-date-prefilled-dd-mm-yy-in-tt-mm-jj/#post-1185401
I prefer the : use signs as << and >>March 8, 2020 at 10:26 am in reply to: Burger/Mobile submenu links / How can I add a further colour for the… #1191235ja – ist eben leider so, dass es ohne die Seite schwer ist den genauen Code zu generieren. Du siehst allein anhand des vorhandenen Codes von Enfold , dass hier genau geschaut werden muss welche Ebene des Menus nun angesprochen werden soll – die
.av-burger-overlay li a, .av-burger-overlay li li a, .av-burger-overlay li li li a Cascaden sprechen dort mit hinein.That is not something I would generally adopt in the subject. Just for this particular case: only ok for sticky header on responsive case with non-shrinking headers.
Otherwise the top positioning of overlay and overlay-bg had to be calculated equal to header-height.maybe this could be a good alternative : not to have the overlay hamburger on top but shifted that amount of header height downwards:
@media only screen and (min-width: 768px) and (max-width: 989px) { .responsive.html_mobile_menu_tablet #top #wrap_all #header { position: fixed; } .av-burger-overlay, .av-burger-overlay-bg { top:91px } .html_av-overlay-side-classic #av-burger-menu-ul { padding: 0 0 100px !important; } .responsive.html_header_transparency.av-burger-overlay-active #header.av_header_transparency #avia-menu a { color:#fff !important; } .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner, .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner::before, .html_av-overlay-side.av-burger-overlay-active #top .av_header_transparency .av-hamburger-inner::after { background-color: #fff } } @media only screen and (max-width: 767px) { .responsive #top #wrap_all #header { position: fixed; } .responsive #top #main { padding-top: 80px !important; /*** play with that - depends on your header-height ***/ } #top .av_header_transparency .header_bg { background-color: #FFF; } .av-burger-overlay, .av-burger-overlay-bg { top:81px } .html_av-overlay-side-classic #av-burger-menu-ul { padding: 0 0 100px !important; } }
looks this way on opened hamburger between 768px and 989px
by the way ;) – dear mods – the example page shows a poor header behavior between 768px and 989px – see that ugly gray header.
Allthough the padding-top of main is set to 0 ?but that header he could have in fixed position on top.
can you try this in quick css:
depends on your burger-menu break point ( when burger is shown – on the demo page 2017 it is at 990px )
@media only screen and (min-width: 768px) and (max-width: 989px) { .responsive.html_mobile_menu_tablet #top #wrap_all #header { position: fixed; } } @media only screen and (max-width: 767px) { .responsive #top #wrap_all #header { position: fixed; } .responsive #top #main { padding-top: 80px !important; /*** play with that - depends on your header-height ***/ } #top .av_header_transparency .header_bg { background-color: #FFF; } }
well – if it is your nick.it site – i can see the burger-menu on my old iphone 6
March 7, 2020 at 5:59 pm in reply to: Burger/Mobile submenu links / How can I add a further colour for the… #1191141there is one thing to know the parent of that sub-menu link got the same class: current-menu-item
but it has an additonal one of active-parent-item so you had to exclude this parent from being influenced too:#av-burger-menu-ul :not(.active-parent-item) .current-menu-item > a { color: red !important; }
better would be to see your page – because sometimes there are second-, third-, fourth-level sub-menu items .
March 7, 2020 at 5:37 pm in reply to: Setting different font sizes for MacBook Pro and iPad Pro #1191138you can select these devices over their device pixel ratio
because these devices got one of 2You find here a good explanation: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
f.e.:
@media only screen and (min-device-width: 1366px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) { … }
Hi Mike – what do you mean by:
If you are using the newest child theme included with v4.7.3 then this code is already included
The child theme i can download has no entry in the child-theme functions.php and in 4.7.3 i can not find an analog loading –
so I think it’s still necessary to activate it with the snippet from above.And may i ask for what the if clause is here in your code – i allways use this without:
function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
March 6, 2020 at 5:29 pm in reply to: Contact form / How do I change the colour of the fieldnames? #1190931See here f.e.: https://kriesi.at/themes/enfold-2017/pages/contact/
you mean these placeholder text?look for .main_color ::placeholder definition
https://css-tricks.com/almanac/selectors/p/placeholder/HELLO MIKE : please change your image-hoster – it is horrible
popups and other nefarious sites as they all open up – not always – but more and more often. Also the Kriesi page will be closed etc. pp.
Please!________
On Ismaels code i see there was a little inconsitency: if there is a color-section with background-image on top – like here f.e:
https://kriesi.at/themes/enfold-2017/blog/blog-single-author-small/ his code will end in a colorized top color-section too:
So we can use an attribute selector – only if there was no background-image on container.wrap the code will do the job:@media only screen and (min-width: 768px) { .container_wrap.sidebar_right:not([style*="background-image"]):before { content: ''; display: block; position: absolute; right: 0; top: 0; background: #ddd; height: 100%; width: calc(30%); } }
if you got sidebar left the change it to: .container_wrap.sidebar_left.
Or you do it with flex-box modell – and only css –
you can see it here with content and sticky sidebar: https://webers-testseite.de/sticky-sidebar/
and the code you need to set in your quick css.
and here is a page with colums: https://webers-testseite.de/sticky-elements/
The thing to have in mind is that the direct partent container gets display: flex – and the sticky child is set to position: sticky
Important on that to know for Enfold: overflow settings as described in the first link
It is a nice thing because it get out of sticky when the sticky element comes to the end of the parent container.Great advantage : no scroll calcalation with performance requirements.
But i guess : IE11 does not support: https://caniuse.com/#search=stickyMarch 5, 2020 at 5:39 pm in reply to: Google Map Marker beim Öffnen weiterer schließen lassen #1190506ja so ist es beschrieben oben:
du legst dir eine Kopie dieser Datei in den child-theme/js/ Ordner ( der ist per se nicht unbedingt da, dann leg ihn an)
durch das Snippet bindest du dann über das child-theme diese Datei statt der parent datei ein.
So bist du einigermaßen sicher beim nächsten Eltern-update. Sollte sich aber mal was in der avia_google_maps_api.js ändern – siehst du wenigstens der Kommentare wegen, was sich geändert hatte und du kannst dann anhand dessen die neue Datei wieder bearbeiten.I can get rid of these by css – but I’d prefer the clones didn’t emerge.
#av-burger-menu-ul > li > ul.sub-menu > li.av-width-submenu > a:nth-of-type(1) { display: none !important; }
Solved:
ok that was the real hint :
mega_titel.html()
could not be used because it has all the content of the anchor in it too.
So there is an empty anchor li and then the one with the text.
i just did it now this way ( 1004 ff) : i inserted that new var: mega_title_textvar megacolumn = $(this), mega_current = megacolumn.find( '> .sub-menu' ), // can be 0 if only a column is used without submenus mega_title = megacolumn.find( '> .mega_menu_title' ), mega_title_text = mega_title.find('a').html(), // so this is new to have tag transfer to hamburger menu titles mega_title_link = mega_title.find('a').attr('href') || "#", current_megas = mega_current.length > 0 ? mega_current.find('>li') : null, mega_title_set = false, mega_link = new_li.find('>a'), hide_enty = '';
and this mega_title_text comes then to the mentioned place:
$('<a href="'+mega_title_link+'"><span class="avia-bullet"></span><span class="avia-menu-text">' + mega_title_text + '</span></a>').insertBefore(new_ul); mega_link = new_li.find('>a');
This work great : can be closed
Edit: i recognized that on indivdual link with link: # the new var needs an if clause:
var mega_title_text = mega_title.find(‘a’).length > 0 ? mega_title.find(‘a’).html() : mega_title.html(),
so it has to be:
var megacolumn = $(this), mega_current = megacolumn.find( '> .sub-menu' ), // can be 0 if only a column is used without submenus mega_title = megacolumn.find( '> .mega_menu_title' ), mega_title_text = mega_title.find('a').length > 0 ? mega_title.find('a').html() : mega_title.html(), mega_title_link = mega_title.find('a').attr('href') || "#", current_megas = mega_current.length > 0 ? mega_current.find('>li') : null, mega_title_set = false, mega_link = new_li.find('>a'), hide_enty = '';
-
This reply was modified 5 years, 3 months ago by
Guenni007.
Thanks : But this is definitely something that has to be in a next update. It is precisely this possibility of setting html tags that is often necessary for the Hamburg menu items.
Edit: But it does not seem to be that simple: the simple exchange leads to a blind menu entry – which also leads to the corresponding page, but see it on the source code
And have a look on the demo page in private ContentMarch 4, 2020 at 7:02 pm in reply to: Header Logo center, Menu below -> Scroll out only logo #1190166hi Victoria – i hope, not in my script? !
March 3, 2020 at 7:59 pm in reply to: Header Logo center, Menu below -> Scroll out only logo #1189820no private Data for me – you have to wait til mods are here. I’m participant as you.
-
This reply was modified 5 years, 3 months ago by
-
AuthorPosts