Banner mask loading - by Marta Iraola - on WordPress WooCommerce support

This topic has 17 replies, 3 voices, and was last updated 5 years, 3 months ago ago by Rose Tyler

  • Avatar: Marta Iraola
    Marta Iraola
    Participant
    December 17, 2018 at 08:48

    Hello,

    I have some questions:

    1 – I have used some Banner masks on the homepage and they take some extra seconds to load. How can I make them load at the same tieme than the rest of the page?

    2- On the search form from the header, is it possible to remove the “choose a category” option to the left, and just have the search field?

    3 – We have noticed that the homepage sometimes gives an “ajax error” , we don’t know if it was because we improted the demo homepage. Why does it appear?

    4 – The portfolio page doesn’t load correctly all the logos the first time you enter the page. You have to refresh it once or twice to load everything correctly. Is there some optimization or something to make it better?

    Thank you for your help.

    Kind regards,

    Marta

    Please, contact administrator
    for this information.
    16 Answers
    Avatar: Marta Iraola
    Marta Iraola
    Participant
    December 17, 2018 at 10:08

    Hello,

    Another question:

    5 – I am trying to show icons in the main menu but it is not showing correctly. I have tried both with xstore icons (but I don’t know the code for the icons) and Fontawesome icons, but they appear in the top right and not the correct icon, just a square.

    How can I make them appear in the menu?

    Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 17, 2018 at 11:44

    Hello,

    1) Try to disable “Lazy loading for this element” in settings of Banner element.
    Also, optimize images – http://prntscr.com/lvyvpu > http://prntscr.com/lvyvtz
    https://tinypng.com/
    2) Please add this code in Theme Options > Custom css:

    .header-advanced .header-search select {
        display: none !important;
    }

    3) Please update the theme to the latest version (5.1.3 – Dashboard > Updates and press Force Check button. The new version should appear at the list of available themes) then clear cache and check if the issue will be there.
    4) Let me know if the problem will be solved after the theme update.
    5) Please see screenshots – http://prntscr.com/lvz1lo > http://prntscr.com/lvz1ro
    https://fontawesome.com/v4.7.0/icons/

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    December 19, 2018 at 11:00

    Hello Rose,

    Thank you for your answer. I have checked and all the problems are solved except the portfolio loading. I have tried deleting cache but it doesn’t seem to work. The first time you open the page doesn’t show all the portfolio images correctly, and when you refresh it they all show.

    Apart from that, do you know some CSS code to remove the login from the header? (I mean the ENTRAR/REGISTRARSE link)

    Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 19, 2018 at 11:26

    Hello,

    Please provide FTP access.
    You can select “Sign In link position” > Disable in Theme Options > Header > Header layout or add this custom css code:

    .logged-in .header-wrapper .login-link {
        display:  none;
    }

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    December 19, 2018 at 16:41

    Hello,

    You will find the FTP details in the private content area.

    Please contact me if you need anything else.

    Thank you!!

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 20, 2018 at 07:55

    Hello,

    Please increase Max Input Vars limit to 5000. You can contact the hosting provider and ask for help with increasing.
    Let us know the result.

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    December 28, 2018 at 09:31

    Hello,

    Sorry for the late answer.

    Could you tell me in which php file is the max input vars option to change it?

    Another question regarding the portfolio is that, if you check it, I have 3 parent categories with many subcategories for each one. But in the Portfolio page “Marcas”, the filters show all the filters together. Is it possible to just show the subcategories (and hide the parent categories) or make the parent categories a little different by putting them in bold font or something like that?

    Thank you for your help.

    Kind regards,

    Marta

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 28, 2018 at 12:44

    Hello,

    1) max_input_vars can be changed from php.ini and .htaccess files, but it would be better to ask your hosting provider about help.

    2) You can add this code in functions.php file of your child theme:

    function etheme_portfolio($categories = false, $limit = false, $show_pagination = true) {
    
    			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    			$cat = get_query_var('portfolio_category');
    			
    			$tax_query = array();
    
    			if(!$limit) {
    				$limit = etheme_get_option('portfolio_count');
    			}
    
    			$order = etheme_get_option( 'portfolio_order' );
    			$orderby = etheme_get_option( 'portfolio_orderby' );
    			$spacing = etheme_get_option( 'portfolio_margin' );
    
    			$portfolio_archive = false;
    
    			if(is_array($categories) && !empty($categories)) {
    				$tax_query = array(
    					array(
    						'taxonomy' => 'portfolio_category',
    						'field' => 'term_id',
    						'terms' => $categories,
    						'operator' => 'IN',
    					)
    				);
    			} else if(!empty($cat)) {
    				$tax_query = array(
    					array(
    						'taxonomy' => 'portfolio_category',
    						'field' => 'slug',
    						'terms' => $cat,
    						'include_children' => false,
    					)
    				);
    			} else {
    				$portfolio_archive = true;
    				$categories = get_terms('portfolio_category', array('include' => $categories,  'childless' => true));
    				$tax_query = array('relation' => 'OR');
    				foreach ($categories as $key => $value) {
    					$tax_query[] = array(
    							'taxonomy' => 'portfolio_category',
    							'field' => 'term_id',
    							'terms' => $value->term_id,
    							'operator' => 'IN',
    					);
    				}
    			}
    
    			$args = array(
    				'post_type' => 'etheme_portfolio',
    				'paged' => $paged,	
    				'posts_per_page' => $limit,
    				'tax_query' => $tax_query,
    				'order' => $order,
    				'orderby' => $orderby,
    			);
    
    			$loop = new WP_Query($args);
    			
    			if ( $loop->have_posts() ) : ?>
    				<?php if( ! is_tax( 'portfolio_category' ) ) : ?>
    					<ul class="portfolio-filters">
    						<li><a href="#" data-filter="*" class="btn-filter active"><?php esc_html_e('Show All', 'xstore'); ?></a></li>
    							<?php
    							if ( ! $portfolio_archive ) {
    								$categories = get_terms('portfolio_category', array('include' => $categories,  'childless' => true));
    							}
    							
    							$catsCount = count($categories);
    							$_i=0;
    							foreach($categories as $category) {
    								$_i++;
    								?>
    									<li><a href="#" data-filter=".portfolio_category-<?php echo esc_attr($category->slug); ?>" class="filter-btn"><?php echo esc_html($category->name); ?></a></li>
    								<?php
    							}
    
    							?>
    					</ul>
    				<?php endif; ?>
    				<div class="portfolio spacing-<?php echo esc_attr( $spacing ); ?>">
    					<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    						<?php
    							get_template_part( 'content', 'portfolio' );
    						?>
    
    					<?php endwhile; ?>
    				</div>
    
    			<?php if ( $show_pagination && $limit != -1 ){
    				$pagination_args = array(
    					'pages'  => $loop->max_num_pages,
    					'paged'  => $paged,
    					'class'  => 'portfolio-pagination',
    				);
    				etheme_pagination( $pagination_args );
    			} ?>
    			
    		<?php else: ?>
    
    			<h3><?php esc_html_e('No projects were found!', 'xstore') ?></h3>
    
    		<?php endif;
    	}

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    January 2, 2019 at 09:58

    Hello and happy new year!

    The second answer works perfectly, thanks!

    Regarding the first answer, we have changed to 5000 but the problem still exists. Any other idea? Maybe increase that number more?

    Thank you for your help!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 2, 2019 at 10:32

    Hello,

    Happy New Year to you too, thank you.
    Please update XStore to 5.1.4 version https://xstore.helpscoutdocs.com/article/63-theme-update and Core plugin to 1.1.8 https://xstore.helpscoutdocs.com/article/37-plugins-update
    Then clear cache and let us know the result.

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    January 2, 2019 at 13:48

    Hello Rose,

    It works perfect now. Thank your for your help.

    Kind regards,

    Marta

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 2, 2019 at 13:54

    You’re welcome!

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    January 3, 2019 at 17:32

    Hello again!

    I have a different question (I can open another ticket if you want).

    We have a slider item on the homepage. The font color is white and this works fine on desktop. But, in the mobile version, there is a white square background over the image and, as the font color is white, you can’t read the title.

    Is there any way to put the title in black only in the mobile version, or maybe just remove the white square?

    Thank you!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 3, 2019 at 17:52

    Hello,

    It was custom CSS in page settings http://prntscr.com/m2n8lb
    I have removed that. Check now.

    Regards

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    January 4, 2019 at 09:24

    Hello Olga,

    Yes, it works now! Thank you!!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 4, 2019 at 09:28

    Hello,

    You’re welcome!

    Regards

  • Viewing 17 results - 1 through 17 (of 17 total)

The issue related to '‘Banner mask loading’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.