47 reputation
114
bio website miller-media.com
location
age
visits member for 3 years, 1 month
seen 2 days ago

Jul
20
comment Creating a blank wp_head() action
So that's what I'm asking. It's not possible to create a completely blank template but still have the wp_head() hooks in your opinion?
Jul
20
comment Creating a blank wp_head() action
The wp_localize_script piece works fine. That's not the issue, those scripts are loading fine on the page. I'm saying that other plugins are loading on the blank page because wp_head() is enqueueing them. I could manually dequeue all of the scripts/styles but we're looking for a solution around that so we don't have to go in for each site and find each and every script being enqueued.
Jul
20
comment Creating a blank wp_head() action
I tried to explain it in the original question. I am using localize_script to pass PHP variables into an enqueue JS file but by using wp_head() it's pulling all sorts of scripts from other plugins into the template. I would like this to be a completely blank page that I can start with from scratch but can pass WordPress variables into the JS because of some connections I need to make.
Jul
20
comment Creating a blank wp_head() action
Right. So what I'm asking is, is there a way to retain all of the wp_head() hooks etc but prevent it from enqueueing any scripts for other plugins on a certain template page? That's what I'm trying to find, I haven't come across anything yet...
Jul
20
comment Creating a blank wp_head() action
@PieterGoosen, I'm just trying to do it on a blank template page for the plugin I'm writing. Basically when I'm trying to do is have the enqueue_script function usable for me but be able to use it on a fresh template page without wp_head() loading all of the other scripts (other ways to accomplish the same thing would be great too). Does that make sense? It doesn't appear that you can have a 'blank' wp_head() on a template?
Jul
20
asked Creating a blank wp_head() action
Jun
12
awarded  Notable Question
May
22
asked Overriding a Child Theme Override with a Plugin (WooCommerce)
May
16
awarded  Popular Question
Apr
24
awarded  Popular Question
Apr
1
asked dbDelta Not Working
Mar
20
awarded  Curious
Oct
10
awarded  Popular Question
Aug
22
awarded  Popular Question
Aug
5
comment Server Variables not recognized in certain posts
@Milo, right. That makes total sense. So then the issue is, can server-side browser detection and W3 Total Cache be used successfully together then? I suppose it's a matter of just resetting the cache entirely?
Aug
5
comment Server Variables not recognized in certain posts
@Milo, but why would that prevent $_SERVER variables from being read? It's as if there are no server variables at all on those posts...
Aug
4
asked Server Variables not recognized in certain posts
Jun
3
revised wp_insert_post does not insert string with apostrophes correctly
added 310 characters in body
Jun
3
asked wp_insert_post does not insert string with apostrophes correctly
Apr
28
comment Pagination on Single Post
Ok so that makes sense but the issue is that the page variables aren't incrementing when the next set of posts are loading. It's starting at '1' but it just keeps repeating the same page in the pagination. Could this be because the qet_query_var('page') is always rendering as 0 (even though we are then altering it to 1)?