First a line about me: I have skills in html & css but no skills in php. I am new to wordpress, but I learned already to build a wordpress theme for my own from scratch. If I had a problem, I always found a solution on the internet. Now I have a problem and after searching for hours, I haven’t found any helpful tips.
I want to make a website with a little webshop inside, only one product for now. I did choose WooCommerce because it is popular and i thought maybe it works like wordpress. Now I have the problem that I have no idea how to design my site. I am sitting in front of countless files with code i do not understand. I want something similar to thie website below. Right half with an image and left half with product title, description and “add to cart” button. No category, no filters, no shop overview. Just a front page with one product.
Is it possible to do the same like designing a wordpress theme like <h2><insert title code></h2> then <p><insert product description code></p> or does WooCommerce works completely different? All tutorials I found were not helpful for me.
http://ilyaskin.com/mono/
There is a lot of question here then I will answer to one of these and I think it's better to create a new discussion for each other question.
If you to have only a product, you can start to put a shortcode to display the product details with button "add to cart" :
https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-12
The next step is to customise the display and for that, the first question is to know if the theme can be updated. If yes, you have to start with a child theme :
https://developer.wordpress.org/themes/advanced-topics/child-themes/
I was trying to get rid of the Welcome section on the front page of a WooCommerce site I am building. The site is using the Storefront theme.
I thought the way to do it was to delete the Welcome page from the Pages section of WordPress. However, as soon as I did that, the entire front page of the store is gone and it is back to what seems like a regular WordPress.
Using "Create default WooCommerce pages" feature of WooCommerce does not seem to work as it neither fixes the display of the front page nor creates another Welcome page.
I have several questions.
1. What went front?
2. How can I fix it, so the store displays again.
3. How can I get rid of the Welcome section on the front page without blasting the entire page off the site?
Any advice is appreciated.
P.S. I should mention that I originally moved the Welcome page to trash. I then saw that it broke the site. In turn, I attempted to restore it, but it didnt fix the issue. I then deleted the page permanently in hopes of recreating it with the WooCommerce functionality. The latter didnt work.
You need to use the WordPress theme Customizer
under front page you have the option to choose a page your blog as a front page, here you just need to select the page that you deleted and then restored
this link may be of some use to you... https://atlantisthemes.com/change-storefront-homepage-layout/
I'm trying to get on developing websites on Wordpress for easier management for the future admins.
I have created a bootstrap theme on my own. I got all the pages smoothly into Wordpress and are now easy to edit. However I have this one page which has tables, buttons, glyphicons and once I click the "graphic" view while editing the page it breaks it.
So I was thinking that that won't do and I decided to create a new plugin to fix this problem. A simple plugin which has few textboxes on the admin settings page and then just prints the texts on the page where I want them to go.
However I tried to look for tutorials and I'm just overwhelmed. I have gotten my plugin to work somewhat. It has a admin setup page and it can print customized text to a page where my shortcode is. Thanks to this post!
However, I still don't know what to do from this point on.
My question is: Could you help me by giving me an example code to get the same kind of textbox to my plugin's admin page as I have while editing/adding new pages (with graphic view) which saves the text and displays it on a page.
I have no idea if this is the way to go but I can't think of anything else right now. I was thinking that the settings page has a couple of textboxes and the text in them goes where I want it to go on a page. So the future admin won't see the unnecessary html code and therefore can't break it.
I would abandon the "plugin" idea. There are several more elegant ways to do this besides writing a plugin.
By far the easiest to implement is this:
1. Store the html in a "Custom Field" https://codex.wordpress.org/Custom_Fields
2. Display the contents in your page (or post) template https://codex.wordpress.org/Custom_Fields#Displaying_Custom_Fields
Can anyone list the main causes for a widget i developed doesn't show up in the New Instance Widget section of Magento CMS?
I followed this tutorial, but it doesnt show up as it's supposed to, actually it doesnt show up at all.
If you think you need to see my code please just tell me.
Happy programming!
If you have done the Magento security upgrades , you might want to white-list the widget so CMS pages can access it.
First of all, thank you for bothering to read this topic, I feel like this is going to be a long and painful one, as I'm trying for about 7-8 hours now to get what the hell is happening with this plugin.
I am a developer, so I know what I'm doing, and this isn't my first page I did using WordPress.
The problem started when I started reading up on woocommerce's documentations which are widely known as quite poorly documented.
Since I made a custom theme, which I have had before already, I've decided to use the overwrite method as well as the woocommerce.php method for customizing the plugin to fit the site as I'd like it to.
The woocommerce_content(); is customized now, and nicely working as well as the product pages (single product page) which are customized as well, and working.
As soon as I try to access the account features, nothing happens. I've tried adding echoes for debugging purposes to the my-account.php, but it does not echo what I write, so I assume the shortcode cannot load for some reason, because it does not reach the my-account.php page as it should, and it points somewhere else perhaps?
Then I've noticed that when I click the "Add to cart" button, it appends the element with a "View cart" button as well, so me thinking this is working, I left it as it is. For like 5 seconds, because right after a page refresh, or navigating to another page, the content of the cart gets empties, I cannot even see the cart page, nor the login page, nor the create account page, or anything in fact.
Everything is working that is inside my "wp-content\themes\mytheme\woocommerce" folder, but nothing else that is inside my
"wp-content\themes\mytheme\woocommerce\any-subfolder"
The woocommerce system status does not show any error, nor the PHP error log, nor anything else.
I have a VERY long list of "Overrides (WooCommerce):" which I don't want to paste here because of reasons.
The only success when I was able to at least get something out from the plugin, is when I used the wordpress function "do_shortcode();" and added the myaccount or cart shortcode myself to a page, THAT worked, and printed it out, however I'd like to use the original method, so the code won't get too complex for later on.
Every other site is working fine, I'm currently running this on localhost, cookies working, sessions working, I log everything yet there is no error, mod_rewrite working correctly, yet I am stuck.
Looking for a patient gentleman to help me on this painful day...
EDIT:
Added "[woocommerce_my_account]" to the "shop" page which page's file is the "woocommerce.php" has actually loaded up the correct my-account.php from "themeroot/woocommerce/myaccount/my-account.php" It echoes out my debug messages as well, so the shortcodes should be working, perhaps this isn't just a woocommerce related issue?
EDIT2:
After fiddling around a LOT, I've come to understand that the wrapper hook it is supposed to do (div id=content and div id=main) does NOT get hooked in it, perhaps it is just a small problem, since I've removed them with remove_action, and the "Shop" page still displayed properly... I have NO idea what is going on with this plugin, but I don't have the luxury of time to fiddle around with it... This is such a pain...
EDIT3:
The plugin works perfectly on any other basic theme, so there is something up with my custom theme. Even after hours of searching the differences between the default theme (twenty-fifteen) and mine, I have not found the solution.
I have solved the problem... It is of course entirely my fault, the problem is just that woocommerce has so poor documentation, I did not really thought about this.
For anyone out there creating custom themes for WordPress, please note that in order for your page.php to actually use the shortcode of the page you have navigated on, you must print out the content of the page (the_content();).
This was my solution for my mistake that took many many hours...