Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #584336

    Probably already asked, but i cannot find it now in previous discussions.

    I need to change the Label “All” in “All properties”in a Portfolio Grid. Probably I need to code the functions.php, but i’m not sure. can you help me?

    • This topic was modified 8 years, 10 months ago by niguli.
    #584367

    Hey Nicola!

    Please edit wp-content/themes/enfold/config-template/builder/avia-shortcodes/portfolio.php, find this code

    $output .= ““.__(‘All’,’avia_framework’ ).”“;

    Cheers!
    Basilis

    #584518

    thank you Basilis, that’s perfect.

    • This reply was modified 8 years, 10 months ago by niguli.
    #585180

    Hi,

    Glad we could help :-)

    Thanks,
    Rikard

    #591692

    Hi all.
    Suddenly this change does not work anymore!!! Can you help more?!?!

    My code in portfolio.php is still this:
    $first_item_name = apply_filters('avf_portfolio_sort_first_label', __('All Properties','avia_framework' ), $params);

    #591708

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_portfolio_sort_first_label','new_first_label');
    function new_first_label() {
    $first_item_name = "All Properties";
    return $first_item_name;
    }

    Regards,
    Yigit

    #591715

    Perfect Yigit, thanks.
    I think I will loose your modification when upgrading Enfold to future version, isn’t it?

    #591935

    Hi,

    Not if you place it in a child theme: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/

    Thanks,
    Rikard

    #591951

    thanks I know Rikard. I always use child themes. My question is:
    should I put in my child theme’s folder only functions.php or also the folder/subfolders/files from Basilis’s first reply:
    wp-content/themes/enfold/config-template/builder/avia-shortcodes/portfolio.php

    #591955

    here is my child theme’s folder.

    If I leave this way I have blank page in the frontend :(

    Here is my child functions.php content:

    <?php
    
    /*
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
    function enqueue_parent_theme_style() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    */
    
    /*
     * aggiungo funzione per trasformare All in All Properties
     */
    add_filter('avf_portfolio_sort_first_label','new_first_label');
    function new_first_label() {
    $first_item_name = "All Properties";
    return $first_item_name;
    }
    

    here is my child style.css:

    /*
    Theme Name:     Wedding Planners in Tuscany
    Theme URI:      http://www.alohamoku.it
    Description:    Tema Child di Enfold per Wedding Planners in Tuscany
    Author:         Nicola Strumia
    Template:       enfold
    Version:        0.1
    */
    
    @import url("../enfold/style.css");
    • This reply was modified 8 years, 9 months ago by niguli.
    #592145

    Hey!

    Please remove “full-functions.php” file and config-templatebuilder folder. You can simply add the code i posted to your functions.php file of your child theme and that would be enough. Make sure to remove the code from functions.php file of your parent theme.

    Cheers!
    Yigit

    #592171

    ok I removed (anyway they were unaccessible for wp, because they were named “-full-functions.php, -config-templatebuilder).
    I think the error was in my child functions.php.
    Now all works.

    Thanks!

    • This reply was modified 8 years, 9 months ago by niguli. Reason: I need Help for translating All Properties in wpml
    #592181

    Hi!

    Great! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Change "All" label in Portfolio grid’ is closed to new replies.