Forum Replies Created
-
AuthorPosts
-
Hey Mike,
I will give it a try – but the menu will be hard coded in the end, or am I wrong? Within the submenu shortcode I can specify a flexible menu based on WordPress settings. That would be a welcomed feature.
Any idea on why the shortcode isn’t working? Because for me it breaks the layout everywhere, not only on single posts or archives with a sidebar, as you asumed. A page with an added submenu only looks good if the submenu is created with the ALB.
All the best,
DanielHey Günter,
thank you for getting back to me and thanks for the code snippet.
So instead of
if( $query->is_search )
I would somehow check if it is a certain post type archive instead ofis_search
– correct? The rest of the code is the same? Could I write something likeif( $query->is_tax('test')
and later on define which post type is the only one to query in this archive?Best regards,
DanielAny advice on how to implement a filter for tag archives (see above)? I have a certain tag archive with posts from different post types and I would like to strip all posts from one of the post types from the archive.
Hey Mike,
I have done some additional testing. The problem has nothing to do with the archive template. Your code brings the submenu on the archive page – my change to the archive.php too, nothing wrong with that.
If the submenu is generated with a shortcode it comes to styling problems. On archives but on normal pages too. If I place the submenu element from within the ALB onto a page everything works finde. If I place the submenu as shortcode on a page (for example with a codeblock element) the CSS breaks and the HTML structure looks different if you compare both variants.
Any idea why? How can I use a submenu with a shortcode?
All the best, Daniel
Hey Mike, the line
gallery:{ enabled:true }
did the trick. The rest I sorted out with a$('…').remove();
and some styling. Works as intended. Thank you! All the best, DanielHi Ismael, thank you for your answer.
I was already thinking about building the gallery with the masonry element. Last year I built a masonry element which opens the posts in lightboxes (see here: https://kriesi.at/support/topic/lightbox-for-blog-post-element/). I had a helping hand from @Guenni007.
All this solution is missing is the navigation from one in a lightbox opened post to the next with some arrows < > as in a normal lightbox gallery. Any idea on how to achieve that?
All the best, Daniel
Hi Yigit, thanks for letting me know and for the quick fix. I will wait with my ongoing updates on further websites until the next version is rolled out. You may close this.
Hey Ismael,
I have flexible masonry and large gap enabled but there is no gap. Even if I choose the 1px gap. I found the code you mentioned in line 243:
.av-large-gap.av-flex-size .av-masonry-entry .av-inner-masonry { position:relative; margin-right:15px; margin-bottom:15px }
But the code on line 153 with the
#top
is stronger and therefore the gap is missing. On line 153 it says:#top .av-inner-masonry { overflow:hidden; background-color:transparent; margin:0 }
So shouldn’t the code on line 243 be like:
#top .av-large-gap.av-flex-size .av-masonry-entry .av-inner-masonry { position:relative; margin-right:15px; margin-bottom:15px }
Or the code on line 153 should be without the
#top
in the beginning.Or am I wrong?
Thanks for your fast response!
January 25, 2023 at 5:44 pm in reply to: Hide titles and descriptions when you hover on images or thumbnails in masonry #1395215I am using the code Guenni007 provided. Thanks again! You may close this.
All the best, Daniel
December 22, 2022 at 12:31 pm in reply to: Hide titles and descriptions when you hover on images or thumbnails in masonry #1377099Nice, that does the trick! Why do you just remove it temporarily?
December 22, 2022 at 10:14 am in reply to: Hide titles and descriptions when you hover on images or thumbnails in masonry #1377080Thanks Guenni, that is making it more tidy:
function remove_title_attr(){ ?> <script> jQuery(window).on('load', function(){ '#wrap_all img.avia_image, #wrap_all .avia-gallery-thumb img, #wrap_all .avia-gallery-thumb a, .av-masonry-image-container').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
But still the image title is displayed on hover. It is all about the original image title that is visible if you hover over an image. No actual titles are hidden. See the linked thread in my first post. Lightbox works as it should.
December 22, 2022 at 9:59 am in reply to: Hide titles and descriptions when you hover on images or thumbnails in masonry #1377077Hey Ismael, thanks for letting me know but I tried to add several iterations already:
.av-masonry-image-container .av-masonry-entry a .av-masonry-image-container img .av-masonry-entry a .av-masonry-image-container img
And more stuff like that. Nothing worked. Image title is still displayed on hover. Any other idea or solution?
-
This reply was modified 9 months, 2 weeks ago by
spooniverse.
Sorry. Can see it on all devices. Added a new link (works for 3 days). Thanks for taking a look!
Hi Ismael,
thank you for your code. It does the trick! Everything looks fine in the frontend now. Need to add it to my other shop pages.
In the backend however you can still see the different image sizes the products originally refer to (see image in private) while your filter loads the correct size for the frontend. Nothing to worry about, or am I wrong?
All the best, Daniel
You may close this. Thanks!
Exactly what I needed. Thanks a lot!
Best regards, DanielHey guys, I am really sorry but I can’t get it to work. I copied the code from Ismael, did not change any part of it, and tried to add the name of an masonry-active-term to the URL, nothing happened. I tried to put a masonry-active-term into the code, nothing happend. I tried a few other things, emtied the cache, reloaded the theme settings, nothing happend.
So my question is: Do I have to edit the code in any way?
And: How is the request needed to be written?
In my code I see a part where it says:
<a href="#" data-filter="example-term_sort" class="example-term_sort_button avia_show_sort"><span class="inner_sort_button"><span>Feste Gruppen</span><small class="avia-term-count"> 1 </small></span></a>
I added to the URL like: http://www.example.com/page/example-term or http://www.example.com/page/#example-term
Everything with no effect. What am I doing wrong?
So the
$_GET
would need to pull the request from the URL – or am I wrong?Thank you, Ismael, that sounds interesting! Can I make the script somehow dependent on the respective page call? From the used link?
Example:
http://www.example.com/page/masonry-active-term1
Triggers one of the terms, while:
http://www.example.com/page/masonry-active-term2
Triggers another one?
August 3, 2022 at 10:19 pm in reply to: Enfold's Product Grid filtered by WooCommerce attributes #1360550Hey, is there a code to extend the filter option of the product grid? Right now it is only possible to filter products by category/taxonomy not by attribute. Any chance to add this option through functions.php?
All the best, Daniel
July 28, 2022 at 11:02 am in reply to: Set a default hover effect on overview pages (WooCommerce) #1359665Hi Rikard, you may close this. Thanks!
July 28, 2022 at 8:44 am in reply to: Set a default hover effect on overview pages (WooCommerce) #1359641Hey Ismael, I appreciate your help. And the code works like charm – as always. So thanks a lot!
All the best,
DanielYou can see this effect on the page mentioned, actually it is already there (file attached). The menu items appear one after another, even if this is “invisible” due to your css.
If you for example start to position the elements by css this is executed later. Had this problem on other sites, but I don’t have an example because the desired look wasn’t achievable due to the gradual appearance of the menu items. So I always had to find other solutions or use the standard.
Thanks for the explanation, then that will be the effect that you can definitely notice in some projects with large menus.
But that is what I mean:
the structure created in the DOM, because the mobile menu structure is only created after the burger menu is clicked
The structure is created one menu item after another, not all at once.
If you observe this line while clicking on the menu icon, you will see the items appear one by one:
<div class="av-burger-overlay" style="display: block; opacity: 1;">
True, it “works” on the specific sample page, but not in general. With your code added the menu seems to be showing all its items directly, but if you look into the developer tools you see that they are still loaded one after another, only without a visible animation. If you have more complex menu layouts problems might occur due to positioning the items only after they are proberly rendered (seems to be defined by a time setting). Therefore I still think it is not sufficient to only alter the css to get rid of the partially building of the menu structure.
As kalimeromax stated in 2020 (see above): “Your code just disabled the fade effect, but it still loads the list items after each other.”
Think it would be necessary to alter a menu script anywhere – or am I wrong?
Want to chime in, the animation of the full overlay menu is indeed sometimes causing some trouble.
If the menu is used in full overlay the menu entries:
<li class="av-active-burger-items"><a>XXX</a></li>
are loaded one after another in an animation.On some pages that is looking quite nice, on others (with larger menus) it would be better to see the full menu at first glance, without the animation.
The animation comes from the code of the theme (no plugins or odd loading as mentioned above).
Any ideas on how to disable that? Just adding
transition:none
is not changing anything …Hey Ismael, my question is answered, you may close this. Cheers, Daniel
Since latest Enfold update all of Guenni007’s files are working fine. With standard child-theme shortcode loading as described in the documentation.
@Ismael: I am testing the files for some weeks, in my opinion everything is working fine without the!important
-
This reply was modified 9 months, 2 weeks ago by
-
AuthorPosts