Forum Replies Created

Viewing 30 posts - 631 through 660 (of 9,352 total)
  • Author
    Posts
  • in reply to: [WOOCOMMERCE] Breadcrumbs not working properly #1008315

    Hi,

    Glad I could help you :)

    Best regards,
    Peter

    in reply to: Loading time on a mobile device + AMP question #1008314

    Hi,

    I think the problem is you deactivated/removed the category base. You also need to install this plugin: https://ampforwp.com/amp-category-base-remove-support

    Best regards,
    Peter

    Hey ChristineGerman,

    Please install a plugin like role editor ( https://wordpress.org/plugins/user-role-editor/ ) and make sure following capabilities are checked for Editors:

    
    aiosp_manage_seo
    create_posts
    edit_others_pages
    edit_others_posts
    edit_pages
    edit_plugins
    edit_posts
    edit_private_pages
    edit_private_posts
    edit_published_pages
    edit_published_posts
    manage_categories
    manage_links
    publish_pages
    publish_posts
    read
    read_private_pages
    read_private_posts
    switch_themes
    unfiltered_html
    unfiltered_upload
    upload_files
    

    Best regards,
    Peter

    in reply to: Problems with social media icons #1008305

    Hi,

    If you notice that font files aren’t loading correctly, or receive the following error in the browser console then you need to modify your server configuration.

    This is because web fonts are subject to Cross-Origin Resource Sharing (CORS). CORS is a way for a remote host to control access to certain types of resources.

    To resolve this issue you need to ensure that your server is sending the correct Access-Control-Allow-Origin header when font files are requested. If you’re unable to modify your server configuration please contact your web host and link them to this post.

    Apache server
    Add the following block to your .htaccess file:

    
    <FilesMatch ".(eot|otf|ttf|woff|woff2)">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    

    Nginx server
    Add the following location block to your virtual host file (usually within the server directive) and reload Nginx:

    
    location ~* \.(eot|otf|ttf|woff|woff2)$ {
        add_header Access-Control-Allow-Origin *;
    }
    

    Best regards,
    Peter

    in reply to: Add code before body tag #1008304

    Hi,

    Yes exactly. You can add the code to function.php or you can modify the footer.php template.

    Best regards,
    Peter

    in reply to: Problem after moving to another webhoster. #1008303

    Hi,

    Please check if the folder structure changed on the new server/host. If yes please use this script: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ to replace all occurrences of your old directory structure with the new one. (i.e. if your old wordpress folder was /home/web/wordpress/ and now the wordpress folder is /user098786/web/html/wordpress/ you need to replace /home/web/wordpress/ with /user098786/web/html/wordpress/ ).

    Best regards,
    Peter

    Hi,

    To be honest it would be possible to adjust the content of the titles to be large or small based on the screen size but it would require quite a lot of work and testing. Basically you would need to write a custom javascript which calculates the ideal width for each tab title and which resizes the title of the tab if the ideal width changes (i.e. because the screen size changes). Writing and testing such a function is quite complex and beyond the scope of our support forum. Pleae hire a developer for this task.

    Best regards,
    Peter

    in reply to: Add code before body tag #1008296

    Hi,

    You can copy the footer.php to the child theme folder and then add the code to it or you can use the wp_footer hook to include custom code like:

    
    add_action('wp_footer', 'avia_custom_footer_code');
    function avia_custom_footer_code(){
    ?>
    <div data-gyg-partner-id="2065C5D" data-gyg-number-of-items="6" data-gyg-currency="EUR" data-gyg-locale-code="en-US" data-gyg-id="code-example" data-gyg-q="Paris" data-gyg-widget="activites" data-gyg-href="https://widget.getyourguide.com/2065C5D/activities.frame"></div>
    <?php
    }
    

    You can add this code to the child theme functions.php.

    Best regards,
    Peter

    in reply to: Eigenes Symbol für Symbolliste Envato #1008295

    Hi,

    Du könntest eine Symbolleiste mit nur einem Icon erstellen und dieser Symbolleiste eine eigene Klasse geben ( https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#turn-on-custom-css-class-field-for-all-alb-elements – zB habe ich es mit benutzerdefiniertes_symbol probiert – screenshot: https://screenshotscdn.firefoxusercontent.com/images/95686602-6470-4bda-a4f5-5f1a04cf6627.png ).

    Dann fügst Du diesen Code zum CSS Code hinzu (zB über das Quick CSS Feld:

    
    #top .benutzerdefiniertes_symbol .iconlist_icon{
    background-image: url(https://meinewebsite.com/image.jpg);
    }
    
    #top .benutzerdefiniertes_symbol .iconlist_icon [data-av_icon]::before{
    content: "";	
    }
    

    und ersetzt https://meinewebsite.com/image.jpg mit der URL zum Icon/Bild.

    LG,
    Peter

    Hi,

    Bei Dir ist es ein anderer Fehler, der nicht mit dem Theme, sondern mit der Serverkonfiguration zusammenhängt. Envato/Themeforest liefert die richtige Download-URL zum Theme, jedoch wirft dein Server dann folgende Fehlermeldung aus:

    
    cURL error 35: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    

    Warum er dies macht weiß ich leider nicht, aber einige Treffer bei Google indizieren, dass eine CURL Aktualisierung notwendig ist (zB hier: https://wordpress.org/support/topic/curl-error-35-error14077410ssl-routines/ und https://unix.stackexchange.com/questions/192944/how-to-fix-curl-sslv3-alert-handshake-failure ).

    Bitte wende Dich an den Server Administrator und frage nach, ob die Module aktualisiert werden können. Falls nicht, aktualisiere das Theme bitte per FTP: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#ftp-install

    LG,
    Peter

    Hi,

    You can use this code to overwrite the marker programmatically:

    
    add_filter('shortcode_atts_av_google_map', 'avf_shortcode_atts_av_google_map', 10, 4);
    function avf_shortcode_atts_av_google_map($out, $pairs, $atts, $shortcode) {
    	$out['content'][0]['attr']['marker'] = 2759;
    	return $out;
    }
    

    0 is the number of the first map. If you’ve i.e. two maps you could use this code to change the marker of the second map:

    
    $out['content'][1]['attr']['marker'] = 2759;
    

    2759 is the number of the attachment id. You need to replace it with the id of an attachment which is saved on your server.

    Best regards,
    Peter

    in reply to: Eigenes Symbol für Symbolliste Envato #1008246

    Hey Roland,

    Welche Symbolleiste meinst Du? Man könnte vielleicht ein Bild als Hintergrundbild setzen und so das Symbol einfügen. Hättest Du einen Link zur Symbolleiste?

    LG,
    Peter

    in reply to: License #1008244

    Hey Harald Luger,

    You can find the license key on your account page (click on sign in in the op right corner, log in, then click on the “Downloads” tab in the dropdown. There you can download the theme files for Enfold and the “license certificate” which is a text file and which contains the license key/purchase code. You can use this code to register an account in our support forum here: https://kriesi.at/support/

    If you want to enable automatic updates generate an api key first (screenshot/instructions: https://kriesi.at/wp-content/themes/enfold/framework/images/layout/FIND_API.jpg ), then go to Enfold > Theme Options > Theme Update and paste the api key into the “Your Themeforest API Key” field. You also need to insert your themeforest username into the “Your Themeforest User Name” field.

    Best regards,
    Peter

    in reply to: Farbverlauf Menü #1008237

    Hey Thomas,

    1) Verwende hierfür bitte folgenden Code:

    
    #top #wrap_all #header_main_alternate {
        background-color: #2863ac;
        box-shadow: 6px 6px 8px rgba(0,0,0,0.45);
        background: -webkit-gradient(linear, center top, center bottom, from(#2862AC),color-stop(100%, rgba(0,104,203,0.8)));
        background: -webkit-linear-gradient(top,#2862AC ,rgba(0,104,203,0.8) 100%);
        background: linear-gradient(to bottom,#2862AC ,rgba(0,104,203,0.8) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF2862AC, endColorstr=#CC0068CB, GradientType=0);
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF2862AC', endColorstr='#CC0068CB', GradientType=0)";
    }
    
    #top #wrap_all #header .av-main-nav > li > a {
        background-color: transparent;
    }
    

    2) Versuche bitte hierfür diesen Code:

    
    #top .av_seperator_small_border .av-main-nav > li > a > .avia-menu-text {
        font-weight: normal;
    }
    
    #top .av_seperator_small_border .av-main-nav > li:hover > a > .avia-menu-text, #top .av_seperator_small_border .av-main-nav > li.current-menu-item > a > .avia-menu-text {
        font-weight: bold;
    }
    

    Best regards,
    Dude

    in reply to: Schatten Sidebar Widget #1008230

    Hey!
    Ah ich dachte es soll so aussehen. Wenn der Streifen oben ohne Abstand bleiben soll, verwende bitte diesen Code:

    
    #top .sidebar section#text-2 {
        padding-left: 0;
        padding-right: 0;
    }
    
    #top .sidebar section#text-2 .textwidget {
        padding-left: 28px;
    }
    

    Um den Abstand nach links zu ändern, kannst Du den Wert 28px durch einen anderen ersetzen.

    LG,
    Peter

    in reply to: Adding Quantity field in shop overview page – woocommerce #1008227

    Hey Yannick77,

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

    
    /**
     * Add quantity field on the archive page.
     */
    function custom_quantity_field_archive() {
    
    	$product = wc_get_product( get_the_ID() );
    
    	if ( ! $product->is_sold_individually() && 'variable' != $product->product_type && $product->is_purchasable() ) {
    		woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) );
    	}
    
    }
    add_action( 'woocommerce_after_shop_loop_item', 'custom_quantity_field_archive', 0, 9 );
    
    /**
     * Add requires JavaScript.
     */
    function custom_add_to_cart_quantity_handler() {
    
    	wc_enqueue_js( '
    		jQuery( ".type-product" ).on( "click", ".quantity input", function() {
    			return false;
    		});
    		jQuery( ".type-product" ).on( "change input", ".quantity .qty", function() {
    			var add_to_cart_button = jQuery( this ).parents( ".product" ).find( ".add_to_cart_button" );
    
    			// For AJAX add-to-cart actions
    			add_to_cart_button.data( "quantity", jQuery( this ).val() );
    
    			// For non-AJAX add-to-cart actions
    			add_to_cart_button.attr( "href", "?add-to-cart=" + add_to_cart_button.attr( "data-product_id" ) + "&quantity=" + jQuery( this ).val() );
    		});
    	' );
    
    }
    add_action( 'init', 'custom_add_to_cart_quantity_handler' );
    

    Another user reported it worked (see https://kriesi.at/support/topic/add-a-quantity-field-to-woocommerce-products/#post-690610 – I already modified the code for you [new class name]).

    Best regards,
    Peter

    in reply to: ERROR with terms link in checkout. #1008222

    Hi,
    The code seems correct to me – please try to clear the server and browser cache. It’s also strange the code of the functions.php was missing because it was there when I added my code (and also afterwards).

    Best regards,
    Peter

    in reply to: Bilder werden nur im eingeloggten Zustand angezeigt. #1008220

    Hi,
    Ich hab die Seite bei mir getestet und ich glaube es liegt an den Firewall Plugins (zumindest eines der beiden dürfte den Fehler verursachen). Wenn ich ausgeloggt bin, bekomme ich lauter 404 (Dateien nicht gefunden) Fehler, welche auch die Bilder betreffen. Ich kann mich nach meinem Test auch nicht mehr anmelden, da nun die Fehlermeldung kommt “You have been locked out due to too many attempts to access a file that doesn’t exist.” (kommt von der Defender Firewall). Sofern möglich würde ich diese Plugins deaktivieren (diese werden im Regelfall nicht benötigt) und allenfalls Wordfence installieren. Wenn ihr diese verwenden wollt, müsstet ihr die Plugin-Entwickler anschreiben und anfragen, wo es an der Konfiguration hackt.

    LG,
    Peter

    in reply to: [WOOCOMMERCE] Breadcrumbs not working properly #1008065

    Hi,

    I added the code for you and the error is gone now :)

    You can i.e. test it here: https://www.aderal.es/desarrollo/onwa/producto/campana-extractora-ct60z/

    Best regards,
    Peter

    in reply to: Warning: Attempt to assign property of non-object #1008063

    Hi,

    Kein Problem. Ich wünsche Dir noch einen schönen Abend!

    LG,
    Peter

    in reply to: Remove item from shopping cart WIDGET button (x) ? #1008057

    Hi,

    Probably your code is better because it does not require setIntval. However I tried to hook on woocommerce_add_to_cart_fragments before and the code didn’t work for me.

    Best regards,
    Peter

    in reply to: Warning: Attempt to assign property of non-object #1008055

    Hey Ink_Eye,

    Ich habe das Problem gelöst. Im zweiten Masonry Element war weder eine Taxonomy (zB Kategorien, Tags, etc.) noch entsprechende Kategorien, Schlagworte, etc. selektiert. Ich habe nun die Kategorien “Allgemein und Neuigkeiten” ausgewählt und die Fehlermeldungen sind weg. Natürlich könnt ihr auch andere Kategorien auswählen.

    LG,
    Peter

    in reply to: Insert excerpt after page title and breacrumbs #1008045

    Hey!
    I forgot a bracket – I updated the code above – please try it again.

    Regards,
    Peter

    in reply to: Disable Enfold styling for Events Calendar #1008041

    Hi,

    Please add this code to your child theme functions.php to replace the default event-mod.css with your custom one:

    
    if(!is_admin()){ add_action('wp_enqueue_scripts', 'avia_events_register_assets',15); }	
    function avia_events_register_assets()
    {
    	wp_enqueue_style( 'avia-events-cal', get_stylesheet_directory_uri().'/config-events-calendar/event-mod.css');
    }
    

    You need to place the event-mod.css inside the “config-events-calendar” folder in your child theme folder (the entire path should be wp-content/themes/enfold-child/config-events-calendar/event-mod.css

    Best regards,
    Peter

    in reply to: Remove item from shopping cart WIDGET button (x) ? #1008029

    Hi!

    The script logic was more complex then I expected but now I’ve found a solution which updates the counter even without reloading the page. I added this code to your child theme functions.php:

    
    add_action('wp_footer', 'ava_custom_remove_cart_click');
    function ava_custom_remove_cart_click(){
    ?>
    <script>
    setInterval(function(){
    	var the_html		= jQuery('html'),
    	    cart			= jQuery('body').is('.woocommerce-cart'),
    		cart_counter	= jQuery('.cart_dropdown .av-cart-counter'),
    	    menu_cart		= jQuery('.cart_dropdown'),
    		counter			= 0;
    	
    	menu_cart.find('.cart_list li .quantity').each(function(){
    							counter += parseInt(jQuery(this).text(),10);
    						});		
    
    	if( counter === 0 )
    	{
    		cart_counter.removeClass('av-active-counter').text(counter); 
    		setTimeout( function() { the_html.removeClass('html_visible_cart'); }, 200);
    	}
    	else if( (cart_counter.length > 0 ) && ( counter > 0 ) )
    	{
    		setTimeout(function(){ 
    				cart_counter.addClass('av-active-counter').text(counter); 
    				the_html.addClass('html_visible_cart');
    					}, 10); 
    	}
    }, 1500);
    </script>
    <?php
    }
    

    Best regards,
    Peter

    in reply to: Schatten Sidebar Widget #1007965

    Hey!
    Verwende hierfür bitte diesen CSS Code

    
    #top .sidebar section#text-2 {
        padding-left: 30px;
        padding-right: 30px;
    }
    

    LG,
    Peter

    in reply to: Sticky footer for Enfold #1007945

    Hi,

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

    
    function avia_custom_css_code(){
    ?>
    <style>
    #top #socket {
        position: fixed;
        width: 100%;
        bottom: 0;
        z-index: 999;
    }
    </style>
    <?php
    }
    add_action('wp_head', 'avia_custom_css_code');
    

    Best regards,
    Peter

    in reply to: [WOOCOMMERCE] Breadcrumbs not working properly #1007940

    Hey aderal2016,

    This is not a bug – by default the breadcrumb function will “cut” the hierarchy with the first child category. However you can easily overwrite the default breadcrumb function with this code – you can add it to the child theme functions.php:

    
    add_filter('avia_breadcrumbs_trail','avia_custom_woocommerce_breadcrumb', 15, 2 );
    
    function avia_custom_woocommerce_breadcrumb( $trail, $args )
    {
    	global $avia_config;
    
    	if(is_woocommerce())
    	{
    		$front_id	= avia_get_option('frontpage');
    		$home 		= isset( $trail[0] ) ? $trail[0] : '';
    		$last 		= array_pop($trail);
    		$shop_id 	= function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'shop' ) : woocommerce_get_page_id( 'shop' );
    		$taxonomy 	= "product_cat";
    
    		// on the product page single page modify the breadcrumb to read [home] [if available:parent shop pages] [shop] [if available:parent categories] [category] [title]
    		if(is_product())
    		{
    			//fetch all product categories and search for the ones with parents. if none are avalaible use the first category found
    			$product_category = $parent_cat = array();
    			$temp_cats = get_the_terms(get_the_ID(), $taxonomy);
    
    			if(!empty($temp_cats))
    			{
    				foreach($temp_cats as $key => $cat)
    				{
    					if($cat->parent != 0 && !in_array($cat->term_taxonomy_id, $parent_cat))
    					{
    						$product_category[] = $cat;
    						$parent_cat[] = $cat->parent;
    					}
    				}
    
    				//if no categories with parents use the first one
    				if(empty($product_category)) $product_category[] = reset($temp_cats);
    
    			}
    			//unset the trail and build our own
    			unset($trail);
    
    			$trail = ( empty( $home ) ) ? array() : array( 0 => $home );
    			if(!empty($shop_id) && $shop_id  != -1)    $trail = array_merge( $trail, avia_breadcrumbs_get_parents( $shop_id ) );
    			if(!empty($parent_cat)) $trail = array_merge( $trail, avia_breadcrumbs_get_term_parents( $parent_cat[0] , $taxonomy ) );
    			if(!empty($product_category)) 
    			{ 
    				foreach ($product_category as $key => $data)
    				{
    					$trail[] = '<a href="' . get_term_link( $product_category[$key]->slug, $taxonomy ) . '" title="' . esc_attr( $product_category[$key]->name ) . '">' . $product_category[$key]->name . '</a>';
    				}
    			}
    
    			if( ! empty( $last ) ) 
    			{
    				$trail['trail_end'] = $last;
    			}
    		}
    	}
    
    	return $trail;
    }
    

    Best regards,
    Peter

    in reply to: Youtube via Enfold – GDPR compatible? #1007933

    Hi,

    Our developer looked into it and we’re not sure at the moment if we’ll support a nocookie implementation or not. At the moment we’re waiting for feedback by Kriesi. However if we’ll support it we’ll only provide basic support which means nocookie videos won’t work with all elements and can’t be used in i.e. sliders, etc. This is a technical limitation of the nocookie api (which does not support many features the standard api offers – more information can be found here: https://github.com/CookPete/react-player/issues/272 ). So even if we’ll add support many users probably won’t use it because the use cases are limited.

    Best regards,
    Peter

    in reply to: Auto-response issue in enfold contact form #1007931

    Hey Enffie,

    You can try to manually set the from e-mail address – add this code to the child theme functions.php:

    
    add_filter('avf_form_autoresponder_from', 'avf_form_autoresponder_from_mod', 10, 3);
    function avf_form_autoresponder_from_mod($from, $new_post, $form_params) {
        $from = " (Email address hidden if logged out) ";
        return $from;
    }
    

    and replace (Email address hidden if logged out) with your e-mail address.

    If this doesn’t work you maybe need to install a plugin like: https://wordpress.org/plugins/cb-change-mail-sender/ to change the default sender name.

    Best regards,
    Peter

Viewing 30 posts - 631 through 660 (of 9,352 total)