queue  41
support
Results 1 to 4 of 4

Thread: Shortcode for columns not working

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    14

    Shortcode for columns not working

    Trying to get 4 columns of text+picture using a Default Template. The short codes are not working.

    http://deepmap.xyz/testing-2/


    HTML Code:
    [cols]
    [col class="1/4"]
    
    James worked at Google, Apple and Baidu and built Map products that are actively used by billions of users. He also worked on high-performance infrastructure and large scale map architecture in several early stage startups. James has a PhD in Geometric Modeling & 3D Reconstruction.
    
    [/col]
    [col class="1/4"]
    
    Mark earned a PhD in computer vision from CMU and worked at Apple, Cyra Technologies, Leica Geosystems and Google where he has made pioneering contributions in Lidar, point cloud visualization and processing, computer vision, graphics and GIS.
    
    [/col]
    [col class="1/4"]
    
    Wei spent over nine years at Google, leading projects for Google Earth, Google Maps, and Google Research. She was the head of product at MZ on real time cloud and smart cities before joining DeepMap. She has a PhD from Berkeley, specializing in GIS and remote sensing. Her expertise includes large scale geo data processing, product management and business development.
    
    [/col]
    [col class="1/4 last"]
    
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
    
    [/col]
    [/cols]

  2. #2
    Lead Coder Fabio's Avatar
    Join Date
    Aug 2011
    Posts
    2,081
    Hello,

    if i try to access your link, i get a 404 (page not found) error.
    My cave is full of servers

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    14
    Quote Originally Posted by Fabio View Post
    Hello,

    if i try to access your link, i get a 404 (page not found) error.
    Sorry, the client had me delete that testing page. I've now restored it.

  4. #4
    Lead Coder Fabio's Avatar
    Join Date
    Aug 2011
    Posts
    2,081
    Hello,

    edit the file theme/php/PeTheme/PeThemeAkin.php and replace the pe_theme_shortcode_columns_mapping_filter with the following code

    Code:
    public function pe_theme_shortcode_columns_mapping_filter($array) {
                            return array(
                                    '1/1' => 'large-12 columns',
                                    "1/3" => "large-4 columns",
                                    "1/2" => "large-6 columns",
                                    "1/4" => "large-3 columns",
                                    "2/3" => "large-8 columns",
                                    "1/6" => "large-2 columns",
                                    "last" => '',
                            );
                    }
    My cave is full of servers