Makes sense thank you.
Makes sense thank you.
So it has to do with my shift8 cdn plugin i disabled “enable cdn” on the settings and it works fine now. Very strange.
Any solution to have the cdn enabled or is it a plugin issue?
Everything on mobile (iphone)/ipad and on macOS is broken every page including the home page I have included screenshot link in private content of home page when I go to my website on ios iPhone device. I called my hosting provider and they had a android phone which seemed to be working normally. He checked on wifes iphone and it was broken like how it is on my ios phone.
On my windows laptop it works fine. On my macos macbook pro the website is broken.
There’s no slider, no pictures, shop page doesn’t work no product pictures, nothing is aligned, it just shows sitemap pages on mobile and iPad. It’s not responsive to the way website looks on and operates when on desktop.
Please help fix.
Thank you.
Hello,
I have another issue now.
I have not upgraded yet. But I just noticed on live site my website is broken when viewing on mobile device such as a iphone or ipad however on desktop the site is working normally.
Yesterday it was working normally. I went to themes customize to update favicon and pressed published. I went on mobile to check favicon and noticed site was broken on mobile. I am not sure if that had anything to do with it.
Please help
Thank you
Okay thank you I will update at some point hopefully I won’t run into the problem.
Hello,
I’ve included FTP and wp admin credentials. But please be aware my live site is operating fine currently on php 5.6.
I am looking to fix the staging site I created through blog vault at php 7.1 which I included in my previous message and I believe blogvault plugin staging site uses it’s own servers which I do not have access to.
Would like to know or fix the issue so I can update my live site to php 7.1 when we know what the issue on staging site is and it’s corrected.
Thank you
I don’t think I edited theme files. Please fix. Thank you.
Yes that worked for the attribute count thank you!
For future reference can you tell me how you removed the product category count so I know where that code is as the original steps given to me did not work? I guess Rose Tyler on here made that correction and I’m curious to know how that was done as well?
Thank you.
Hello,
Yes the product category count is removed on my shop page thank you. However on the attributes(on the left side of my shop page and brands pages) the count is still showing.
Please see private content.
I’ve included FTP access in private content. Please check.
Thank you.
What I’m trying to tell you is this code below:
if ( $category->count > 0 )
echo apply_filters( ‘woocommerce_subcategory_count_html’, ‘ (‘ . $category->count . ‘)’, $category );
is already in the child theme folder under woocommerce/content-product_cat.php (i copied the entire code of the content-product_cat.php file in comment above and you can see the line of code you’re telling me to add is already in there).
and the numbers still show? Have you tried this code with woocoomerce 3.3 or latest legenda theme update? It doesn’t work.
Oops I replied to the other link forum here’s what I wrote:
I copied the folder into my child theme under a woo commerce folder I already previously had in my child theme. However when copy pasting the code at the bottom of content-product_cat.php and saving it it would just show those words on my front end shop page and didn’t hide the count it did not work.
I noticed in the php folder the code you’re telling me to add into the file already exists, as you can see below I copy pasted the entire code from the folder below and the code already exists in there:
<?php
/**
* The template for displaying product category thumbnails within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product_cat.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.6.1
*/
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
global $woocommerce_loop;
// Store loop count we’re currently on
if ( empty( $woocommerce_loop[‘loop’] ) )
$woocommerce_loop[‘loop’] = 0;
// Store column count for displaying the grid
if ( empty( $woocommerce_loop[‘columns’] ) )
$woocommerce_loop[‘columns’] = apply_filters( ‘loop_shop_columns’, 4 );
// Increase loop count
$woocommerce_loop[‘loop’]++;
if ( etheme_get_option( ‘product_page_image_width’ ) != ” && etheme_get_option( ‘product_page_image_height’ ) != ” ) {
$image_size = array();
$image_size[] = etheme_get_option(‘product_page_image_width’);
$image_size[] = etheme_get_option(‘product_page_image_height’);
} else {
$image_size = apply_filters( ‘single_product_large_thumbnail_size’, ‘shop_catalog’ );
}
?>
<div class=”span4 product-category <?php
if ( ( $woocommerce_loop[‘loop’] – 1 ) % $woocommerce_loop[‘columns’] == 0 || $woocommerce_loop[‘columns’] == 1)
echo ‘ first’;
if ( $woocommerce_loop[‘loop’] % $woocommerce_loop[‘columns’] == 0 )
echo ‘ last’;
?>”>
<?php do_action( ‘woocommerce_before_subcategory’, $category ); ?>
<div class=”mask-container”>
<?php
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, ‘thumbnail_id’, true );
if ( $thumbnail_id ) {
$image = wp_get_attachment_image_url( $thumbnail_id, $image_size );
echo ‘name . ‘” />’;
} else {
echo wc_placeholder_img( $image_size );
}
?>
<div class=”block-mask”>
<div class=”mask-content”>
slug, ‘product_cat’ ); ?>”><i class=”icon-link”></i>
</div>
</div>
</div>
slug, ‘product_cat’ ); ?>”><h5>
<?php
echo $category->name;
if ( $category->count > 0 )
echo apply_filters( ‘woocommerce_subcategory_count_html’, ‘ (‘ . $category->count . ‘)’, $category );
?>
</h5>
<?php
/**
* woocommerce_after_subcategory_title hook
*/
do_action( ‘woocommerce_after_subcategory_title’, $category );
?>
<?php do_action( ‘woocommerce_after_subcategory’, $category ); ?>
</div>
I copied the folder into my child theme under a woo commerce folder I already previously had in my child theme. However when copy pasting the code at the bottom of content-product_cat.php and saving it it would just show those words on my front end shop page and didn’t hide the count it did not work.
I noticed in the php folder the code you’re telling me to add into the file already exists, as you can see below I copy pasted the entire code from the folder below and the code already exists in there:
<?php
/**
* The template for displaying product category thumbnails within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product_cat.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.6.1
*/
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
global $woocommerce_loop;
// Store loop count we’re currently on
if ( empty( $woocommerce_loop[‘loop’] ) )
$woocommerce_loop[‘loop’] = 0;
// Store column count for displaying the grid
if ( empty( $woocommerce_loop[‘columns’] ) )
$woocommerce_loop[‘columns’] = apply_filters( ‘loop_shop_columns’, 4 );
// Increase loop count
$woocommerce_loop[‘loop’]++;
if ( etheme_get_option( ‘product_page_image_width’ ) != ” && etheme_get_option( ‘product_page_image_height’ ) != ” ) {
$image_size = array();
$image_size[] = etheme_get_option(‘product_page_image_width’);
$image_size[] = etheme_get_option(‘product_page_image_height’);
} else {
$image_size = apply_filters( ‘single_product_large_thumbnail_size’, ‘shop_catalog’ );
}
?>
<div class=”span4 product-category <?php
if ( ( $woocommerce_loop[‘loop’] – 1 ) % $woocommerce_loop[‘columns’] == 0 || $woocommerce_loop[‘columns’] == 1)
echo ‘ first’;
if ( $woocommerce_loop[‘loop’] % $woocommerce_loop[‘columns’] == 0 )
echo ‘ last’;
?>”>
<?php do_action( ‘woocommerce_before_subcategory’, $category ); ?>
<div class=”mask-container”>
<?php
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, ‘thumbnail_id’, true );
if ( $thumbnail_id ) {
$image = wp_get_attachment_image_url( $thumbnail_id, $image_size );
echo ‘name . ‘” />’;
} else {
echo wc_placeholder_img( $image_size );
}
?>
<div class=”block-mask”>
<div class=”mask-content”>
slug, ‘product_cat’ ); ?>”><i class=”icon-link”></i>
</div>
</div>
</div>
slug, ‘product_cat’ ); ?>”><h5>
<?php
echo $category->name;
if ( $category->count > 0 )
echo apply_filters( ‘woocommerce_subcategory_count_html’, ‘ (‘ . $category->count . ‘)’, $category );
?>
</h5>
<?php
/**
* woocommerce_after_subcategory_title hook
*/
do_action( ‘woocommerce_after_subcategory_title’, $category );
?>
<?php do_action( ‘woocommerce_after_subcategory’, $category ); ?>
</div>
I have a child theme. To make the changes in my child theme can/should I copy the wp-content/themes/legenda/woocommerce/content-product_cat.php file and put it into my child theme folder? Then in my child theme folder make the changes in the content-product_cat.php file?
Please tell me the steps.
Thank you.
I went to theme options, ajax search, and turned on search by product to fix the issue, this was not in a previous version I had. Thank you.
I have updated everything to the latest versions.
However my search at the top of my page isn’t working properly when I type in models of the products I have listed it says ‘no posts were found’
Please help.
Thank you
I have updated everything except I don’t have a update for WPBakery Visual Composer that came with legenda theme. Can you please update?
Thank you.
I’m having my hosting provider back up a file I created back in august of 2015 due to all the issues I’m facing and the malware.
Please disregard above, but I will be updating the theme and plugins etc..and the same thing may happen like above can you keep this open until I’ve updated everything without a problem please?
Thank you.
I forgot to include these credentials in private
Never mind I fixed it by deleted the woocommerce file and re uploading it from the new theme file. Thanks.
I don’t notice the issue anymore either. Thank you.
Sorry about that, please try again I updated wordpress credentials in private content.
Thanks.
Hello,
So I noticed the same problem magically appear again on homepage today on my twitter widget:
Warning: Invalid argument supplied for foreach() in /home4/arahmati/public_html/shop/wp-content/themes/legenda/framework/theme-functions.php on line 4284
The only thing I’ve tweaked on the site was the pop up promo appearing again not sure if that caused anything.
Can someone please help with it and out the problem again. Thank you.
Hi Robert I saw it’s working fine now on all browsers and mobile. I’m not sure if you guys did anything or it magically fixed itself?
Thank you!
Please Note: When logged into admin page it works fine but not on the main end when logged out.
Hi Robert,
No it’s not solved I still see the same warning after clearing my browser. It only appears on the homepage.
Warning: Invalid argument supplied for foreach() in /home4/arahmati/public_html/shop/wp-content/themes/legenda/framework/theme-functions.php on line 4284
Here you go Brian. Thank You.
Delete cache working properly now as well.
Thank you team.
I forgot to activate wishlist plugin it’s now working after activating it sorry for confusion. So add to cart and wishlist are functioning properly now 🙂
The delete cache isn’t working as it gives me the fatal error.
Thanks.