theweedwizard
Forum Replies Created
-
I would liek to add a collapsible div, in this case a javascript notification bar, that says a coupon code, ie, “Enter Coupon Code MENAKA2016 for 1000% off all items”.
My CSS:
#notify { position:relative; width:100%; background-color:orange; height:50px; color:white; display:none; }
- This reply was modified 8 years, 5 months ago by theweedwizard.
I have it how you requested currently. Still does to seem to hold.
Forum: Plugins
In reply to: [WooCommerce] Insert Advertisement After [X] Products in Search ResultsThis is what i got so far
add_filter( 'the_content', 'insert_advertisment' ); function insert_advertisment( $content ) { $insert_after = 3; $ad_code = 'your ad script goes here'; if ( is_product_search_form() && ! is_admin() ) { return insert_after_paragraph( $ad_code, $insert_after, $content ); } return $content; } function insert_after_paragraph( $item_to_insert, $paragraph_number, $content ) { $closing_p_tag = '</li>'; $paragraphs = explode( $closing_p_tag, $content ); foreach ( $paragraphs as $index => $paragraph ) { if ( trim( $paragraph ) ) { $paragraphs[$index] .= $closing_p_tag; } if ( $paragraph_number == $index + 1 ) { $paragraphs[$index] .= $item_to_insert; } } return implode( '', $paragraphs ); }
- This reply was modified 8 years, 5 months ago by theweedwizard.
I tried that first. It doesn’t make a difference.
Hey Menaka,
Thanks for the help. Unfortunately, the snippet doesn’t work.
https://moneroapparel.com if you woudl liek to see
Forum: Plugins
In reply to: [WooCommerce] Custom Attribute Value FunctionI got to this point… Copy and pasted from: https://wordpress.stackexchange.com/posts/238656
I would like to generate a value for a WooCommerce product attribute, in this case
spd
(Speed per Dollar). The$speed
is static and theprice
changes from time to time. I would like the value of thespd
attribute to change according to the$price
automatically.add_filter( 'woocommerce_attribute', 'SPD'); function SPD(){ global $product; $id = $product->id; $speed = $product->id , 'speed'; $price = $product->price; $spd = ('$speed' / '$price'); return $product->id , 'spd' = $spd }
This is what i have so far, but It’s been a while since i wooked with hooks and functions for wordpress. any help is appreciated.
- This reply was modified 8 years, 6 months ago by theweedwizard.
Forum: Fixing WordPress
In reply to: Website Running Incredibly SlowIn case anyone is wondering, When running a multisite, you have to edit the domain information in the database using phpMyAdmin or equivalent.
Forum: Fixing WordPress
In reply to: Website Running Incredibly Slowthe multisite itself has that domain, thats the only time it has been entered
Forum: Fixing WordPress
In reply to: Website Running Incredibly Slowhow
Forum: Fixing WordPress
In reply to: Website Running Incredibly Slowhttps://i.imgur.com/uuWAb5G.png
https://i.imgur.com/uuWAb5G.pngThese are my pingdom results. Someone on stacks-overflow recommended i change the call from 10.0.0.5 to the actual public domain. I’d like to use the domain i have designated for the site, but I’m not sure how to switch it in WP. I currently run a multisite.
Forum: Themes and Templates
In reply to: [Theme: Twenty Fourteen] How to Add Banner Adsto center the ad script in header.php, add your script under
<div class="header-main">
.Forum: Themes and Templates
In reply to: [Theme: Twenty Fourteen] How to Add Banner Adsdanielwp, nice site dude!
was this ever followed up on? i’d like to add an ad banner much like the one on futbolpulse.com. I understand how to edit the child header.php file, i just am not sure what to put in it.
wp_rss_multi_event_feedtopost
None 2014-08-08 14:02:17 (9 seconds) 1 minute
wp_rss_multi_event
None 2014-08-08 14:03:00 (52 seconds) 1 minuteThe “none” refers to arguments assigned to the cron.
Time and date is of last cron run.
1 minute is the interval. Whenever i update the database, it reverts back to 10minutes for the ‘_feedtopost
‘Forum: Plugins
In reply to: [WP RSS Multi Importer] Date – Time Zone Is OffSo what should i do? all my other times zones in wordpress are being displayed correctly. I also use multiple different computers with multiple different browsers to develop. I’m not exactly sure how the browser is coming into play here.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Date – Time Zone Is OffSorry it’s taking me so long and thank you for being so responsive and helpful. I need a valid email to give you access to my multisite. I will use your portal and give you my email if you would like to post it there instead.