I want to enable a promo-code input box for the Shopp plugin on wordpress.
The documentation says that to get the promo box to show up I need to add the following PHP to the template file:
<?php shopp('cart','promo-code'); ?>
I am new to the wordpress CMS and do not know which template file this this should be added to / where to look. If anyone has done this I would really appreciate the details of where to add this PHP to enable the feature. All the tutorials focus on creating the promotions in the cpanel but do not cover turning on the promo input box with PHP.
Thank you.
This is a Theme API tag that is usually added to the shopping cart template file. When custom templates are setup in your theme the file is located somewheres around wp-content/themes/yourtheme/shopp/cart.php. Note that yourtheme represents the directory name of your active WordPress theme files.
Shopp has starter templates built in that you can copy to your theme files. Editing the template files in the Shopp plugin is not recommended because you will lose your changes with each upgrade.
You can copy the files from Shopp to your theme yourself, or you can use the built-in system for copying them. More information about these templates and how to install them into your theme for customization can be found in the Shopp User Guide documentation in the Theme Templates article.
Related
I am working on a new project on WordPress.
I am developing a new website for a client based on their actual site (developed by an other team).
So, I decided to create a new WordPress theme and to use the existing content (client's request).
However, this supposes to reuse the custom plugins, in order to not re upload the pictures and the articles by hand.
I would like to include the custom plugins into the new theme. However, the plugins folder is outside the theme folder. So I was wondering if you have an idea on how I could transfer the code of a custom plugin into the new theme.
Thank you in advance.
What custom plugins are being used to handle pictures and articles? Uploaded files should go to /wp-content/uploads and all data is stored in the database. Removing the plugins might make the data inaccessible, but it shouldn't disappear.
Why are you moving functions from plugins to a theme? Or are these plugins inside of the /wp-content/themes/ folder? The way you handle the two cases is very different.
If you need to copy certain functions into a theme, you can move them into a functions.php file (or a functions.php file that calls to other files in that directory) in a child theme. The WordPress Codex has much better documentation on child themes than I could ever outline here. Placing the functions into your main theme is a permanent change and is not recommended when you're dealing with functions that are better-suited to plugins.
If you're copying plugins from one theme into another, you might want to look at plugin dependencies using TGM Plugin Activation.
I've recently purchased a WordPress theme from themeforest, how can I get the actual view or same layout that I've seen on the "Live Preview" page at themeforest. Any help would be appreciated.
When you purchase a theme from Themeforest you also get a documentation download that provides straightforward instructions for using your theme within WordPress. If you did not download the docs then you should do so...
which theme you have purchased ?
You can find mysql database inside the folder import that database in your db and put all the file in wordpress root directory.
This seems to be an answer,
How to add a php file to wordpress theme addition of standard files?
Yet the template option is missing in my WordPress 3.5.1
How to do the same thing now with this currently the latest version of WordPress.
Or could it not be related to the WordPress version and actually has to do with a default setting of the theme not allowing for template choosing? Where could I look up for that in the theme configuration.
WordPress documentation didn't remove the Templates as part of the page attributes
http://en.support.wordpress.com/pages/page-attributes/
So it could be related to the theme's options of not allowing for template choosing, would need to override that setting then maybe but don't know it's location now.
This is nothing to do with Wordpress 3.5.1, the problem must be in your theme. Your current theme probably just doesn't have any additional templates you can use; try some others (like the default theme that came with your Wordpress installation, which is probably TwentyTwelve if you're running 3.5.1) and seeing if the template menu appears.
Those templates are for (Wordpress terminology) pages, not posts. Posts do not have the "Page attributes" box, only pages.
This plugin appears to expand that functionality to posts.
I have doubt in using the wordpress theme. I had downloaded a wordpress theme for my website from wordpress.org. I need to know how do i test it. The theme name is "pagelines". When i run it on my server it shows me webpage not found. How will i be able to test it out.
Please help....
First of all you need to unzip the theme file you have downloaded and place in your themes folder then go to admin panel
admin ->appearance -> Themes
there the themes will be displayed
you can view the new theme here and activate the theme
now your theme will be enabled on your wordpress, you can check your home page
Have you read the Wordpress' Using Themes guide? Read this guide first http://codex.wordpress.org/Using_Themes. It will clarify a lot of your questions.
How to remove WooCommerce plugin dependency from Wootique theme? When I activate Wootique theme and click on "visit site" in wordpress it shows a message "WooCommerce must be installed".
actually, You can't!
you must have to install "WooCommerce plugin", if you are using this Theme,
because the theme's source code is referring to WooCommerce plugin's functionality for displaying category wise products.
see here for details
hope this will help you
There should be a php if ( function_exists('woo-something') call in the functions.php file. Look into it, that's how wordpress themes check for installed products.
You may resolve it easily or may have to do some serious editing, I can't say since I don't have the theme.