-
-
Hello,
Thanks for the theme it’s so nicely designed.Can you advise how to translate the “view all” category in the portfolio section ?
I have checked the po files in languages > fr_FR.po and admin-fr_FR.po but could not find the string.
Thanks for your help
-
Hello,
You can add more string to the .PO/.MO files in case the one you want to translate is not present already. Use a .PO files editor, such as PoEditor program to edit them.
Or change the string directly in theme files (although we do not recommend it as it will prevent you from taking future theme updates).
You can find the “view all” in file portfolio.php.
Let us know.Best regards!
-
Thanks for your answer.
I had a look at porfolio.php and could find the “view all” line..
See below
Can you share exact line please ?
<?php /* Template Name: Portfolio Page */ global $cl_redata; global $cl_current_view; $cl_current_view = 'portfolio'; $id = codeless_get_post_id(); $replaced = redux_post_meta('cl_redata',(int) $id); if(!empty($replaced)) foreach($replaced as $key => $value){ $cl_redata[$key] = $value; } get_header(); get_template_part('includes/view/page_header'); ?> <section id="content" class="content_portfolio <?php echo esc_attr($cl_redata['portfolio_layout']) ?> layout-<?php echo esc_attr($cl_redata['layout']) ?>"> <?php if($cl_redata['portfolio_content'] == 'top'): ?> <?php get_template_part( 'includes/view/loop', 'page' ); ?> <?php endif; ?> <?php if($cl_redata['portfolio_layout'] == 'in_container'): ?> <div class="container"> <?php endif; ?> <div class="row-fluid filter-row"> <?php if(!empty($cl_redata['portfolio_categories'])): ?> <?php if($cl_redata['portfolio_layout'] == 'fullwidth'): ?> <div class="container"> <?php endif; ?> <!-- Portfolio Filter --> <nav id="portfolio-filter" class="span12"> <ul class=""> <li class="filter active all" data-filter="all"><?php _e('View All', 'codeless') ?> <?php foreach($cl_redata['portfolio_categories'] as $cat): ?> <?php $cat = get_term($cat, 'portfolio_entries'); ?> <?php if(is_object($cat)): ?> <li class="other filter" data-filter=".<?php echo esc_attr($cat->slug) ?>">slug) ?>"><?php echo esc_html($cat->name) ?> <?php endif; ?> <?php endforeach; ?> </nav> <?php if($cl_redata['portfolio_layout'] == 'fullwidth'): ?> </div> <?php endif; ?> <?php endif; ?> </div> <?php $grid = 'three-cols'; switch($cl_redata['portfolio_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; case '1': $grid = 'one-cols'; break; } ?> <div class="row-fluid"> <?php if($cl_redata['layout'] == 'sidebar_left') get_sidebar(); ?> <?php if($cl_redata['layout'] != 'fullwidth'): ?> <div class="span9"> <?php endif; ?> <section id="portfolio-preview-items" class="<?php echo esc_attr($grid) ?> <?php echo esc_attr($cl_redata['portfolio_space']) ?> " data-cols="<?php echo esc_attr($cl_redata['portfolio_columns']) ?>"> <?php if($cl_redata['portfolio_mode'] == 'grid') get_template_part('includes/view/portfolio/loop', 'grid'); else if($cl_redata['portfolio_mode'] == 'masonry') get_template_part('includes/view/portfolio/loop', 'masonry'); wp_reset_query(); ?> </section> <?php if($cl_redata['layout'] != 'fullwidth'): ?> </div> <?php endif; ?> <?php if($cl_redata['layout'] == 'sidebar_right') get_sidebar(); ?> </div> <?php if($cl_redata['portfolio_layout'] == 'in_container'): ?> </div> <?php endif; ?> <?php if($cl_redata['portfolio_content'] == 'bottom'): ?> <?php get_template_part( 'includes/view/loop', 'page' ); ?> <?php endif; ?> </section> <?php get_footer(); ?>
-
Hello,
You can find it easy by using the “CTRL+F” combination of your keyboard. However, this is the line:
<?php _e('View All', 'codeless') ?>
Find it above and edit to your wish.Best regards!
-
So bizzare, I did originally the Ctrl+F but it did not work.
All solved now thank you
-
You must be logged in to reply to this topic.