Comments (3)
@rpasillas Great question -- I really need to spend some time refactoring this particular repository.
In short, yes. It's possible to have them load on front-end pages on which the widget exists. I can give a really generic response or a particular solution to your problem.
So do you have a single page or a set of pages identified by, say, a category, tag, custom taxonomy, title, or something like that you're looking to target? Or are you just looking to target all front-end pages?
Let me know and I can provide a solution for you.
from wordpress-widget-boilerplate.
I was able to modify the boilerplate to have the scripts load only where I need them. But I panicked when my scripts stopped loading at all on my WP Engine website. The solution was working locally but not on my host so I figured I was doing something wrong, but it was a caching issue on WP Engine.
from wordpress-widget-boilerplate.
Ah, gotcha! If you've got it sorted, then I'll close the ticket but don't hesitate to open it again if you have more issues around it.
from wordpress-widget-boilerplate.
Related Issues (14)
- Localization incomplete HOT 1
- wrong file names for widget style/script register HOT 1
- Color Picker Disappears on widget save HOT 1
- Improve stylesheet imports
- Error 500 on windows servers
- _multiwidget set to 1 HOT 3
- Minor comment fixes HOT 1
- Style and Script only on the widget page HOT 3
- Undefined index HOT 9
- ID class variable? HOT 1
- create_function is deprecated as of PHP 7.2 HOT 12
- use of WP_PLUGIN_URL breaks secure sites HOT 2
- Load File Helper Not Working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-widget-boilerplate.