Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #638655

    Hi,

    On this page (test mode) I use Masonry with blogs in standard post format, link post format and video format. I would like to make some customizations, but I didn’t find the solution in this forum yet. Hope you can help me.

    It would be really cool if:

    • the link format featured image and title on the masonry page can open the link in a new tab.
    • the link format excerpt could have more words. I tried to use the summary field, but then if you click on the post on the masonry page it actually opens the post and not the link anymore.
    • the video post format could have a featured video. I tried the featured video plus plugin, but it didn’t work in the masonry grid
    #639134

    Hi BuroStaal!

    Thank you for using Enfold.

    I’m sorry but the masonry element do not support post formats yet. Every items in the masonry container will be treated as a standard post. You can request the feature here: https://kriesi.at/support/enfold-feature-requests/

    Or try to contact our partner, codeable: http://kriesi.at/contact/customization

    Regards,
    Ismael

    #640167

    Hi Ismael,

    I use the masonry element and post formats are supported! If I use the post format ‘link’ the link opens directly in the same tab. So that’s step 1. But step 2 would be that the link opens in a new tab. And I would like to show more text in the post format link excerpt. Can you give me a hint were I can adapt that.

    I changed the video post format to standard postst, it’s not a big deal that featured video doesn’t work, but I really hope you can help me with the post format links.

    #640665

    Hi,

    I’m sorry but could you please provide a test page where we can see the masonry element with different post formats? Yes, you can see different icons but the masonry script do no filter the content base on post format unlike the blog posts element. This is possible but it will require modification that is outside the scope of support. Thank you for your understanding.

    Best regards,
    Ismael

    #641435

    Hi Ismael,

    No problem! See this page. It’s a masonry element with standard post format and link post format. The standard post format opens the post in the same tab, the link post format opens the link in the same tab. I would like to open the link post format in a new tab and create more space for the excerpt.

    #642368

    Hi,

    I think you misunderstood what I said. When I said that the post formats are not supported in the masonry element, I meant that the posts with different post formats will still display but they will be treated as standard posts unlike in the blog posts element where you can see the actual format of the posts. Anyway, if you only want to open the link format posts to open in a different tab, add this in the functions.php file:

    // add target _blank to link posts
    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script>
    (function($){
    	function g() {
    		$('.av-masonry-container .post_format-post-format-link').each(function() {
    			$(this).attr('target', '_blank');
    		});
    	}
    
    	g();
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #642519

    This was exactly what I needed and it works fine. Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Post format type link and video in Masonry’ is closed to new replies.