This topic contains 6 replies, has 2 voices, and was last updated by  Anonymous 2 years, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #733

    n.worker
    Participant

    Hello support team,
    thanks for your great evisioncorporatePro theme. In the portfolio section I enabled the filter function. On the website the different category buttons show up. The first button says “All”. How can I change this text as I use the theme in a different language.

    Thanks and regards

    #736

    Anonymous

    Hello n.worker,

    To change the button text, first create a child theme.

    https://codex.wordpress.org/Child_Themes

    After you are done with child theme, inside the theme’s inc/sidebar-widget/portfolio.php line number between 417 to 425, you can find the code structure like this;

    echo '<li><a class="active" href="#" data-group="all">'.__( 'All', 'evisioncorporatepro' ).'</a></li>';

    Now, change ‘All’ to your new title. For example;

    echo '<li><a class="active" href="#" data-group="all">'.__( 'New Title', 'evisioncorporatepro' ).'</a></li>';

    Hope this helps!

    #741

    n.worker
    Participant

    Hello,
    thanks for your reply. I just wanted to test your changes so I didn’t create a child theme yet but used the original one under wordpress / wp-content / themes / evisioncorporatepro / inc / sidebar-widget / portfolio.php. In line 421 I changed “All” to “Alle”. Now the code in this block is:

    $portfolio_filter_grid = ”;
    if( 1 == $evisioncorporatepro_enable_filter ){
    $args_portfolio_cats = array(
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘hide_empty’ => true,
    ‘number’ => ”,
    ‘fields’ => ‘all’,
    ‘hierarchical’ => true,
    );
    $portfolio_cats = get_terms( ‘et-portfolio-cat’, $args_portfolio_cats );
    if ( ! empty( $portfolio_cats ) && ! is_wp_error( $portfolio_cats ) ){
    $portfolio_filter_grid = ‘et-portfolio-filter-grid’;
    echo ‘<ul class=”et-portfolio-filter”>’;
    echo ‘

  • ‘.__( ‘Alle’, ‘evisioncorporatepro’ ).’
  • ‘;
    foreach ( $portfolio_cats as $portfolio_cat ) {
    echo ‘

  • slug.$portfolio_cat->term_id.'”>’ . $portfolio_cat->name . ‘
  • ‘;
    }
    echo ‘‘;

    Unfortunately this doesn’t change the “All” to “Alle”.

    Do you have any further ideas?

    Thanks and regards

#742

n.worker
Participant

After submitting the post the code looks different in this post so I am sending a screenshot:
https://ocloud.global/index.php/s/ZkyqeYqXI1WyONv

The password is: all

#743

Anonymous

Hello N.worker,

We have checked in detail on your requirement and come up with this solution. You can change it from the widget-portfolio.php file under etdashboard. To find that file;

Go to wp-content\plugins\etdashboard\inc\portfolio\widget-portfolio.php on line number 422.

Hope this will work for you.

Regards!!!
eVision Themes
Support Team

#744

n.worker
Participant

Hello creativecaji,
yes! That’s it.
Thanks for you profound support and best regards.

#746

Anonymous

Hello N.worker,

We are happy to hear all went well and appreciate your comment. Thanks 🙂

Regards.
eVision Themes
Support Team

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.