Support » Theme: Miniva » RSS feed broken if grid layout

  • Resolved mspotilas

    (@mspotilas)


    Hi,

    if you use grid layout, extra tags (grid container div) are inserted in the rss feed and it won’t work (on all readers).

    You can fix this in inc/posts.php. In functions “miniva_loop_start” and “miniva_loop_end” you should check if the query is for feed and if it is, then return. Like this:

    function miniva_loop_start( $query ) {
    if ( ! $query->is_main_query() ) {
    return;
    }
    if ( $query->is_feed() ) {
    return;
    }

    and

    function miniva_loop_end( $query ) {
    if ( ! $query->is_main_query() ) {
    return;
    }
    if ( $query->is_feed() ) {
    return;
    }

    Full code for the functions can be found here: https://pastebin.com/WKkd3Z32

    Hope you will fix this on next update.

Viewing 1 replies (of 1 total)
  • Theme Author Tajam

    (@tajam)

    Hi, thanks for your bug report and the fix. We will include this in the theme update soon.

Viewing 1 replies (of 1 total)
  • The topic ‘RSS feed broken if grid layout’ is closed to new replies.