Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

More rows on "Recent Portfolio" element

portifolio rows
    • 9 years, 11 months ago criscmaia
      Participant

      Expired

      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

    • 9 years, 11 months ago Mirela
      Participant

      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 9 years, 11 months ago by Mirela.
    • 9 years, 11 months ago criscmaia
      Participant

      Expired

      Perfect! Thank you!

Viewing 2 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password