-
Search Results
-
Hello again,
I am rather a detail-oriented person and during the translation of whole page into Polish I have found something which doesn’t make me happy :)
The problem concerns Polish language (maybe some other Slavic languages as well) and our different plural forms of the noun.
In English it’s simple:
1 comment, review,
0 and 2-∞ comments, reviews.But Polish language does not coddle us too much, so we have different word endings depending on the number. I know that what I am asking for is rather strange, but as I said I am a detail-oriented person so … is there any chance to extend the PHP code allowing to use a better translation. In my opinion if we succeed it might be also something profitable for you in the future!
A colleague of mine has prepared a logical base of such change I do hope it will be somehow helpful, but the only problem is where to put it on :)
Here comes that code:
// Rules for first 19 numbers if ($comments_count <= 19) { if ($comments_count > 4 || $comments_count === 0) { // set of numbers 5 to 19 $comments_text = __('% comments', 'textdomain'); // in Polish komentarzy } elseif (in_array($comments_count, array(2, 3, 4))) { // set of numbers 2, 3, 4 $comments_text = __('% comments', 'textdomain'); // in Polish komentarze } else { // the rest, which is for 1 (for singular form) $comments_text = __('% comment', 'textdomain'); // in Polish komentarz } } else { // rules for numbers bigger than 20 $last_char = substr((string) $comments_count, -1, 1); // it gives last digit of string if (in_array((int) $last_char, array(0, 1, 5, 6, 7, 8, 9))) { // end digit 0, 1, 5, 6, 7, 8, 9 $comments_text = __('% comments', 'textdomain'); // in Polish komentarzy } elseif (in_array((int) $last_char, array(2, 3, 4))) { // end digit 2, 3, 4 $comments_text = __('% comments', 'textdomain'); // in Polish komentarze } }I know that further translation into Polish would require a lot of tries, but this I think I can easily manage myself.
Thank you for considering my request.
Best regards,
LeszekTopic: Enfold add_image_size
Hello,
I’ve read many posts on how to add image size to enfold in a child theme and i don’t succeed…
My goal is to use it in the Image Shortcode.This is what I add to my functions.php in the child theme :
function avia_change_image_size_array() { global $avia_config; $avia_config['imgSize']['my_size'] = array('width'=>700, 'height'=>700 , 'crop' => false); $avia_config['selectableImgSize'] = array( 'square' => __('Square','avia_framework'), 'featured' => __('Featured Thin','avia_framework'), 'featured_large' => __('Featured Large','avia_framework'), 'portfolio' => __('Portfolio','avia_framework'), 'gallery' => __('Gallery','avia_framework'), 'entry_with_sidebar' => __('Entry with Sidebar','avia_framework'), 'entry_without_sidebar' => __('Entry without Sidebar','avia_framework'), 'extra_large' => __('Fullscreen Sections/Sliders','avia_framework'), 'my_size' => __('Ma taille perso','avia_framework'), ); } add_action( 'init', 'avia_change_image_size_array', 0);But it seems that this hook is trigger after avia_backend_add_thumbnail_size(), even with a priority of 0.
Thanks for your help.
Hello!
I’m trying to un-mute my video background in my color section. I’ve seen other threads on this topic, and I have followed those steps, but no joy.
On the version of /themes/enfold/config-templatebuilder/avia-shortcodes/section.php I am editing, on line 715:
I have changed it to:‘video_mute’ => false,
That doesn’t seem to be working…not getting any sound. I must be doing something wrong, can you advise, thanks.
Hi Trying to add Enfold theme to Wampserver on my desktop computer without much luck.
Wampserver is latest version
Enfold is latest version
My machine is:
Windows 7 Ultimate SP1
AMD Atherlon 62 x2 dual core 3800+ 2.00 GHz
5 gig memory
64 bitI am an enthusiastic amateur so be gentle :) Any help gratefully received
If I try to upload through the add themes at wp-admin/theme-install.php?upload i get this:
Are you sure you want to do this?
Please try again.
If I copy into the folder wp-content/themes when I go to themes in my wp dashboard I get this:
( ! ) Warning: fopen(C:\wamp\www\seoss/wp-content/themes/enfold/style.css): failed to open stream: Permission denied in C:\wamp\www\seoss\wp-includes\functions.php on line 4183
Call Stack
# Time Memory Function Location
1 0.0029 385232 {main}( ) ..\themes.php:0
2 0.0059 452808 require_once( ‘C:\wamp\www\seoss\wp-admin\admin.php’ ) ..\themes.php:10
3 1.2178 27641368 do_action( ) ..\admin.php:318
4 1.2178 27642800 call_user_func_array:{C:\wamp\www\seoss\wp-includes\plugin.php:496} ( ) ..\plugin.php:496
5 1.2178 27643592 wp_update_themes( ) ..\plugin.php:496
6 1.2188 27644936 wp_get_themes( ) ..\update.php:345
7 1.2266 27654024 WP_Theme->__construct( ) ..\theme.php:69
8 1.2275 27654504 get_file_data( ) ..\class-wp-theme.php:235
9 1.2275 27654632 fopen ( ) ..\functions.php:4183( ! ) Warning: fread() expects parameter 1 to be resource, boolean given in C:\wamp\www\seoss\wp-includes\functions.php on line 4186
Call Stack
# Time Memory Function Location
1 0.0029 385232 {main}( ) ..\themes.php:0
2 0.0059 452808 require_once( ‘C:\wamp\www\seoss\wp-admin\admin.php’ ) ..\themes.php:10
3 1.2178 27641368 do_action( ) ..\admin.php:318
4 1.2178 27642800 call_user_func_array:{C:\wamp\www\seoss\wp-includes\plugin.php:496} ( ) ..\plugin.php:496
5 1.2178 27643592 wp_update_themes( ) ..\plugin.php:496
6 1.2188 27644936 wp_get_themes( ) ..\update.php:345
7 1.2266 27654024 WP_Theme->__construct( ) ..\theme.php:69
8 1.2275 27654504 get_file_data( ) ..\class-wp-theme.php:235
9 1.2510 27655520 fread ( ) ..\functions.php:4186( ! ) Warning: fclose() expects parameter 1 to be resource, boolean given in C:\wamp\www\seoss\wp-includes\functions.php on line 4189
Call Stack
# Time Memory Function Location
1 0.0029 385232 {main}( ) ..\themes.php:0
2 0.0059 452808 require_once( ‘C:\wamp\www\seoss\wp-admin\admin.php’ ) ..\themes.php:10
3 1.2178 27641368 do_action( ) ..\admin.php:318
4 1.2178 27642800 call_user_func_array:{C:\wamp\www\seoss\wp-includes\plugin.php:496} ( ) ..\plugin.php:496
5 1.2178 27643592 wp_update_themes( ) ..\plugin.php:496
6 1.2188 27644936 wp_get_themes( ) ..\update.php:345
7 1.2266 27654024 WP_Theme->__construct( ) ..\theme.php:69
8 1.2275 27654504 get_file_data( ) ..\class-wp-theme.php:235
9 1.2666 27655704 fclose ( ) ..\functions.php:4189( ! ) Warning: Cannot modify header information – headers already sent by (output started at C:\wamp\www\seoss\wp-includes\functions.php:4186) in C:\wamp\www\seoss\wp-includes\option.php on line 748
Call Stack
# Time Memory Function Location
1 0.0029 385232 {main}( ) ..\themes.php:0
2 1.4561 28097488 require_once( ‘C:\wamp\www\seoss\wp-admin\admin-header.php’ ) ..\themes.php:120
3 1.4570 28098872 wp_user_settings( ) ..\admin-header.php:46
4 1.4590 28099520 setcookie ( ) ..\option.php:748( ! ) Warning: Cannot modify header information – headers already sent by (output started at C:\wamp\www\seoss\wp-includes\functions.php:4186) in C:\wamp\www\seoss\wp-includes\option.php on line 749
Call Stack
# Time Memory Function Location
1 0.0029 385232 {main}( ) ..\themes.php:0
2 1.4561 28097488 require_once( ‘C:\wamp\www\seoss\wp-admin\admin-header.php’ ) ..\themes.php:120
3 1.4570 28098872 wp_user_settings( ) ..\admin-header.php:46
4 1.4658 28099576 setcookie ( ) ..\option.php:749Hi Team
Have gone through support and found the code to place into the Child functions.php for adding additional fonts. However, it has no effect?
My Code is
<?php add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; $fonts['Rock Salt'] = 'Rock Salt:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; $fonts['Rock Salt'] = 'Rock Salt:400'; return $fonts; }Any assistance would be appreciated!

