Forum Replies Created

Viewing 30 posts - 6,331 through 6,360 (of 9,352 total)
  • Author
    Posts
  • in reply to: Gallery with thumbnails doesn't work properly #195214

    Hey!

    Please try to insert following code into the quick css field

    
    #top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {
    max-height: 46px;
    }
    

    Regards,
    Peter

    in reply to: Woocommerce cart empty when navigating as guest #195213
    This reply has been marked as private.
    in reply to: Simplify Payment gateway not working with theme #195207
    This reply has been marked as private.
    in reply to: Make Top Icon Linkable #194724

    Hey!

    If you want to overwrite an existing shortcode create a “shortcodes” folder within the child theme directory, then copy the /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/iconbox.php into the child theme “shortcodes” folder and modify the php code. Then add following code into the child theme functions.php file

    
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    

    This code will make sure the the shortcode file of the child theme is loaded first and you can overwrite the parent theme shortcode files with the child theme.

    Cheers!
    Peter

    in reply to: Using conditional menus with custom defined user roles #194722

    Hey!

    Yes, you can add a custom user role check to the conditional menu function.

    First you need to add a function to your child theme functions.php file which checks if the current user has the user role or not. You can use following code

    
    if(!function_exists('avia_condition_customrole'))
    {
        function avia_condition_customrole()
        {
            global $current_user;
            if( is_user_logged_in() ) foreach( array( 'customrole' ) as $role ) if( in_array( $role, $current_user->roles ) ) return true;
            return false;
        }
    }
    

    but instead of “customrole” insert your user role slug (by default wordpress uses following user roles: ‘administrator’, ‘editor’, ‘author’, ‘contributor’, ‘subscriber’). Make sure that you replace all occurrences of “customrole” in the code above with your user role slug – otherwise the function won’t work.

    Then add following code into the functions.php child theme:

    
    add_filter('avf_avia_menu_conditions','avia_add_conditional_options', 10,1);
    function avia_add_conditional_options($options){
    $options['avia_condition_customrole'] = array('title' =>__('My Custom User Role', 'avia_framework')),
    return $options;
    }
    

    and (again) you need to replace “customrole” with your user role slug. The text “My Custom User Role” is used for the dropdown option label (text you see when you select the conditional). You can insert any other text instead. Afterwards go to the menu editor page and select the new option and save the menu.

    Cheers!
    Peter

    in reply to: Social Sharing for the image gallaries #194720

    Hi!

    The gallery itself does not support share buttons out of the box and you would need to hire someone to implement these buttons. However the lightbox we use (PrettyPhoto) supports a twitter and a facebook like button. You can activate these buttons by editing a line in enfold/js/avia.js – open up the file and replace

    
    elements.prettyPhoto({ social_tools:'',slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
    
    

    with

    
    elements.prettyPhoto({ slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
    
    

    Cheers!
    Peter

    in reply to: Layout Slider won't display full width #194717

    Hi!

    As far as I know you can’t stretch the background image with LayerSlider. If you want to show a fullwidth image you need to use a layer to display the image and in the styling tab set the width and height of the layer to 100%.

    Regards,
    Peter

    in reply to: IE8 slider responsive but not content #194711

    Hi!

    I guess you’re using the LayerSlider. The Layerslider script uses js/jquery to scale the slider and to make it responsive because many elements/layers are positioned absolute with the slider area and you can’t always change the position of these elements with media queries. The jquery/js resize method is also supported by IE6/7/8 browsers because it’s based on javascript calculations and does not require css3 media queries. If you want to deactivate the responsive layout of the Layerslider open the slider settings page and click on the “Global Settings” tab. Then search for the “Responsive” setting and switch it off.

    I’ll ask Kriesi if it’s possible to deactivate the responsive slider option for IE8 users only. If not we need to talk to the plugin author.

    Regards,
    Peter

    in reply to: Woocommerce cart empty when navigating as guest #194704

    Hey!

    Please create us an admin account and post the login data as private reply.

    Cheers!
    Peter

    in reply to: Displaying Tags in IconBox? #194698

    Hey!

    I think you just need to use another function – try following colde instead which uses the get_the_tag_list function: http://codex.wordpress.org/Function_Reference/get_the_tag_list

    
    function custom_shortcode() {
    	return get_the_tag_list('<p>Tags: ',', ','</p>');
    }
    add_shortcode( 'my_custom_tags', 'custom_shortcode' );
    

    Cheers!
    Peter

    in reply to: FormidablePRO CSS compatibility 2 #194686

    Hi!

    Try following code

    
    #top .with_frm_style .form-field.frm_blank_field input{
    border-color: #ff0000 !important;
    }
    
    

    Regards,
    Peter

    in reply to: Probleme with plugin Premium SEO Pack #194672

    Hey!

    I found a workaround on your server. We’ll include another workaround in the next theme update which checks if the WC_Query exists before the shortcode is executed. If not we’ll just return an empty string. This workaround should also make the product slider shortcode compatible with the premium seo pack.

    Cheers!
    Peter

    in reply to: Avia Layout Builder lädt nicht auf Frontpage #194669

    Hi simonac!

    Du kannst probieren das php memory limit auf 128M zu setzen: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP – vielleicht lädt WordPress bei dir nur ab und zu gewisse Funktionen oder Klassen (zB weil diese an eine get_transient() Abfrage gebunden sind) und nur wenn diese Funktionen/Klassen ausgeführt werden wird auch das memory limit überschritten. Diese Tatsache würde erklären warum der Fehler nur manchmal auftritt. Ich habe den Thread auch für Kriesi markiert – möglicherweise weiß er noch eine andere Ursache für das Problem.

    Best regards,
    Peter

    in reply to: Tab Navigation #194660

    Hi!

    If you want to completely remove the “scroll” effect you just need to delete this line

    
    window.scrollTo(0, container.offset().top - 70);
    

    in the code I posted here https://kriesi.at/support/topic/tab-navigation-2/#post-193576
    If you want to add some padding just increase the last value (-70) and replace it with i.e. -30. You can also add a positive value (i.e. + 10) to the offset instead of subtracting 70px.


    @ocklein
    . no unfortunately not because Abundance does not support deep linking for tabs.

    Best regards,
    Peter

    in reply to: Alt text not appearing in source code #193927

    Hi!

    1) If you want to overwrite a shortcode file see: https://kriesi.at/support/topic/customize-accordion-sortable-all-tag/#post-193759
    However note that we’ll include the updated masonry_entries.php in the next update anyway and you don’t need to overwrite it.

    2) Can you provide a link to the lightbox script? I’ll look into it and if it works for us I’ll recommend it to Kriesi.

    Cheers!
    Peter

    in reply to: Tab Navigation #193921

    Hey!

    It seems like the code is missing in http://noblewhy.com/wp-content/themes/enfold/js/shortcodes.js – did you remove it? If you don’t want to leave it please create us an admin account and post the login data as private reply. I’ll modify the shortcode.js file for you and check if it works. If not I’ll debug the issue and try to find a solution.

    Best regards,
    Peter

    in reply to: Probleme with plugin Premium SEO Pack #193914

    Hey!

    Just a quick note – the issue IS NOT directly related to the avia slider script or shortcode (“this look for me as a bug from slider.”) but the content of the slider causes the issue. Our slider can display every type of content (text, images, etc.) and in this case our slider uses the WooCommerce query class to fetch the product data. For me it’s more a plugin conflict issue between Woocommerce and the SEO plugin because our theme can’t create the product slider without the woocommerce code (I hope this make sense) and the SEO plugin can’t execute the product slider code because it tries to load the shortcodes before the woocommerce code is initialized. Too bad Yoast SEO doesn’t work for you – obviously it triggers the do_shortcode() function with another hook which loads after the woocommerce code is ready.

    Regards,
    Peter

    in reply to: WPML Breaks all navigation except the hompage #193799

    Hi!

    You can also try to put following code into your child theme – then you don’t need to modify the file when you update the theme

    
    add_action( 'init', 'avia_deactivate_permalink_rewrite', 10);
    function avia_deactivate_permalink_rewrite(){
    remove_action( 'init', 'avia_wpml_register_post_type_permalink', 20);
    }
    

    Cheers!
    Peter

    in reply to: No Adsense from Google #193794

    Hi!

    I get following js error message on the homepage (tested with Chrome):

    
    Failed to load resource http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
    Failed to load resource http://banners.webmasterplan.com/view.asp?ref=502786&site=3511&type=html&hnb=132&js=1
    

    It seems like the browser can’t load the google ads javascript file because of reasons I don’t know. Maybe it’s a security measure of the browser to block insecure content or a browser extension (adblocker, etc.) blocks the content.

    Regards,
    Peter

    in reply to: Footer template / multiple footers #193783

    Hey!

    I tagged the thread for Kriesi. At the moment there’s no “central/master template” feature which allows you to edit a certain template for all pages. This is a drawback of the new template builder which is shortcode based.

    Best regards,
    Peter

    in reply to: mobile logo blurry – gets techy – and complicated #193780

    Hey!

    As far as I know the Retina 2X plugin is the most popular one (with around 69000 downloads) but retina displays in general or not very popular yet. I know some photographers and picture artists who use them for their projects (photo retouching, etc.) but even they told me that they switch to a “standard screen resolution” when they’re done with the work because the vast majority of websites or streaming platforms don’t provide high res images or videos and it makes no sense to view them with retina display resolutions.

    The number of plugins is not limited by code but it depends on your hardware. If you’re using a shared server I wouldn’t activate more than 20-30 plugins but obviously it also depends on the plugin code. If the plugin is well coded or if it just contains a few lines of php code which don’t waste the server resources you can activate more plugins without affecting the website performance.

    Regards,
    Peter

    in reply to: Categories do not get assigned to Posts #193769

    Hi!

    I noticed that (nearly) all your posts are set to “Draft”. I guess you need to publish them otherwise WordPress won’t count them as “category item” because the user also can’t view the “drafts” on the category archive pages.

    Cheers!
    Peter

    in reply to: Woocommerce – Template Produkt anpassen #193767

    Hi medienvirus!

    Solche Anpassungen lassen sich leider nicht einfach vornehmen, da WooCommerce uns die Template vorgibt und wir diese nur minimal mittels hooks (actions und filters – siehe: http://docs.woothemes.com/document/hooks/ ) anpassen. Der Code hierzu findet sich in /wp-content/themes/enfold/config-woocommerce/config.php.

    Entweder du versuchst die Templates in /wp-content/plugins/woocommerce/templates/single-product/ anzupassen oder du arbeitest ebenfalls mit Hooks um diese zu verändern. Ich würde zu letzter Lösung raten, da sich die WooCommerce Templates oft ändern (va nach Plugin Updates) und daher die Lösung mit den Hooks nachhaltiger ist. Ich würde den Arbeitsaufwand dabei auf etwas mehr als 1 Stunde schätzen…

    Cheers!
    Peter

    in reply to: Main Menu wird von Seiteninhalt überlagert #193766

    Hey!

    Sehr gut. Beim Code hat eine Klammer gefehlt. Ich habe dies nun korrigiert, falls ein anderer Benutzer diesen einmal brauchen sollte.

    Regards,
    Peter

    in reply to: Gallery pagination issues #193764

    Hi!

    I fixed it. You wrapped the shortcode into a strong/paragraph tag which broke the pagination javascript. I removed the html tags (they’re unnecessary anyway because they won’t affect the gallery output) and the gallery works now.

    Best regards,
    Peter

    in reply to: Ajax preview slider settings #193761

    Hi agarkitekter!

    You could select the “Don’t show the images at all and display the preview text only” option: http://www.clipular.com/c/6453051829256192.png?k=5TIdSdjsRn87CQytVuQeUU4899A

    By going this way Enfold will stretch the content area of the ajax preview to 100% width and you can use the new space to build your custom layout. I.e. use the columns shortcode and the “Easy Slider” shortcode to build the layout/template you requested in your post (different slideshow transition, etc.).

    Cheers!
    Peter

    in reply to: Customize Accordion Sortable "All" Tag #193759

    Hi!

    The only way to change the separator with a child theme would be to overwrite the entire portfolio shortcode file. Crreate a “shortcodes” folder within the child theme directory, then copy the /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php into the child theme “shortcodes” folder and modify the code based on Ismaels instructions (see last post). Then add following code into the child theme functions.php file

    
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    

    It will make sure the the shortcode file of the child theme is loaded first and you can overwrite the parent theme files.

    Best regards,
    Peter

    in reply to: Tab Navigation #193756

    Hi!

    Please post a link to your tabs/buttons.

    Best regards,
    Peter

    in reply to: SSL Problem #193754

    Hi!

    Great :)

    Cheers!
    Peter

    in reply to: Tab Navigation #193576

    Hey!

    I didn’t test this hack but you can try to modify the tab code in /wp-content/themes/enfold/js/shortcodes.js. Open up the file and search for

    
    		function trigger_default_open()
    		{
    			if(!window.location.hash) return;
    			var open = tabs.filter('[data-fake-id="'+window.location.hash+'"]');
    
    			if(open.length)
    			{
    				if(!open.is('.active_tab')) open.trigger('click');
    				window.scrollTo(0, container.offset().top - 70);
    			}
    		}
    

    and replace it with

    
    		function trigger_default_open()
    		{
    			if(!window.location.hash) return;
    			var open = tabs.filter('[data-fake-id="'+window.location.hash+'"]');
    
    			if(open.length)
    			{
    				if(!open.is('.active_tab')) open.trigger('click');
    				window.scrollTo(0, container.offset().top - 70);
    			}
    		}
    
            $('a').on('click',function(){
                var hash = $(this).attr('href').replace(/^.*?#/,'');
    
                if(hash)
                {
                    var open = tabs.filter('[data-fake-id="#'+hash+'"]');
                    if(open.length)
                    {
                        if(!open.is('.active_tab')) open.trigger('click');
                        window.scrollTo(0, container.offset().top - 70);
                    }
                }
            });
    
    

    Regards,
    Peter

Viewing 30 posts - 6,331 through 6,360 (of 9,352 total)