Support » Theme: OceanWP » One column Blog Entries

  • Resolved corvex

    (@corvex)


    Hello!

    I need 1 column blog entry layout on my site. But Oceanwp allows only from 2 to 6 columns. It’s possible to display 1 column blog on mobile screens, but I need it on PC too. So is it possible to change or override this settings to enable 1 column layout?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Try adding the below code to the oceanwp child theme’s functions.php file and check it works or not –

    function owp_custom_grid_class($columns) {
        $columns = '1';
        return $columns;
    }
    add_filter('ocean_blog_entry_columns', 'owp_custom_grid_class');

    Thanks man! That works for me! Exactly what I need.

    You’re welcome!

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