Forum Replies Created

Viewing 30 posts - 1 through 30 (of 121 total)
  • Author
    Posts
  • in reply to: Shortcode in Shop Description #1472238

    Nice! Thanks a lot. You may close this.

    All the best,
    Daniel

    in reply to: Shortcode in Shop Description #1472233

    Hi Yigit, thank you for the workaround! How is the roadmap for integrating the filter for this? Will anyone post here once it is shipped or will I find it in the changelog? And: Can I make your suggested change in a child theme?

    in reply to: Shortcode in Shop Description #1472110

    Hi Mike, thank you for the short response. I still need to enable shortcodes in the shop description. Any idea on when you will have a solution for me?

    in reply to: Deactivate duplicate post link for all post types #1434864

    That makes sense. Thanks, Mike! You may close this.

    in reply to: Set masonry overlay color #1422000

    Ok. You may close this.

    in reply to: Set masonry overlay color #1421980

    Hey Mike, the second version is the one I already used. I wrote: “I could load it again, if I would want to. No problem.” But thanks anyway.

    My question is: Do I have to use this filter and make changes to the excerpt? Is there a filter to alter the Masonry overlay directly? Without my detour? Couldn’t find any more filters to check or try. Any ideas?

    in reply to: Set masonry overlay color #1421920

    Hi Mike,

    I altered a filter Ismael once gave me:

    add_filter('avf_masonry_entry_content', function($content, $entry, $config) {
        $color = get_post_meta( $entry['ID'], 'ACF-COLOR', true);
    	$content = '<div class"acf-color" style="background-color:' . $color . ';"></div>';
    	return $content;
    }, 10, 3);

    And added some CSS:

    #top .av-caption-style-overlay .av-masonry-item-with-image .av-inner-masonry-content {
    	background: transparent;
    }
    
    #top .av-caption-style-overlay .acf-color {
    	position: absolute;
    	height: 100%;
    	width: 100%;
    	top: 0;
    	left: 0;
    	margin: 0;
    	z-index: -1;
    	opacity: 0.7;
    }

    Now I have the color as overlay. Works as intended. I am missing the excerpt, because the filter overwrites it. But I could load it again, if I would want to. No problem. So I think that is proof of concept. Ok?

    My question is: Do I have to use this filter and make changes to the excerpt? Is there a filter to alter the Masonry overlay directly? Without my detour? Couldn’t find any more filters to check or try. Any ideas?

    in reply to: Set masonry overlay color #1421870

    Hi Mike, the described functionality with the sorting function via a field registered with ACF is definitely possible. I use this on several websites, I got the code for it from Ismael. So as I said, I assume that I could basically get to ACF content to use it in Masonry. Or is that only possible with the blog post element?

    I know how your mentioned solution is implementable with CSS and the categories. But it would not be the optimal solution for me, because it is just too rigid. Changes can then only be made in the CSS code …

    Is there no other idea to get to a stored color info than with hard coded CSS?

    in reply to: Set masonry overlay color #1421774

    Hi Mike, could I get the color from the category? In the HTML code of a Masonry I can see all categories attached as css-classes? I can set colors for the categories (as enfold does with products for example). Can I load them into the masonry?

    And: It is possible to register an field genereted with ACF to use it in the Masonry sorting options (Ismael once provided a code for me). So it is somehow possible to load ACF data from a post. Why not the color?

    in reply to: Set masonry overlay color #1421600

    Hey Nikko, I know how to set the color with CSS. But what I want to achieve is that the color for the overlay is loaded from the respective post. Here is an example:

    Post 1: ACF color picker: #000
    Post 2: ACF-Color-Picker: #fff
    Post 3: ACF color picker: #efefef

    All posts are loaded and displayed in a masonry. Now the overlay of post 1 should have the color #000, the overlay of post 2 the color #fff and so on.

    I use the Masonry element with the title as overlay setting. How do I get the color to use it automatically for the overlay?

    in reply to: Submenu as shortcode breaks layout #1405790

    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,
    Daniel

    in reply to: Custom Query for blog or archives #1405788

    Hey 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 of is_search – correct? The rest of the code is the same? Could I write something like if( $query->is_tax('test') and later on define which post type is the only one to query in this archive?

    Best regards,
    Daniel

    in reply to: Custom Query for blog or archives #1405601

    Any 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.

    in reply to: Submenu as shortcode breaks layout #1405599

    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

    in reply to: Sortable Masonry Gallery #1402913

    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, Daniel

    in reply to: Sortable Masonry Gallery #1401387

    Hi 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

    in reply to: Bug in Masonry Element with Enfold 5.4 ? #1397294

    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.

    in reply to: Bug in Masonry Element with Enfold 5.4 ? #1397275

    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!

    I am using the code Guenni007 provided. Thanks again! You may close this.

    All the best, Daniel

    Nice, that does the trick! Why do you just remove it temporarily?

    Thanks 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.

    Hey 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 1 year, 11 months ago by spooniverse.
    in reply to: Problem with WooCommerce Image Sizes #1370125

    Sorry. Can see it on all devices. Added a new link (works for 3 days). Thanks for taking a look!

    in reply to: Problem with WooCommerce Image Sizes #1369948

    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

    in reply to: Link to Masonry Terms? #1361822

    You may close this. Thanks!

    in reply to: Link to Masonry Terms? #1361816

    Exactly what I needed. Thanks a lot!
    Best regards, Daniel

    in reply to: Link to Masonry Terms? #1361435

    Hey 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?

    in reply to: Link to Masonry Terms? #1361311

    So the $_GET would need to pull the request from the URL – or am I wrong?

    in reply to: Link to Masonry Terms? #1361310

    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?

    in reply to: Enfold's Product Grid filtered by WooCommerce attributes #1360550

    Hey, 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

Viewing 30 posts - 1 through 30 (of 121 total)