Forum Replies Created
-
AuthorPosts
-
Hi!
You can create us an admin account and post the login data as private reply – then we can add the embed code to a test page.
Regards,
PeterHi AdDesign!
Another user reported this issue: https://kriesi.at/support/topic/the-google-maps-api-server-rejected-your-request/ and it was a problem with the connection. Our theme definitely adds the query parameter – you can check the source code and at the very bottom you’ll find
<script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&ver=1'></script>
The sensor=false part tells google that the sensor parameter is set to false.
Regards,
PeterHey!
Yes, you can overwrite the default theme function though – i.e. insert following code into the functions.php file
if(!function_exists('avia_wpml_language_switch')) { function avia_wpml_language_switch() { global $sitepress; $languages = icl_get_languages('skip_missing=0&orderby=custom'); $output = ""; if(is_array($languages)) { $output .= "<ul class='avia_wpml_language_switch'>"; $last_index = count($languages) - 1; $counter = 0; foreach($languages as $key => $lang) { $separator = ($counter < $last_index) ? ' | ' : ''; $currentlang = (ICL_LANGUAGE_CODE == $lang['language_code']) ? 'avia_current_lang' : ''; if(is_home() || is_front_page()) $lang['url'] = $sitepress->language_url($lang['language_code']); $output .= "<li class='language_".$lang['language_code']." $currentlang'><a href='".$lang['url']."'>"; $output .= " <span class='language_code'>".strtoupper($lang['language_code'])."</span>"; $output .= "</a>$separator</li>"; $counter++; } $output .= "</ul>"; } echo $output; } }
to overwrite the default language switcher code. Then use this css code
.avia_wpml_language_switch li span.language_code{display: block !important;}
to show the language shortcode instead of the flag.
Best regards,
PeterHi!
Try following css code to resize the datepicker field
#top #wrapp_all .gform_body input.datepicker { width: 20%!important; }
and set another width value if necessary.
Best regards,
PeterHey!
1) Yes, you just need to tell wordpress the template name. At the very beginning of your page template replace
<?php
with
<?php /* Template Name: Archives with Content */
and instead of “Archives with Content” your a custom template name.
2) WordPress won’t execute shortcodes in php code automatically. However it comes with a do_shortcode() function which enables you to embed shortcodes into php/html code. In this case replace
<div class='map-fullwidth'>[wpgmza id="2"]</div>
with
<div class='map-fullwidth'> <?php do_shortcode('[wpgmza id="2"]'); ?> </div>
and the map should pop up.
Regards,
PeterHey!
Please try to remove the custom.css code and check if the icons start to work again. If yes, please post the css code and I’ll check it. If not please try to update the theme to the latest version (2.4.5) – maybe a theme file is corrupt.
Best regards,
PeterHey!
You can copy the footer.php template into your child theme folder. WordPress will first check if the template file exists in the child theme folder and if yes it will load it. Otherwise it will use the footer.php template from the parent theme. The child theme files are not affected by a theme update.
Regards,
PeterHey brianbu!
Afaik there’s no direct way to change them with wordpress but you can use a redirection plugin like: http://wordpress.org/plugins/redirection/ to redirect the user from the category archive page to any url/page of your choice.
Best regards,
PeterHi!
The overlay won’t work on images with a height of 100px or smaller images. The reason is that the icon would overlap the image and then it doesn’t look good. You have three options:
1) Resize the images and make sure that the image height is at least 101px.
2) Modify the overlay script and deactivate the height check – then the overlay might look distorted though. Open up enfold/js/avia.js and replace
if(current.outerHeight() > 100)
with
if(current.outerHeight() > 30)
3) Stick with the current design/layout.
Cheers!
PeterHi!
Please let us know if it doesn’t work.
Cheers!
PeterHi!
I didn’t test it but you can try to manipulate the query vars variable. Replace
$tempquery->query_vars = $search_parameters;
with
$tempquery->query_vars = $search_parameters; $tempquery->query_vars['post__not_in'] = array(20,34,50);
and instead of 20,34,50 insert the page id(s) you want to exclude.
Regards,
PeterHey!
This is not an incompatibilty issue but a problem of the envato theme update api. You can try two things:
1) Update the api file to the latest version – the code can be found here: https://github.com/envato/envato-wordpress-toolkit/blob/master/includes/class-envato-api.php – just delete the code in wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php and insert the updated code. I’m not sure if it will work though (I can’t test it).
2) Deactivate the update api – insert following code into the child or parent theme functions.php file – i.e. insert it at the very bottom of the file
add_theme_support('avia_manual_updates_only');
Cheers!
PeterJanuary 15, 2014 at 1:38 pm in reply to: Double links to my home page in the Enfold BreadCrumbs #210031Hi!
No, one (or maybe more) plugins cause the issue. If I deactivate all plugins the breadcrumb starts to work again.
Regards,
PeterHi!
Ok, I fixed it too. We’ll add all patches to the next update.
Cheers!
PeterJanuary 15, 2014 at 1:05 pm in reply to: Double links to my home page in the Enfold BreadCrumbs #210018Hi!
I updated the code a bit and it works now
if(!function_exists('avia_remove_home_breadcrumb')) { function avia_remove_home_breadcrumb($trail) { foreach($trail as $key => $data) { $search = 'amp; Nature Photography Workshops'; if(strpos($data, $search) !== false) { unset($trail[$key]); } } return $trail; } add_filter('avia_breadcrumbs_trail','avia_remove_home_breadcrumb', 15, 1); }
Cheers!
PeterHey!
I sent you a mail with the files – now you can install them.
Cheers!
PeterHi!
I just tried to upload the updated files with ftp but I get an error (“Permission denied”) – can you please check my ftp user permission?
Best regards,
PeterHey!
1) I’ll look into the author translation – I think it’s related to the theme code. I’ll post a solution asap.
2) The other things (meta description and title on the author page or 404 page) is imo not a theme issue. I switched to the TwentyThirteen theme and I can reproduce both issues here: http://www.ld4change.com/zh-hans/author/ and here: http://www.ld4change.com/zh-hans/author/raju/ ). The title and the description is also in English and no Enfold code affects these pages whatsoever.
Regards,
PeterHi!
Kannst du mir bitte einen ftp Account einrichten – ich habe gerade den Code in wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/font-manager.class.php analysiert, aber dabei einen php error verursacht. Da so etwas öfter vorkommen kann möchte ich lieber mittels ftp die Dateien modifizieren. Bis dahin, kannst du die Originaldatei hochladen, um den Fehler zu beheben.
Best regards,
PeterHey!
The problem is that a category will only show up in the filter bar if at least one entry of the category is displayed in the masonry grid (otherwise the filter would remove all items). I increased the number of entries and now all categories are represented in the masonry grid (and now all categories are shown in the filter list). If you don’t want to increase the number of items an alternative solution would be to install this plugin: http://wordpress.org/plugins/post-types-order/ – then you can apply a custom order to your posts and you can make sure that at least one entry of each category is displayed in the masonry grid even if the user does not click on the read more button.
Cheers!
PeterHi Johannes!
Please insert following css code into the quick css field to change the input field styling
#top .gform_body input[type="text"] { width: 100%; }
Regards,
PeterHey!
Great, glad Ismael could help you :)
Cheers!
PeterJanuary 15, 2014 at 9:30 am in reply to: Horizontal WPML Language switcher apend to the main menu #209936Hi!
Yes, insert following code into the functions.php file
add_action('init','avia_remove_default_lang_menu', 10); function avia_remove_default_lang_menu(){ remove_action( 'avia_meta_header', 'avia_wpml_language_switch' ); }
Cheers!
PeterHey!
1) Maybe I’m wrong but I think the author title/meta description is not translated because you didn’t set up a translation yet. Go to the user profile page: http://www.ld4change.com/wp-admin/user-edit.php?user_id=2&wp_http_referer=%2Fwp-admin%2Fusers.php%3Flang%3Dzh-hans%26admin_bar%3D1 and translate the English user profile (name, last name and nick name and the “Biographical Info”) to Chinese. You can switch between the Chinese and English version by using the language switcher dropdown in the admin bar.
2) I checked the 404 page and everything is translated except the number 404 ( 404错误:找不到页面 and 404 找不到页面 ). Then I checked to the localization settings screen (Tools > Localization > Themes > Enfold, select Chinese “edit” and use the right text box to search for “404” text strings) and there I found exactly the same strings. If you want to change them edit these text strings and click the “generate mo-file” button.
Cheers!
PeterHey!
You can easily remove it – open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and replace
if($thumbnail) { $thumb_fallback = $thumbnail; $thumb_class = "real-thumbnail"; } else { $thumbnail = "<span class=' fallback-post-type-icon' ".av_icon_string($format)."></span><span class='slider-fallback-image'>{{thumbnail}}</span>"; $thumb_class = "fake-thumbnail"; }
with
if($thumbnail) { $thumb_fallback = $thumbnail; $thumb_class = "real-thumbnail"; } else { $thumbnail = false; $thumb_class = false; }
Cheers!
PeterHey!
Please create us an admin account and post it as private reply. We’ll look into it.
Cheers!
PeterHi!
Normally Enfold will display the WPML flags in the top navigation menu. If you want to add the flags to the main menu add following code to the functions.php file (insert it at the very bottom of the file)
if(!function_exists('avia_append_lang_flags')) { //first append search item to main menu add_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 10, 2 ); function avia_append_lang_flags( $items, $args ) { if ((is_object($args) && $args->theme_location == 'avia')) { global $avia_config; global $sitepress; $languages = icl_get_languages('skip_missing=0&orderby=custom'); if(is_array($languages)) { foreach($languages as $lang) { $currentlang = (ICL_LANGUAGE_CODE == $lang['language_code']) ? 'avia_current_lang' : ''; if(is_home() || is_front_page()) $lang['url'] = $sitepress->language_url($lang['language_code']); $items .= "<li class='language_".$lang['language_code']." $currentlang'><a href='".$lang['url']."'>"; $items .= " <span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>"; $items .= "</a></li>"; } } } return $items; } }
Best regards,
PeterJanuary 15, 2014 at 8:43 am in reply to: Horizontal WPML Language switcher apend to the main menu #209913Hey!
I added the flags to the main menu. I had to insert following code at the bottom of functions.php
if(!function_exists('avia_append_lang_flags')) { //first append search item to main menu add_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 10, 2 ); function avia_append_lang_flags( $items, $args ) { if ((is_object($args) && $args->theme_location == 'avia')) { global $avia_config; global $sitepress; $languages = icl_get_languages('skip_missing=0&orderby=custom'); if(is_array($languages)) { foreach($languages as $lang) { $currentlang = (ICL_LANGUAGE_CODE == $lang['language_code']) ? 'avia_current_lang' : ''; if(is_home() || is_front_page()) $lang['url'] = $sitepress->language_url($lang['language_code']); $items .= "<li class='language_".$lang['language_code']." $currentlang'><a href='".$lang['url']."'>"; $items .= " <span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>"; $items .= "</a></li>"; } } } return $items; } }
Cheers!
PeterJanuary 15, 2014 at 8:28 am in reply to: Read More Tag ignored in Enfold Portfolio Preview Text #209908Hi!
The portfolio preview box will always show the entire preview content and you can’t create an excerpt of the preview text. However if you want to add read more button after the preview text open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and replace
$output .= $content;
with
$output .= $content; $output .= '<a href="'.get_permalink($id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a>';
Cheers!
Peter -
AuthorPosts