• While using Fotorama, I’ve noticed that hard-setting the columns to “0” (And it seems like the “columns=’1′ ” parameter in the shortcode is ignored) breaks gallery display in certain themes.

    iThemes builder themes uses the column count to determine whether they’re at the end of a line, and insert a
    . This is done by if ( is_numeric( $columns ) && ( 0 != ( $count % $columns ) ) ), which is running the mod command on 0, which always throws a php error.

    Could the columns variable be set to “1” by default without there causing problems?

    https://www.ads-software.com/plugins/fotorama/

  • The topic ‘Column count of 0 messes up gallery listing on some themes’ is closed to new replies.