Forum Replies Created

Viewing 30 posts - 17,941 through 17,970 (of 67,463 total)
  • Author
    Posts
  • in reply to: Edit toggle button of modal window (cookies) #1228368

    Hi,

    Thank you for the update.

    There’s no option for it by default but your solution should be enough to only display the toggle for the current language.

    Best regards,
    Ismael

    in reply to: issues with blogpage and posts #1228366

    Hey Alexander,

    Thank you for the inquiry.

    1-3.) You can use the Simple Image Sizes plugin to adjust the maximum size of the featured image or thumbnail used in the posts. After activating the plugin, go to the Settings > Media panel and look for the “portfolio” thumbnail. Adjust the width and height, update or save the changes, then regenerate the thumbnails.

    // https://wordpress.org/plugins/simple-image-sizes/

    4.) You can adjust the style of the heading tags in the Enfold > Advanced Styling panel.

    5.) You have to install a translation plugin like Loco Translate or Say What? in order to translate the text in the templates.

    // https://wordpress.org/plugins/loco-translate/
    // https://wordpress.org/plugins/say-what/

    And please note that we always encourage users to open separate threads for each inquiry instead of including them in a single post because it will be a lot easier for moderators to answer the question or request, and make it easier for users who might be searching for the same solution.

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: aviaAsset_avia-head-scripts in Table wp_options #1228364

    Hi,

    Thank you for the info.

    The content is actually saved in a file inside the dynamic_avia folder. The database entry is only used to combine the content of the enqueued or registered scripts in the site, then the theme converts it to an actual JS file.

    If you want to get rid of it, you have to disable JS compression in the Performance > File Compression panel, and use a plugin like Autoptimize instead.

    Best regards,
    Ismael

    in reply to: Masonry Pin or Sticky Post #1228362

    Hey Rhodo,

    Thank you for the inquiry.

    The element doesn’t support sticky posts by default, but you might be able to use this same filter to adjust the posts query and include the sticky posts.

    // https://kriesi.at/support/topic/sticky-posts-in-b-og-grid/#post-692059

    Replace avia_post_slide_query with the avia_masonry_entries_query filter.

    Best regards,
    Ismael

    in reply to: Always show whole image in Photography theme #1228359

    Hi,

    Sorry for the delay. Instead of using the default gallery, try to use the gallery shortcode or element from the theme. You can insert the gallery by switching the editor to visual mode, look for the shortcode wand and locate the Media Elements > Gallery shortcode. In the gallery editor, go to the Styling panel and set the Gallery Style to the second option, and select No Scaling for both Gallery Big Preview Image Size and Gallery Preview Image Size settings. You should also disable the cropping option.

    We created a test page and added the theme’s gallery to it. (see private field)

    Best regards,
    Ismael

    Hi,

    Sorry for the delay. The shortcode that you posted above is invalid and it will certainly break the site. It doesn’t have the main wrapper of the toggle shortcode.

    This is the correct shortcode format of the toggle element.

    [ av_toggle_container initial='0' mode='accordion' sort='' styling='' colors='' font_color='' background_color='' border_color='' colors_current='' font_color_current='' background_current='' background_color_current='' background_gradient_current_color1='' background_gradient_current_color2='' background_gradient_current_direction='vertical' hover_colors='' hover_background_color='' hover_font_color='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' alb_description='' id='' custom_class='' av_uid='']
    [ av_toggle title='Toggle 1' tags=''][/av_toggle]
    [ av_toggle title='Toggle 2' tags=''][/av_toggle]
    [ /av_toggle_container]
    

    Best regards,
    Ismael

    in reply to: WOFF Fonts in Enfold Theme #1228356

    Hi,

    Sorry for the delay. You can only upload Google fonts in the theme’s font manager. If you want to use a custom font from a different source, use the @font-face rule.

    // https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

    Make sure to use the absolute or complete path of the font files.

    Example:

    @font-face {
      font-family: myFirstFont;
      src: url(https://site.com/exact/location/to/font/sansation_light.woff);
    }
    

    Best regards,
    Ismael

    in reply to: Product grid limit number of products – Part 2 #1228353

    Hi,

    Thank you for the update.

    We also found this filter, which might help adjust the number of total pages shown in the pagination.

        // define the woocommerce_pagination_args callback 
    	 function avf_filter_woocommerce_pagination_args( $array ) { 
            $array['total'] = 5;
            return $array; 
        }; 
    
        add_filter( 'woocommerce_pagination_args', 'avf_filter_woocommerce_pagination_args', 10, 1 ); 
    

    Please remove the browser cache after adding the snippet.

    Best regards,
    Ismael

    Hi,

    We provided a reply on the other thread which contains the same issue, so we’ll close this one for now. Please continue here: https://kriesi.at/support/topic/burger-when-scrolling-down/#post-1225769

    Best regards,
    Ismael

    in reply to: Event Tickets not working #1228347

    Hey!

    This documentation regarding paypal issues might also help.

    // https://theeventscalendar.com/knowledgebase/k/configuring-tribe-commerce-with-paypal/#Troubleshooting_PayPal_Issues

    Regards,
    Ismael

    in reply to: Event Tickets not working #1228346

    Hi,

    We are still getting this error after adding a ticket.

    Warning: count(): Parameter must be an array or an object that implements Countable in/wp-content/plugins/event-tickets/src/Tribe/Commerce/PayPal/Cart/Unmanaged.php
    

    Did you already do these steps?

    // https://theeventscalendar.com/knowledgebase/k/configuring-tribe-commerce-with-paypal/

    As far as we’ve gotten, the issue seems to be in generating the invoice number in the event-tickets/src/Tribe/Commerce/PayPal/Cart/Unmanaged.php. It’s supposed to read the invoice number from a cookie, but it doesn’t exists.

    /**
    	 * {@inheritdoc}
    	 */
    	public function exists( array $criteria = [] ) {
    		if ( null !== $this->invoice_number ) {
    			$invoice_number = $this->invoice_number;
    		} else {
    			$invoice_number = $this->read_invoice_number();
    		}
                    // ENDS HERE because $invoice_number is null or undefined
    		if ( false === $invoice_number ) {
    			return false;
    		}
    
    		return (bool) get_transient( self::get_transient_name( $invoice_number ) );
    	}
    
    

    Can we deactivate the plugins temporarily, or is there a staging version of the site where we can test this fully?

    Best regards,
    Ismael

    Hey Guenter,

    Thank you for the inquiry.

    You will probably need the avia_enqueue_script_conditionally function and pass the condition to it. If condition is true, register the script, if not then deregister it.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    If decreasing the font size is not an option, we can then instead modify the themes\enfold\config-templatebuilder\avia-shortcodes\tab_section\tab_section.js file directly and include an additional 20px to the minimum width of the title container.

    Look for this code around line 84:

    tab_wrap.css('min-width', min_width);
    

    Replace it with:

    tab_wrap.css('min-width', min_width + 20);
    

    This is almost the same as using the css code that Victoria suggested above.

    Please don’t forget to toggle the Performance > File Compression settings after adding the code.

    Best regards,
    Ismael

    Hi,

    Looks like you’ve already managed to get the read more links to display in the archive page. Did you set the “For each post in a feed, include” option in the Settings > Reading panel to “Summary”?

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: Burger when scrolling down #1228222

    Hi,

    Sorry for the delay. You have to include the script in the snippet that we provided previously and wrap the css code with the css media query. Please post the login details in the private field so that we can test the modifications. Make sure that the Appearance > Editor panel is accessible.

    css media query:

    @media only screen and (min-width: 1024px) {
    .responsive #top .av-main-nav .menu-item {
      display: block;
    }
    
    .responsive #top .av-main-nav .menu-item-avia-special {
      display: block;
    }
    
    .responsive .av-burger-menu-main.hide_burger_show_menu {
      display: block;
    }
    
    #avia-menu .hide_menu_show_burger {
      display: none !important;
    }
    
    #header.av_header_transparency .av-burger-menu-main.hide_burger_show_menu {
    	display: none !important;
    }
    
    #header.av_header_transparency .av-burger-menu-main:not(.hide_burger_show_menu) {
    	display: none !important;
    }
    }

    script:

     add_action('wp_footer', 'ava_burger_toggle_on_scroll');
     function ava_burger_toggle_on_scroll(){
    	 ?>
    	 <script type="text/javascript">
    		 (function($) {
    			 function avia_scroll_top_menu()
    			 {
    					 var win = $(window),
    						 menu = $('.responsive #top .av-main-nav .menu-item'),
    						 burger = $('.responsive #top .av-main-nav .menu-item-avia-special, .responsive .av-burger-menu-main'),
    						 set_status = function()
    						 {
    							 var st = win.scrollTop();
     
    							 if(st > 100)
    							 {
    								 menu.addClass('hide_menu_show_burger');
    								 menu.removeClass('hide_burger_show_menu');
    								 burger.removeClass('hide_menu_show_burger');
    								 burger.addClass('hide_burger_show_menu');	
    							 }
    							 else if(menu.is('.hide_menu_show_burger')) 
    							 {
    								 burger.addClass('hide_menu_show_burger');
    								 burger.removeClass('hide_menu_show_burger');
    								 menu.removeClass('hide_menu_show_burger');	
    								 menu.addClass('hide_burger_show_menu');
    							 }
    						 };
     
    					 win.on( 'scroll',  function(){ window.requestAnimationFrame( set_status )} );
    					 set_status();
    			 }
                               
                             if($(window).width() > 1024) {
                                 avia_scroll_top_menu();
                             }
    		 })(jQuery);
    	 </script>
    	 <?php
     }
    

    Best regards,
    Ismael

    in reply to: header cut in tablet portrait format #1228220

    Hi,

    Thank you for the inquiry.

    You might have to decrease the width of the image to make it completely visible on smaller screens.

    @media only screen and (max-width: 1024px) {
        #banner-port {
    	width: 150px;
        }
    }
    

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    We exported the portfolio items and imported it to our own installation, then use the compact blog layout. This time all items displayed without issue, so it’s probably not an issue with the Blog Posts element. Unfortunately, we are still not sure why it doesn’t work in your installation.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    Could you post the WP and FTP details in the private field? We would like to check the issue further.

    Is it working correctly when other plugins and extensions are disabled?

    Best regards,
    Ismael

    in reply to: Search – number of displayed results #1228197

    Hi,

    limit search results in the menu.

    The snippets in the documentation will also limit the number of results displayed in the AJAX search. Just make sure that you’re using the relevanssi_do_query filter or function instead of the default get_posts function used in the theme.

    Add this snippet first to replace the default posts function:

    add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4);
    function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
    {
        $function_name = 'avia_relevanssi_search';
        return $function_name;
    }
    
    function avia_relevanssi_search($search_query, $search_parameters, $defaults)
    {
        global $query;
        $tempquery = $query;
        if(empty($tempquery)) $tempquery = new WP_Query();
    
        $tempquery->query_vars = $search_parameters;
        relevanssi_do_query($tempquery);
        $posts = $tempquery->posts;
    
        return $posts;
    }
    

    .. then include this to limit the number of results:

    add_filter( 'relevanssi_modify_wp_query', 'rlv_postsperpage' );
    function rlv_postsperpage( $query ) {
        $query->query_vars['posts_per_page'] = 5;
        return $query;
    }

    Best regards,
    Ismael

    Hi,

    Did you set jQuery to load in the footer in the Enfold > Performance panel? Try to disable that option first, then add the script again in the functions.php file. Please don’t forget to remove the browser cache prior to testing.

    Best regards,
    Ismael

    in reply to: Shortcodes don't work in post header #1228094

    Hi,

    Thank you for the update.

    Yes, please post the login details in the private field so that we can check the site properly. If there is a staging site, then we would prefer to access that one instead. And FYI, we added the shortcode in a post inside our own installation and the slider worked without issue.

    Best regards,
    Ismael

    in reply to: Enfold settings / polylang #1228092

    Hi,

    Thank you for the update.

    That is how the plugin works in the theme — a single theme option is applied to all languages unlike with WPML where there is a dedicated options page for each language.

    If you need to translate text from the theme options such as the copyright text, then you’re going to have to use the String Translation extension.

    // https://polylang.pro/doc/strings-translation/

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    The theme contains conditional tags which check if the current user can do a certain task like switching themes or installing plugins to confirm that the current user is indeed an administrator. It’s possible that by adding the customer role to the admin account, this check or conditions returns false or fails and create unexpected results. To avoid the issue temporarily, please use a different account when you’re testing the shop page and another when doing admin tasks, this is only until we find the actual cause of the issue.

    // https://developer.wordpress.org/reference/functions/current_user_can/

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    The URL of the home page is the same. Do you want to use the actual permalink of the page as home page? You might need to do a 301 redirect using a plugin, but we don’t really see the point of doing that.

    // https://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    The wp_nav_menu_item_custom_fields hook is used in the themes\enfold\functions-enfold.php file, look for the avia_menu_button_style function and starting from line 1779 you’ll see this code:

    add_action('wp_nav_menu_item_custom_fields', 'avia_menu_button_style', 10, 4);
    
    	function avia_menu_button_style($output, $item, $depth, $args)
    

    Replace it with:

    add_action('wp_nav_menu_item_custom_fields', 'avia_menu_button_style', 10, 5);
    
    	function avia_menu_button_style($output, $item, $depth, $args, $id)
    

    Another instance is inside the themes\enfold\framework\php\class-megamenu.php around line 534:

    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    

    Add the $id parameter in the hook.

    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args, $id );
    

    We’ll forward the changes to our channel.

    Best regards,
    Ismael

    in reply to: ReCaptcha not working #1228082

    Hi,

    Thank you for the info.

    When you say it’s not working for the blog entries, do you mean in the comment form inside the post? Please note that the spam protection in the theme will only work in the contact form. It’s not going to work in the comment forms.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    You can use this css code to disable the fade in effect of the masonry items and make them immediately visible on page load.

    .av-masonry-image-container {
    	-webkit-perspective: 1000px;
    	-webkit-backface-visibility: hidden;
    }
    
    .av-masonry-entry {
    	opacity: 1;
    	visibility: visible;
    }

    Best regards,
    Ismael

    in reply to: Breadcrumbs in Blog archive page layout #1228077

    Hi,

    Thank you for the update.

    We can wrap this block of code inside a conditional tag to exclude the category Blog from the breadcrumb trail whe an archive page is in view.

    foreach($category as $cat)
            {
                    if(empty($cat->parent))
                    {
    			$category_link = get_category_link($cat->term_id);
    			$newtrail[] = '<a href="'.esc_url( $category_link ).'" title="'.$cat->cat_name.'">'.$cat->cat_name.'</a>';
                    }
            }
    

    Replace it with:

    if(!is_archive()) {
        foreach($category as $cat)
            {
                    if(empty($cat->parent))
                    {
    			$category_link = get_category_link($cat->term_id);
    			$newtrail[] = '<a href="'.esc_url( $category_link ).'" title="'.$cat->cat_name.'">'.$cat->cat_name.'</a>';
                    }
            }
    }
    

    Best regards,
    Ismael

    Hi,

    We don’t see any errors in the site anymore. Is it fixed? How can we reproduce the issue?

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: Adding a news Header Option – Transparent Dark #1228075

    Hey Chris,

    Thank you for the inquiry.

    One solution is to use css to change the style of the header. We can use the page ID as a css selector to target the header on a specific page.

    For example, you can use this css code to change the style of the header of the page with the ID 206.

    #top.page-id-206 .av_header_transparency .header_bg {
    	background-color: transparent;
    	opacity: 0;
    	filter: alpha(opacity=0);
    }
    
    #top.page-id-206 .av_header_with_border.av_header_transparency #header_main {
    	border: 1px solid rgba(255,255,255,0.25);
    	border-left: none;
    	border-right: none;
    	border-top-color: transparent;
    }

    Best regards,
    Ismael

Viewing 30 posts - 17,941 through 17,970 (of 67,463 total)