bondies
Forum Replies Created
-
Forum: Plugins
In reply to: How to add a ew contact form with woocommerce in wordpress?You can insert a contact form using the shortcodes supplied with Woo products –
(http://docs.woothemes.com/document/shortcodes/)[contact_form]Forum: Themes and Templates
In reply to: Extracting text from a postYou could extract the required sections of text with a regular expression (See something like this for a tutorial). The content of the post can be addressed with the string
post_contentfrom the<?php get_post( $id, $output, $filter ); ?>functionForum: Plugins
In reply to: [WooCommerce] woocommerce for downloadable productsThat is a good question…
I can only guess that is what the force downloads option of the software is for, this way in theory your raw links shouldn’t be exposed, yes even with this option if somebody knows the architecture of the site and has some knowledge of how it works they can easily go searching on their own…
Forum: Plugins
In reply to: [WooCommerce] Overwrite / add to function download pdf productI have been doing some further digging in the source.
woocommerce_payment_completeShould only activate once the payment has been accepted as correct, could this be a better option?
Forum: Plugins
In reply to: [WooCommerce] woocommerce for downloadable productsYou have two options:
- You can put a blank file named index.html / or index.php in that directory.
Some WordPress Plugins and the Core use an index.php file with just<?php // Silence is golden.in them
- A more secure way is to put a file named .htaccess in the
/wp-content/uploads/directory consisting of only this line:
Options -indexes
This way is all sub-directories of this directory will also get their directory listings turned off at once.
With the .htaccess option instead of giving your users a listing they will get a 403: Forbidden Error
Forum: Fixing WordPress
In reply to: Please HELP! The page isn't redirecting properly.In my experience redirects are normally setup with the
.htaccessfile. The permalinks settings in WordPress work with the .htaccess file.When I exported a site I had running locally, and then imported it into a live environment I had a similar issue, the redirects in my case were causing 404 errors.
Have you tried to make a backup of your
.htaccessfile then set up the permalinks again, if this solves your problem you will just need to copy any additional settings from your old backed up version of the .htacccess file to get it all back to normal.Forum: Themes and Templates
In reply to: need custom headerMike,
Why not select a theme that has the basic layout you want & is something that you like the look of visually. Then create a child theme (http://codex.wordpress.org/Child_Themes) based on it.
When you say
a banner image which will be a slideshow of images
I am assuming you mean something like
jQuery Cycle(http://jquery.malsup.com/cycle/). If that is the case as getting jQuery to work in WordPress is far from impossible but can be tricky I would go for a theme that already has that in it, and then just extend it to have the static top header picture you are looking for.HTML & CSS wouldn’t be overly difficult, just copy the style.css file and the header.php file from the original theme into a new folder within
/wp-content/themes/and you’ll be set.Forum: Plugins
In reply to: [WooCommerce] Overwrite / add to function download pdf productHi Jesper,
I am trying to extend the download_product functionality also.
Looking through the documentation I think the best way to do this is by building a plugin & creating a function that uses the hook
woocommerce_download_product(as listed inwoocommerce-functions.php)The trigger for this is
// Trigger action do_action( 'woocommerce_download_product', $email, $order_key, $product_id, $user_id, $download_id, $order_id );I just need to work out how to get this to work with my plugin I am currently using
add_action('woocommerce_download_product', array('woocommerce_myluginclass', 'mypluginfunction'));but it doesn’t seem to do anything.I suspect this will be depending on the options set for the File Download Method
If you make any progress please let me know.
Forum: Themes and Templates
In reply to: Nav Menu and Header Logo on same line?#header div, #header nav { float: left; width: 50%; } #slideshow_con { clear: both; }To get them aligned to the bottom of divs you will need to play either play with the padding of the nav or change the nav to
position: relative;and change the top to get the desired results. - You can put a blank file named index.html / or index.php in that directory.