-
-
On the “Recent Portfolio” item, there is a limit of five rows for the “Portfolio rows” field. How do I change it to 6 or any other number?
Thank you
-
Hello,
Please go to file: includes\core\codeless_elements.php and find these lines:
array ( 'heading' => 'Portfolio Rows', 'admin_label' => true, 'param_name' => 'rows', 'type' => 'dropdown', 'value' => array ( 'One Row' => '1', 'Two Rows' => '2', 'Three Rows' => '3', 'Four Rows' => '4', 'Five Rows' => '5', ), ),
add here as much rows as you want. Example:
'Four Rows' => '4', 'Five Rows' => '5', 'Six Rows' => '6', 'Seven Rows' => '7',
Save file! Now go to file vc_templates\recent_portfolio.php and find these lines:
$grid = 'three-cols'; switch($columns){ case '3': $grid = 'three-cols'; break; case '2': $grid = 'two-cols'; break; case '4': $grid = 'four-cols'; break; case '5': $grid = 'five-cols'; break; }
Add here the new rows. Example:
` case '5': $grid = 'five-cols'; break; case '6': $grid = 'six-cols'; break; }`
Save! In page, recreate a recent portfolio element.
Best regards!
- This reply was modified 8 years, 10 months ago by Mirela.
-
-
Viewing 2 reply threads
You must be logged in to reply to this topic.