Forum Replies Created
-
AuthorPosts
-
June 19, 2024 at 8:53 am in reply to: add categories to default (business) style blog post element grid layout #1451941
I’m afraid it won’t be that easy without a child-theme postslider.php. The category metas are part of entry-content-header – the rest of the meta info is in slide-meta.
With javascript you can move it there afterwards, but the method of placing it there when it is created would certainly be more elegant.June 19, 2024 at 8:38 am in reply to: add categories to default (business) style blog post element grid layout #1451938it works the way Ismael said above.
On Blog Layout – Blog Meta Elements you have that options to show – or not to show those meta Infos.
If you like to have that snippet of ismael depending on that setting you can use instead:function avf_postslider_show_catergories_mod($category) { if('blog-meta-category' == avia_get_option('blog-meta-category')){ $show_cats = 'show_business'; return $show_cats; } } add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
June 18, 2024 at 5:19 pm in reply to: Toggle 4 columns in big screen to 2 columns in mobile #1451889one thing to mention: the pseudo containers ( before and after ) are part of : entry-content-wrapper
if you handle that container as flex-container they will be part of all definitions.so i do set them to display:none on that case.
next: i do not work with width setting – on the contrary – I set the column widths to unset ( these columns are the items of the flex-containers.)
next: do not use the equal height option – this could be done bei flex-box layout – and those added containers will be part too of the flex-box.see here an example page including the css code for it. You see all items will have the same height!
https://webers-testseite.de/flexed/
PS : eventuell postet du mal den Link zu deiner Seite – dann schaue ich mir das näher an.
in detail : it is this calculation case:
if( burger_menu.is(":visible") ) { this.css({top: 'auto', position: 'absolute'}); fixed = false; return; }
that is replaced by that:
if( burger_menu.is(":visible") && (scrolled + modifier > top_pos) ) { this.css({top: header.Height() , position: 'fixed !important'}); fixed = true; }
and these values are set all to !important in the original menu.css
@media only screen and (max-width: 989px){ .responsive #top .av-switch-990.av-submenu-container{ top: auto ; position: relative ; } /**** … ***/ } @media only screen and (max-width: 767px){ .responsive #top .av-switch-768.av-submenu-container{ top: auto ; position: relative ; } /**** … ***/ } @media only screen and (max-width: 479px){ .responsive #top .av-switch-480.av-submenu-container{ top: auto ; position: relative ; } /**** … ***/ }
only if they could be overwritten by that js script – the mobile sticky submenu will work.
i have this solution with complete replacement of all menu files in my child-theme shortcodes folder.
All files – because there are in original css rules with !important setting. This is something you could not overwrite with other css.
And inside the js file we had to set a different calculation. Especially the case: if( burger_menu.is(“:visible”) ) had to be set in a different way.See example page: https://webers-testseite.de/transparent-header/
here are the edited menu files: https://webers-testseite.de/menu.zip
on that testpage – there are two submenus – and it works with full-menu or with second hamburger ( test under 479px)
give to the link or to one of its parents the custom class: noLightbox
( pay attention it is case-sensitive)next hint: if you got a button and you installed the latest version – the “Link Setttings and Filedownload” indicates the option of button type:
“File Download Button”
in this case on an image – it will be not shown but directly downloaded.
PS : if you only dislike the overlay – you can have lightbox without that by:.avia_transform a:hover .image-overlay { display: none !important; }
between 768 and 989px – do you like to have a burger or a full menue too?
header_meta – should scroll away or stay visible too?the point is that on emulators ( developer tools of all my desktop browsers ) your mobile menu is sticky and fullwidth on screen width less than 767px.
But on a real mobile device, the header scrolls out of the screen.
It is hard to check – because on most cases – the css rules to make are built with dev tools.
…
Can you make the link to your site public? I will then try to create a CSS for you.
I have also implemented the sticky header on my test page. LinkFirst: Do you really need all of them. Fontloading is something that could reduce performance of your website.
Next: My advice is not to use the variable Font that is inside the TypeType CommonsPro folder too – it has all the font-faces that are inside that folder and a file size of 1.8MB
if you can live with light, regualar and bold – i would only take the non italic fonts and upload them to transfonter
the convert as shown above and download it – rename the zip file to f.e.: Commons-Pro
Edit
This is a strange professional font. Normally it always works right away to generate the zip file as a font family. In this case – I first had to open the files in FontLab and have the names (postscript names) regenerated there by Build Names. I then saved these as otf families and uploaded them to Tranfonter.
Now you can see it is ok:
test yourself with: https://webers-testseite.de/commons-pro.zip
Please note, however, that your licensing model must include web font use.
isn’t there a “Minimum Height – For Flipbox Only” Option on Styling – Grid-Styling?
Because you are using it without content (only a background image is inside the grid cell). A quick solution could be to place a separator as a white space in this cell. This allows you to determine the height after switching to the responsive view.
there is no technical limitation on using Adobe Fonts. You only had to be allowed to use the font as webfont too. Sometimes the licence models are different. And f.e. an otf file is not allowed to use for web.
see : https://kriesi.at/support/topic/custom-fonts-not-working-in-safari-seem-ok-in-chrome/#post-1445405
you can upload your font families (Only one font family per conversion ) to f.e.: https://transfonter.org/ Do only upload one font type ( all ttf – or otf etc.) e.g: all font-weights you need as otf from Garamond.
– my advice for conversion settings is then to only use ttf (as fallback) and woff2 (for modern browsers. On settings choose “Without Demo Page” and ( guess it is preselected ) “Family Support“.
Rename this downloaded zip file to something that is correlated to your FontFamily (because that is the name of the Enfold listed Font Family) – and upload it to the Enfold Fontmanager.
The font-family rule name is the original one from the uploaded files.
thats all.June 9, 2024 at 10:33 pm in reply to: Video aspect ratio in light box in portrait format (9 to 16) #1448746last attempt – calculation with the given paddings is hard to fullfill – so try on that page without:
(To avoid incorrect values for the normal videos (landscape mode), set these values only for the corresponding page.
(Unfortunately, a custom class is not passed to the main class of mfp-wrap. You could do this for an inline popup.).mfp-iframe-holder { padding: 0px !important; } .mfp-iframe-holder .mfp-content { height: 90vh !important; /*** the wanted height ***/ width: 50.625vh; /*** the calculated width is then ***/ } .mfp-iframe-scaler { padding-top: 178%; /*** 100 x 16 / 9 = 177.88 ***/ }
see again: https://webers-testseite.de/portrait-video/
June 8, 2024 at 6:47 am in reply to: Video aspect ratio in light box in portrait format (9 to 16) #1448665What is the exact Video aspectratio?
June 7, 2024 at 11:35 am in reply to: Video aspect ratio in light box in portrait format (9 to 16) #1448606maybe you try this only:
(if you got a real 9/16 video).mfp-iframe-holder .mfp-content { width: 50vh !important; } .mfp-iframe-scaler { padding-top: calc(158% + 80px); }
if the video has a width of 50vh – then it has a height of 89vh ( so enough space for close button ). However, with a padding top this means: 89×16/9 = 158
see: https://webers-testseite.de/portrait-video/
- This reply was modified 5 months, 2 weeks ago by Guenni007.
if you only want to link from the picture to one side once, it is difficult to implement.
Some of the elements (Masonry Gallery, Gallery ) have the option: under ‘Advanced Tab’ – Image Link : ‘use custom link – fallback is image’. However, the value entered is then entered globally under the image. So if you only want to set the link to a page in one of the galleries, you have to upload a copy of the image.Ah sorry – i read that after reading the other post . So thanks for the complete solution now.
Wow – thank you very much. Don’t you think it’s an improvement?
Maybe a sliding timing as ALB Option would be nice too. On that example page i changed to 1000msEdit: https://kriesi.at/support/topic/slidedown-speed-on-toggles/#post-1448252
man kann das Bild ja normal einbetten. Als float image. Ich dachte nicht an multi-column.
Dann ist aber natürlich bei kleinen Screens fließt dann der Text um das Bild herum.Dann musst du eventuell doch auf den komplexeren Weg abzweigen.
Beschreibung ist ja auf der Seite.this technique is called : infinite scroll – maybe that older post can help you on that:
https://kriesi.at/support/topic/quick-way-to-add-infinite-scroll/#post-681490Edit: it still works.
Download that little script: https://jscroll.com/#/installation
and upload it to your child-theme js folder ( if there is none – create that child-theme subfolder )I load the script only for my test page (ID: 45777)
put this to your child-theme functions.php:function my_custom_infinite_scoll() { if ( is_page(45777) ) { wp_enqueue_script( 'avia-child-jscroll', get_stylesheet_directory_uri().'/js/jscroll.min.js', array('jquery'), 2, true ); } } add_action('wp_enqueue_scripts', 'my_custom_infinite_scoll');
and
function infinite_scroll() { if ( is_page(45777) ) { ?> <script type="text/javascript"> (function($) { $( ".content" ).jscroll({ loadingHtml: '<img src="/wp-content/uploads/anim-world.gif" alt="Loading" /> Loading...', nextSelector: 'span.current + a', contentSelector: '.article-grid', autoTrigger: true, }); })(jQuery); </script> <?php } } add_action('wp_footer', 'infinite_scroll', 999);
In my case it is a blog element – give that custom class: article-grid to that element.
Read the setting carefully ( with pagination – this nav is set to display none via css )hier kannst du mal eine Umsetzung mittels Grid Layout nachvollziehen:
Ziehe den Screen mal kleiner als die 1200px dann siehst du wie die responsive Setzung arbeitet. Man müsste dann noch für sehr kleine screens etwas machen.https://webers-testseite.de/kdrbh/
Sehr gute Einführung:
https://css-tricks.com/snippets/css/complete-guide-grid/
und
Playground: https://grid.layoutit.com/Warum denkst du so kompliziert?
Warum machst du nicht ganz normal 1/2 columns und setzt jeweils dort ein Text-block hinein. Das bild kannst du dort im Text-Block auch als links – bzw. rechtsbündig setzen.
Ist auch für das responsiv verhalten wesentlich leichter zu handhaben. Versuch doch mal durchzuspielen, wie dein Layout – speziell die Bilder reagieren sollen bei schmalen Screens!
PS: komplexe layouts kann man mit dem Grid Layout erstellen – aber wie gesagt – warum kompliziert wenn es auch einfacher geht.
__________Why don’t you just make 1/2 columns as normal and put a text block in each. You can also set the image in the text block to be left-aligned or right-aligned. It is also much easier to manage for responsive behaviour. Try playing around with how your layout – especially the images – should react on narrow screens!
PS: complex layouts can be created with the Grid Layout – but as I said, why make it complicated when it can be simpler?
see: https://webers-testseite.de/grid-layout-modul/
PPS: die Felder müssen nicht immer definiert werden, aber man kann dann sehr (sehr) flexibel die Zellen im responsiven Fall behandeln.for 2)
btw: that is not a blog setting – blog is context index
these are archive pages.put this to your child-theme functions.php:
add_filter("avf_post_slider_args", function($atts, $context) { if( $context == "archive" ) { $atts['type'] = 'grid'; $atts['columns'] = 4; $atts['preview_mode'] = 'custom'; $atts['image_size'] = 'magazine'; // if you want to have different source Images for that setting } return $atts; }, 10, 2);
it is the green button under “Philosophie und Anspruch” – just a little styled to look like a button.
if you look to that via developer tools – you can switch positions by drag&drop – so that the toggle_wrap is before the toggler.
Doing that – the function is working and that is something that looks nice to me too.But : changing position inside toggles.php will not work that way:
$output = ''; $output .= "<section class='{$section_class}' {$markup_tab}>"; $output .= '<div role="tablist" class="single_toggle" ' . $this->create_tag_string( $toggle_atts['tags'], $toggle_atts ) . ' >'; $output .= "<div id='{$toggle_atts['custom_id']}' class='toggle_wrap {$item_contentClass} {$contentClass}' {$toggle_init_open_style} {$markup_answer}>"; $output .= "<div class='toggle_content invers-color {$item_inherit}' {$markup_text}>"; $output .= ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $content ) ); $output .= '</div>'; $output .= '</div>'; $output .= "<{$this->heading_tag} data-fake-id='#{$toggle_atts['custom_id']}' class='toggler {$item_titleClass} {$titleClass} {$item_inherit}' {$markup_title} role='tab' tabindex='0' aria-controls='{$toggle_atts['custom_id']}'>"; $output .= $toggle_atts['title']; $output .= '<span class="toggle_icon">'; $output .= '<span class="vert_icon"></span>'; $output .= '<span class="hor_icon"></span>'; $output .= '</span>'; $output .= "</{$this->heading_tag}>"; $output .= '</div>'; $output .= '</section>';
so there must be ( inside the js file ?) a selector that needs the DOM ( first toggler then toggle_wrap ) Structure ( like .next) but i only found one – and changing it to previous will not work.
Edit: oh sorry – i should have searched for the opposite of .next() in my memory it was previous – because previousSibling was still anchored in my memory bank.
jQuery is of course : .prev()
And now you can see what i mean on that page.It is a better effect with the toggler than realising it via ‘Fold to Container Height’ on text-block. With the toggler you have better control over what is shown and what is not – at any screen width.
by the way – the source site of evidenz.de is an Enfold site too. Maybe you can ask them what you should do to hamper that scrolling.
The script is small enough to not load from their site- download it – make some change to the script and compress it (f.e. on https://jscompress.com/) to have a minified version of it. enqueue that minified script from your own server.so it is not a second menu meant but a different one ?
ok – that is something different. But i think the script does not work as it should anyway.
because a modal window should actually be created – right?
” // PG: this version of the js-file handles the modal without the need of jQuery ”Then the scroll position of the modal window makes sense. And mike pointed out where the code is for doing that.
For me it looks like the modal should open on page load – and the top of that iframe inside the modal window is then on top.
But there is no modal window.can you please post the code of the code-block element here ( use the code tag from the options above please )
________
Was wird denn dort innerhalb des iframe angezeigt? woher speist sich der Inhalt? Meinst du nicht, das es auch mit Enfold mitteln gehen sollte? – ohne extra scripte?What is displayed within the iframe? Where does the content come from? Don’t you think that it should also work with Enfold means? – without extra scripts?
-
AuthorPosts