Forum Replies Created

Viewing 30 posts - 1 through 30 (of 30,376 total)
  • Author
    Posts
  • in reply to: WooCommerce DE Erweiterung für Kriesi Themes #1018334

    Hi!

    Hab Dir ein Mail gesendet :)

    Cheers!
    Peter

    in reply to: Latest Enfold breaks Beaver Builder. #1017991

    Hey!

    Awesome thank you. I sent you a mail :)

    Cheers!
    Peter

    in reply to: Latest Enfold breaks Beaver Builder. #1017986

    Hey!

    Having the filter means we can set it false when the Beaver Builder is open, when will a new version of that filter be released?

    Yes! The next theme update will introduce the avf_enqueue_wp_mediaelement filter and you can use it to enqueue (or deactivate) the script manually. I’ll also ask the framework developer to add an option to the admin panel.

    Further testing revealed that the condition was always TRUE for the following code, does not matter what is enabled in the admin area, thats why I had to overide the enqueue function.

    Normally the condition should only return true if the “Disable self hosted video and audio features” theme setting is not activated/checked (Enfold > Theme Options > Performance) or the av_video_assets_required function (defined in enfold\includes\helper-assets.php) doesn’t find a media shortcode in the post/page content. I’ll debug the code and check all possible cases.

    Regards,
    Peter

    in reply to: Latest Enfold breaks Beaver Builder. #1017978

    Hey Simon,

    The media script is deactivated by default since Enfold 4.4.x (to increase the loading performance). The user can add this code to the child theme functions.php:

    
    add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2);
    function avia_always_load_mediaelement($condition, $options)
    {
    	$condition = true;
    	return $condition;
    }
    

    to load the media script by default (also see: https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -style-wp-mediaelement/ ).

    At the moment the user also needs to modify the functions.php of the parent theme – the customization won’t be necessary with the next theme update (will be released next week; also see: https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -after-latest-update/#post-993991 ). The user needs to replace this code in enfold/functions.php

    
    $condition  = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required();
    

    with

    
    $condition  = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required();
    $condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options );
    

    Best regards,
    Peter

    Hi,

    Personally I fully agree with Guenni – Pagespeed is just a tool which gives you hints but chasing a certain grade is a waste of time (see https://wp-rocket.me/blog/ (Purchase code hidden if logged out) -insights/ ). That said you can try to remove the wordpress emoji script (Enfold > Performance settings) because it’s loaded in the head section and considered as “above-the-fold content”. The jquery script is also not loaded in the footer section but the reason could be one or more plugins require it in the head area. One script ( https://yourwebsite.com/js/index.js ) is included in the website source code but doesn’t even exist (gives me a 404 error). You can remove the reference to this script.

    The other “errors” can’t be fixed easily. You would need to “extract” the critical css code from the stylesheets and include it as inline styles. You can use a service like https://criticalcss.com/ for this task.

    Best regards,
    Peter

    in reply to: Please contribute and translate Enfold #1016730

    Hi,

    I generated a .po file with the “Loco translate” plugin which should also work with Poedit. You can download the po file here: https://ufile.io/8oux8

    It’s not possible to identify/separate the backend from the frontend expressions because all expressions are assigned to the “avia_framework” textdomain at the moment.

    Best regards,
    Peter

    in reply to: Google Maps #1016628

    Hey Andreas Waibel,

    I get the error

    You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing# (Purchase code hidden if logged out)

    in the console. The error indicates a self-imposed daily limit has been exceeded or no billing account is set up. Please go to this page: https://console.developers.google.com/google/maps-apis/apis/maps-backend.googleapis.com/quotas and this page: https://console.developers.google.com/google/maps-apis/apis/geocoding-backend.googleapis.com/quotas and check your quotas. The contingent per day must be set to a reasonable value (i.e. 500).

    Best regards,
    Peter

    in reply to: Social Icons #1016626

    Hey Daniele1989,

    Go to Enfold > Theme Options > Social Profiles and add a skype social icon to your icons. Then click into the social icon url field and insert:

    
    skype:+1234567890?call
    

    The optional flag is call – to force Skype to call. Also you can use this method that is more universal:

    
    callto://+1234567890
    

    or:

    
    tel://+1234567890
    

    You need to replace 1234567890 with your phone number. You can also link to a skype username with

    
    skype:username?call
    

    and replace username with the skype username.

    Best regards,
    Peter

    in reply to: SEO #1016620

    Hey Eefke,

    I’d recommend to use Yoast seo: https://wordpress.org/plugins/wordpress-seo/ – we support it and we are also in contact with the plugin developers (i.e. to fix known bugs, etc.)

    Best regards,
    Peter

    in reply to: help required to add vcf to website #1016619

    Hey bauchope,

    I added the code (see below) to your functions.php (at the very bottom, a link to the file can be found in the private content field below)

    
    add_filter('upload_mimes', 'avia_add_vcf_mime');
    function avia_add_vcf_mime( $kb_all_mimes=array() ) 
    {
      $kb_all_mimes['vcf'] = 'text/x-vcard';
      return $kb_all_mimes;
    }
    
    

    Best regards,
    Peter

    in reply to: Removed debug info in theme’s functions.php #1016618

    Hey!

    Please try this code instead:

    
    
    add_action('init','avia_remove_debug');
    function avia_remove_debug(){
    remove_action('wp_head','avia_debugging_info',9999999);
    remove_action('admin_print_scripts','avia_debugging_info',9999999);
    }
    

    Cheers!
    Peter

    in reply to: wp_enqueue_media() does not work #1016616

    Hey Mortenrv!

    The Media script is deactivated by default since Enfold 4.4.x (to increase the loading performance). You can add this code to your child theme functions.php:

    
    add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2);
    function avia_always_load_mediaelement($condition, $options)
    {
    	$condition = true;
    	return $condition;
    }
    

    to load the Media script by default on your website (also see: https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -style-wp-mediaelement/ ).

    You also need to modify the functions.php file of the parent theme – this customization won’t be necessary with the next theme update (see: https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -after-latest-update/#post-993991 ). Open up the parent theme functions.php (enfold/functions.php) and replace

    
    $condition  = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required();
    

    with

    
    $condition  = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required();
    $condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options );
    

    Cheers!
    Peter

    in reply to: Center the content of the socket footer #1016578

    Hey sitadi,

    Please add this code to the quick css field

    
    #top #wrap_all #socket .container {
        text-align: center;
    }
    
    #top #wrap_all #socket .copyright {
        float: none;
        clear: both;
        text-align: center;
    }
    

    Best regards,
    Peter

    Hi,

    I added this code to the quick css field to change the header color on mobile devices:

    
    @media only screen and (max-width:768px) {
    #top .av_header_glassy.av_header_transparency #header_main {
    	background-color: #fff;
    }
    
    #top #wrap_all #header_meta a, #top #wrap_all  #header_meta li, #top #wrap_all  #header_meta .phone-info {
        color: #ffffff;
    }
    }
    

    Best regards,
    Peter

    in reply to: How to remove the link of Featured Image in the post page? #1016570

    Hey Tommy,

    Please add this code to the quick css field to make the featured image not clickable:

    
    .single .big-preview.single-big{
    pointer-events: none;
    }
    

    Best regards,
    Peter

    in reply to: Breadcrumbs according to session #1016552

    Hi,

    You need to add it when the post type is registered (see https://codex.wordpress.org/Function_Reference/register_post_type – “supports” parameter). If you want to add custom fields support to portfolio items you can add this code to your child theme functions.php:

    
    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod');
    function avf_portfolio_cpt_args_mod($args) {
    	$args['supports'][] = 'custom-fields';
    	return $args;
    }
    
    

    Best regards,
    Peter

    in reply to: Error with Lightbox using Next Gen Gallery #1016550

    Hi,

    Please add the code to functions.php (at the very bottom) and not functions-enfold.php. I’d recommend to use a child theme ( http://kriesi.at/documentation/enfold/using-a-child-theme/ ) and to add the code to the child theme functions.php.

    Best regards,
    Peter

    Hey Thomas,

    To customize/trasnslate the error messages add the below code in your functions.php by going to appearance > Editor > functions.php and replace the sentences after the equal signs ( = ) with your custom text. Make sure to add quotes before and after your text (like in the sample code below).

    Please use a child theme so your changes remain intact when you update the main theme ( http://kriesi.at/documentation/enfold/using-a-child-theme/ ).

    
    add_filter('avf_mailchimp_messages', 'avf_mailchimp_messages_mod', 10, 1);
    function avf_mailchimp_messages_mod($message) {
        $message['email'] = 'Please provide a valid email address.';
        $message['all'] = 'Please fill in all required fields.';
        $message['already'] 'This email address is already subscribed, thank you!';
        $message['general'] = 'We are very sorry but something went wrong. Please try again later.';
        $message['invalid_field'] = 'Please make sure that your fields are filled in correctly';
    
        return $message;
    }
    

    Best regards,
    Peter

    in reply to: Contact form not sending e-mail with automatic text. #1016538

    Hi studioinktvis!

    Please try to install this plugin: https://wordpress.org/plugins/easy-wp-smtp/ to send the e-mails via smtp instead of PHP. Some spam filters block e-mails if the default PHP wp_mail function is used.

    Best regards,
    Peter

    in reply to: Other thread marked as Read, but I still had follow up #1016528

    Hi,

    We’ll continue here: https://kriesi.at/support/topic/ (Purchase code hidden if logged out)(Purchase code hidden if logged out) -but-not-content/#post-1016451

    Best regards,
    Peter

    in reply to: YouTube Embed – Breaks Footer #1016508

    Hi,

    Great, glad it works now :)

    Best regards,
    Peter

    in reply to: Menu item – reload active page #1016503

    Hi!

    Great, glad I could help you :)

    Cheers!
    Peter

    in reply to: Menu item – reload active page #1016486

    Hi,

    Please try this code instead:

    
    function avia_custom_js_footer_code(){
      ?>
    <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery(".avia-menu li:not(.menu-item-avia-special) a").click(function(){
                location.reload(true);
            });
        });
    </script>
     <?php
      }
      add_action('wp_footer', 'avia_custom_js_footer_code');
    

    Best regards,
    Peter

    in reply to: YouTube Embed – Breaks Footer #1016485

    Hi,

    Yes you can add it to the child theme too. However we’ll include the patched version of the codeblock.php with the next theme update, thus you don’t need to overwrite it again.

    Best regards,
    Peter

    in reply to: Featured image not centered in mobile #1016476

    Hi,

    Please try to add this code to the quick css field:

    
    @media only screen and (max-width:989px) {
    #top.single .big-preview.single-big {
        padding: 10px 0;
    }
    }
    

    Best regards,
    Peter

    in reply to: YouTube Embed – Breaks Footer #1016473

    Hey!

    Please open up enfold/config-templatebuilder/avia-shortcodes/codeblock.php (you can use the wordpress code editor – Appearance > Editor) and delete the entire code in the file. Then copy the code from here: https://pastebin.com/raw/6UgNAdLx into the file and save it. Afterwards please check if the new code fixed the footer issue or not.

    Cheers!
    Peter

    in reply to: Add anker to each Tab in a Tab Sektion #1016456

    Hi,
    Great, glad I could help you. I asked our developers to look into it and to include this feature with the next theme update.

    Best regards,
    Peter

    in reply to: og image doesn't show on front page #1016455

    Hi,

    Please try to add this code to the child theme functions.php to fix the issue:

    
    add_filter('wpseo_twitter_image', 'avia_set_yoast_og_image', 10, 1);
    add_filter('wpseo_opengraph_image', 'avia_set_yoast_og_image', 10, 1);
    function avia_set_yoast_og_image($url)
    {	
    	if(empty($url) && has_post_thumbnail())
    	{
    		return get_the_post_thumbnail_url();
    	}
    
    	return $url;
    }
    
    

    Another user reported this as a bug to Yoast (see https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -preview-image/#post-1007741 ) and hopefully they’ll fix it soon.

    Best regards,
    Peter

    Hi!

    I fixed the issue – I changed the code in the child theme functions.php to

    
    function change_blog_archive_style() {
    	global $avia_config;
        if( !empty($avia_config['conditionals']['is_builder']) )$avia_config['blog_content'] = "excerpt_read_more"; 
    }
    add_action('get_header', 'change_blog_archive_style');
    

    Cheers!
    Peter

    in reply to: Page Speed Issues #1016353

    Hi,

    I checked your website with the query monitor plugin and compared Enfold to the default TwentySeventeen theme – the difference was 0.5s when it came to the loading time. The major part of the loading time is caused by plugins and/or the slow processing of php code which is often a problem with shared hosting. In addition the website size is more than 3,7mb which equals the size of a mp3 audio file (see https://gtmetrix.com/reports/hikestgeorge.com/PVujietH ).

    I’d recommend to reduce the number of plugins (if possible) and to reduce the website size (smaller images, reduce the amount of images).

    Best regards,
    Peter

Viewing 30 posts - 1 through 30 (of 30,376 total)