dl292
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Theme for a multisiteHmm. I think Ive found a solution. Its a bit heavy-handed, but should do the job.
Recent versions of WP have specific hooks for scenarios such as this, but it relies on themes having those hook in their header/footer files. (A random check shows that even the latest versions of themes Ive selected dont have these hooks).
So, my solution is to use WP’s wp_footer() hook (which any self-respecting theme would have) and use jquery to prepend/append html code to the body tag.
The code if youre interested is:
// Prepend/append code to body tag. add_action( 'wp_footer', 'body_code' ); function body_code() { $code = '<script>(function($){$("body").prepend("<p>Opening body</p>");$("body").append("<p>Closing body</p>");})(jQuery);</script>'; echo $code; }
Do you see any downsides to this?
Is it possible to add this to a Multisite functions.php so it cascades to all minisites?
Thanks
Forum: Networking WordPress
In reply to: Theme for a multisiteThanks @itsjustdj . My question was worded very poorly! ??
What I meant to say/ask was:
We want the ability for users to create their own sites using a good selection of themes that will be preinstalled on our WPMS. And even for the user to add their own theme.
However, all preinstalled themes AND any new themes should have consistent branding across the top and bottom.
My question: Is there a way this can be achieved without having to manually edit each themes’ header/footer files?
Perhaps: in the core WPMS files there is a functions.php that could inject some simple html at the beginning and ending of the <body> tag of every theme used in our WPMS installation?
Thanks
Forum: Plugins
In reply to: [WooCommerce] SQL to pull products from dbExcellent – works like a charm, thanks!
Forum: Plugins
In reply to: [WooCommerce] Product recommendationsYes, it would need some custom SQL to pull out all the products which are tagged with the current logged in user’s id.
Thats the bit which has me stuck. ??Forum: Plugins
In reply to: [WooCommerce] Product recommendationsInteresting Niels, thanks, I didnt know this feature was available in Woocommerce!
Perhaps, using this feature, the client can create a tag for a specific client. Then apply that tag to the relevant products.
But how to display these products in the User’s account? The code would have to:
– get the current User ID that is logged in
– display the products that have been tagged with that User’s IDWhat do you think?
Forum: Plugins
In reply to: [WooCommerce] Product recommendationsThanks Niels, I did look at your plugin, but I dont think it will do what I need. ?? Perhaps when the site gets bigger Ill buy it in the future.
Ah great, thanks Nicola. I thought I remember reading somewhere this was possible.
Forum: Fixing WordPress
In reply to: Plugins for an ecommerce florist siteGreat – thanks!
Forum: Plugins
In reply to: [Contact Form 7] All emails going into same message thread…Great – thanks Darren!
Forum: Plugins
In reply to: [Contact Form 7] All emails going into same message thread…To clarify – are you saying using
[your-name] <[your-email]>
in my form settings forces them to come through in individual emails?I might add a non-gmail address as a BCC and see next time it happens whether it only happened in Gmail. I really dont want to have to change to unthreaded emails in Gmail as I find it so useful.
Ive just noticed that the OP mentioned Flamingo. I didnt know what this was until I just googled it – its Contact Forms 7’s plugin to store submitted emails in the DB. This means if Gmail does stop playing ball then atleast you wont have lost any emails. (But then you probably knew that already). ??
Forum: Plugins
In reply to: [Contact Form 7] All emails going into same message thread…Cheers darren. Interestingly Im using Gmail too. Maybe its more of a gamil issue than a Contact Form 7 issue. But – like I say – its weird that form submission sent hours apart still end up in the same thread. :/ Ive google the hell out of this and cant find any resolution. Surely we cant be the only ones experiencing this.
Forum: Plugins
In reply to: [Contact Form 7] All emails going into same message thread…Did you find a solution to this? What mail client are you using? (GMail etc..).
It doesnt happen every time, but fairly often multiple form submissions come through in one email message! These messages can be sent 7 hours apart from each other and still come through in one email thread – so its not like the form has been submitted at the same time by multiple users.
Any advice would be muchly appreciated!
Thanks