Forum Replies Created
-
AuthorPosts
-
Hi Elliot,
thanks for the snippets. I hid it though css at the moment too, and figured when I finally get around to setting the shop up then I can just remove the css.
Of course yours is much better!
Cheers and Thanks,
Gary
Hi Elliott,
I deactivated all of the plugins (except WPML) and it still did it, then I deactivated woocommerce and of course then it didnt show the cart anymore when the browser window was less than 768 px.
As soon as I reactivated woocommerce it showed the cart again as soon as the browser window width went below 768. The thing is that I think that enfold or woocommerce shouldnt be even generating the html for the cart until the cart page is published.
Do you perhaps have a small snippet for me or could you point me in the right direction where I may be able to prevent the code from being generated until the cart page is published?
Cheers and Thanks!
Gary
Hi Elliott,
It hasn’t anything to do with whether there is anything in the cart. I was showing the website to a friend and he wanted to check to see if the site was responsive or if I had any problems with the responsive view so I called it up on his mobile and the first thing I noticed was the shopping cart icon as shown in the screenshot. He was not logged in at the time, as I currently don’t have any possibility to log in (eg none of the shop pages are published)
You can test it yourself @ http://www.adventure-continued.com
and then reduce the size of the browser window until it switches over for mobile…
Cheers,
Gary
Hi Josue,
I’ve looked at the code for the rss/twitter widget and what I dont undertand is that if one of them are empty (eg no url or link) then it shouldn’t show the empty one.
In my case I only want to have the RSS icon show so I left the twitter link empty.
if(isset($twitter)) { $link = 'http://twitter.com/'.$twitter.'/'; $before = apply_filters('avf_social_widget', "", 'twitter'); $output .= "<a href='$link' class='asc_twitter $addClass'>{$before}<strong class='asc_count'>".__('Follow','avia_framework')."</strong><span>".__('on Twitter','avia_framework')."</span></a>"; }
shouldnt isset($twitter) return false if I haven’t added a URL in the twitter box?
I could just throw out the twitter code all together but wouldnt that just be overwritten the next time I update the theme?
- This reply was modified 9 years, 9 months ago by garyrgi.
-
AuthorPosts