Is it possible to load content/sections dynamically?

@Prasant, you previously shared two articles about using conditionals - I am comfortable with the concept, but one thing I am not sure about is how they interact with the enqueuing. If I have more than one custom js script, do I add them individually, or within the same function(seperated by commas)? And then how would I use the conditional - is it on the add_action? Would I wrap that in a conditional?

Right now I would say it seems like I’d need to create a second function, say wp_add_second_script(), and reference the second script inside this, and then have the conditional wrapped around a second add_action function. Is this correct?

Hi @doughballs

This tutorial has a great example explaining doing that:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.