On my website (www.peoplesarms.com) home page everything is fine. What I can't figure out is that when I go to Contact Us, Cart, My Account, potentially Checkout though it shows the same screen as cart at the moment because no shop items there yet, there is an extra (not useful) menu showing HOME >> CART or HOME >> CONTACT US
I want to get rid of that, but I can't seem to figure out where that is coming from.
All I want there to be is the main menu right under the logo.
Any help will be appreciated.
Thanks.
So in this case the breadcrumbs was coming from the theme. Not sure why it did it that way, but they did. The solution was to alter the css to display: none; on #breadcrumbs id's. The reason it didn't appear to be working was because the hosting service had turned on the cached pages function and wasn't serving the altered css file. I banged my head on that for about 2 hours trying for all my ability to understand why it wasn't working.
It is known as breadcrumbs. You are using online-store theme with kirki customizer plugin with comes up with an option to enable/disable it from backend.
To disable to go to
Appearance > Customize > WooCommerce > Breadcrumbs(uncheck the button)
It should have worked but what I saw maxstore theme does not care about the above steps so you can fallow any of the below methord.
Method 1: Modify the function
Removed all the code inside the function present in wp-content\themes\maxstore\functions.php
function maxstore_breadcrumb() {
return '';
}
Method 2: Comment out the function from template files
You need to comment out maxstore_breadcrumb(); from the below listed 4 PHP file in maxstore theme.
wp-content\themes\maxstore\archive.php
wp-content\themes\maxstore\content-page.php
wp-content\themes\maxstore\content-single.php
wp-content\themes\maxstore\index.php
Please Note: If you 'll upgrade the theme you might have to follow this steps again.
Hope this helps!
Related
First I have contacted the theme developer and even paid for extra support and I am not getting any help. Thanks in advance for any help that you guys can give me
Issue:
When I embed a single product page using the Visual Composer Woocommerce Product Page Element on the home page the theme breaks. I've done this before on an older site using the same theme (Porto theme themeforest) and it worked fine. You can see it here: http://easypayold.wpengine.com/ (enter: UN: demo PW: 26d2d9153c32 to view site)
I am rebuilding the site and I am having the above issue.
I have disabled and activated all plugins to trouble shoot no changes. Then I activated the twentyseventeen them and embedded single product page worked so the issue seems to be from the theme itself.
I have removed the above single product page from the home page so you can see what it should look like then added it to a duplicate page so you can see how it is breaking the page. You can look at the home page to see the way it should look.
Duplicate page:
Name: !Home with Woocommerce embedded product page
URL: http://krankfinance.wpengine.com/home-2-2-2/
Home page the way it should look (with out single product)
http://krankfinance.wpengine.com/
Problems on home page:
1. Full screen rows become boxed
2. Reviews are gone (big issue)
3. The embedded single product page (bottom of home page) is not displaying correctly.
Here you can see the stand alone single product page, the way it should look when embedded on home page:
http://krankfinance.wpengine.com/shop/easy-pay-formula-x-driver/
Thanks in advance. If you need any other info from me please ask.
I fixed the issue (really more of a bandaid) by using an older version of my theme's woocommerce folder and putting it in my child theme. Then i removed the "Responsive Tabs js located porto(my theme)/woocommerce/single-product/tabs/tabs.php
Really want it to work with the current theme's woocommerce though. Still no help from theme developer.
Recently, when I view a page in Wordpress Preview mode, it always loads the default template (theme page.php file) whereas when I look at the published page, it's the right template. I have around 10 different templates for my pages. Just keep in mind that I'm not talking about the theme itself, but the Wordpress template structure. I included three pictures. The admin panel one, shows different templates for my page.As shown, I chose Fixed-Width Clean Page. The second picture shows the page in Preview mode.As you can see it includes a sidebar which is included in the default template but not the one that I chose. And the last picture is the Live view of the website which is correct. As you can see the sidebar doesn't exist. I searched all over the internet and did some suggestions, but none of them work (like saving the permalinks again, changing the theme and changing it back again, etc). The only change that I recently made was upgrading to Wordpress 4.7.4 and blocking access to admin panel by ip using .htaccess file (I removed the .htaccess file, but still no luck). Any suggestions would be appreciated.
OK, after some time I figured out what the problem was. The "WP Subtitle" plugin version 2.9, breaks the preview functionality if you have multiple templates. I report the issue to them as well, but posted the answer if somebody came across the same problem. In order to fix the issue temporarily, i commented out the below line (line 74) on the plugin's main file (wp-subtitle.php):
//add_filter( 'the_preview', array( 'WPSubtitle', 'the_preview' ), 10, 2 );
I have this wierd problem, on opencart 2.xx i have 2 languages and the language switcher is working fine on some and doing nothing on others, added to this language is randomly switching as i go through page.
I have no idea whan can cause this so i cant provide specific section of code.
I discovered that it works fine on pages that have some kind of imput, like login, register, cart, checkout etc.. And not working at all on others, dunno if its related tho.
Also theres this problem, also in header so maybe its corelated, when i add item to cart, go to different page, cart shows 0 until i hover it, after i hover it immediately shows correct number.
Example of page with NOT working switcher: http://corddecker.com/index.php?route=product/category&path=25_29
Example of page with working switcher: http://corddecker.com/index.php?route=account/login
If you can just check that behaviour and give me some idea what can be causing this, would be awesome because i have no idea.
Thank you
I've notice your theme is calling magnificPopup function in this address:
http://corddecker.com/index.php?route=product/category&path=25_29
And jquery.magnific-popup.min.js is not included in your theme.
This caused and error that can affect some of your other codes.
As by default Opencart 2.x comes with a copy of jquery.magnific-popup.min.js try to add this to your header.tpl:
<script type="text/javascript" src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js"></script>
and make sure the file exists on that directory.
I use Elementor page builder on my WordPress site. There is a problem with it - by default it doesn't allow editing WooCoomerce Shop/Products pages. The solution they say is to add to page templates code. I, being a beginner with no idea of coding, cannot figure out which file to add this code to and where in that file. I have been researching and trying to fix this myself for two weeks now, in vain. Please help me achieve this.
Here's what Elementor say: "Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page."
Go to Elementor setting and then check products in post types
Go to Products, click Edit on the product you want to edit, input something (ie. a full stop-sign '.') in the WP Editor, click Update. (See attached screenshot.)
Screenshot
There seems to be a misconception that Elementor can be used to "edit" any content.
For Elementor to work on a "Page" i.e. the post type that uses either the page.php or any theme declared page templates it requires the_content(); function to present in the code.
Issue #1: WooCommerce uses the woocommerce_content(); function to return the content of the shop.
Issue #2: The Shop output does not use the "Page" or Custom Page template - the output is equivalent to the index.php or home.php, neither of which are editable via Elementor.
Unless you are willing to write a pretty sophisticated function to collect all those elements' data and filter them into the_content(); function, there is currently no way of editing such content directly.
I know it's not the solution you are looking for but that is the current state of affairs. Having said that, some of us are working on all sorts of solutions and maybe, just maybe - we'll come up with a way to have this option available soon ;)
For shop page you should go to Elementor setting and then check products in post types.
Because shop page products are not the content but posts it's the solution.
So inlcude products in post types and edit with elmentor, if for some reason you can't see 'edit with elementor' under shop page, then just open shop page and add
/?elementor and it would enable elementor
NO need to add this code in any page follow these instruction.
You just need to clear cache and cookies your browser, Some time website take previous data to show the web page and give this error.
or
if you open your website private mode then login and go to the page by Elementor you will never face this problem.
I am using Woo-commerce for online shopping.
I create some variable products, but when I am going view full page of product it says
Add to Cart is Hidden
I tried forcefully show the "Add to cart" button using display: block in CSS but when I click on that it gives me error
Please choose product options
Also there is no error in developer console
Can anyone know what exactly happened or where I am wrong or is it a script problem?
For anyone else who finds this, the wc-add-to-cart-variation script is loaded by WooCommerce in the footer. So, if it isn't loading your theme either 1. doesn't have wp_footer() (which is rare as even crap themes should have this) or 2. there is a PHP error in the theme templates and the page is not fully loading.
I would suggest checking the latter point. You can view a page's source code. In Chrome just type CTRL+U.
Scroll all the way to the bottom. The last thing you should see is:
</html>
If you don't see this the page didn't load fully, likely do to a fatal PHP error.
You can find out exactly where by enabling WP_DEBUG in your wp-config.php file.
If anything, I'd guess that your theme has some WooCommerce templates that are out of date with respect to the current WooCommerce. This post is old, but this keeps happening as WooCommerce keeps evolving and themes keep packaging templates that they don't even modify.
This issue is probably caused by an outdated single-product/add-to-cart/variable.php template. But if renaming that doesn't solve it, in a pinch you can always disable your theme's entire WooCommerce templates by renaming the WooCommerce folder in your theme to anything else. 99% of the time it will be called woocommerce, but it could be something else.
WooCommerce will now let you know which templates are out of date. This information can be found in the admin under WooCommerce>System Settings.
Another good read would be:
http://develop.woothemes.com/woocommerce/2014/02/solving-common-issues-after-updating-to-woocommerce-2-1/
Did you set a price for your product? If not, the Add to cart button will stay hidden.
add_action('wp_head','add_to_cart_script');
function add_to_cart_script(){
if(is_product()){
wp_enqueue_script('wc-add-to-cart-variation');
}
}
There was Jquery problem add-to-cart-variation.js was not included.
Now its working fine for me...
I managed to display the 'Add to cart' button as follows:
Locate the variable product template file in your theme directory:
templates/single-product/add-to-cart/variable.php
Add this code to the end of that file:
<script>
$(window).load(function(){
$(".single_variation_wrap").show();
$(".single_add_to_cart_button").click(function(){
if($("#pa_size").val() == ''){
alert('Please select size');
return false;
}
});
});
This is what I used. Maybe you have other fields and/or classes/ids. Just play around, I hope it will work for you.