rem_single_property_grid_attrs
This filter is responsible for all the settings related to the Gallery Grid, on the Single Property Page.
Arguments
- Grid Settings [Array]
Default settings that we’re using are defined below
- cells => 5
- align => true
Example
Now if you want to change the cell numbers and don’t want to cut off the images, use the below example code.
You have to paste the following code inside the functions.php file of your active theme
add_filter( 'rem_single_property_grid_attrs', 'rem_custom_single_listing_grid', 10, 1 ); function rem_custom_single_listing_grid($settings){ $settings['cells'] = 4; $settings['align'] = false; return $settings; }