-
AuthorPosts
-
February 16, 2016 at 7:11 pm #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, 9 months ago by niguli.
February 16, 2016 at 9:44 pm #584367Hey Nicola!
Please edit wp-content/themes/enfold/config-template/builder/avia-shortcodes/portfolio.php, find this code
$output .= ““.__(‘All’,’avia_framework’ ).”“;
Cheers!
BasilisFebruary 17, 2016 at 8:27 am #584518thank you Basilis, that’s perfect.
- This reply was modified 8 years, 9 months ago by niguli.
February 18, 2016 at 6:33 am #585180March 1, 2016 at 5:23 pm #591692Hi 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);
March 1, 2016 at 5:33 pm #591708Hey!
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,
YigitMarch 1, 2016 at 5:37 pm #591715Perfect Yigit, thanks.
I think I will loose your modification when upgrading Enfold to future version, isn’t it?March 2, 2016 at 8:02 am #591935Hi,
Not if you place it in a child theme: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
Thanks,
RikardMarch 2, 2016 at 8:45 am #591951thanks 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.phpMarch 2, 2016 at 9:02 am #591955here 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, 8 months ago by niguli.
March 2, 2016 at 4:13 pm #592145Hey!
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!
YigitMarch 2, 2016 at 4:34 pm #592171ok 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, 8 months ago by niguli. Reason: I need Help for translating All Properties in wpml
March 2, 2016 at 4:45 pm #592181 -
AuthorPosts
- The topic ‘Change "All" label in Portfolio grid’ is closed to new replies.