• Resolved motk88

    (@motk88)


    Is there any way, to do this? I want to reduce the displayed posts in mobile viewports. I am using the grid layout block in gutenberg.

    Thanks! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support pickpluginswporgrep

    (@pickpluginswporgrep)

    Hi @motk88,
    Thank you for using our plugin! We offer over 50 Gutenberg blocks. Could you please let me know which block you are currently using?
    Is it the ‘Post Grid’? To find the block name, simply click on ‘List View’ and look for the parent block name. Please check my screenshot for reference: https://imgur.com/CvYcJiu

    If I understood your question correctly, you would like to display a specific number of posts for different screen sizes, such as mobile, tablet, and desktop. Is that correct?

    I look forward to your response.

    Thread Starter motk88

    (@motk88)

    Yes, I am using ‘Post Grid’ and you understood my question correctly ??

    Plugin Support pickpluginswporgrep

    (@pickpluginswporgrep)

    Hi, unfortunately, responsive support for query parameters like the ‘posts per page’ option isn’t available. All you can do is customize the number of columns for different screen sizes.
    However, if you know how to code, you can override this functionality using the filter hook provided below.

    function pgb_post_query_prams_extra($query_args, $blockArgs){

    //$query_args[""] = "";

    return $query_args;

    }

    apply_filters("pgb_post_query_prams", "pgb_post_query_prams_extra");

    We appreciate your feature request, and of course, we plan to implement this if possible.

    Thread Starter motk88

    (@motk88)

    Ok, unfortunately I don’t know how to use this code correctly for this case.

    But I hope the feature will be implemented at some point.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.