I guess it’s done manually? Anyone else have any insights on this?
Perhaps this is a silly question, but I wanted to know how you go about creating your demo content which you include for sale with your themes.
What I’m specifically referring to are the images.
As you know, we do not include images within our main download. That being said, a customer essentially can use the same images by selecting the checkbox when they’re importing the demo content file.
The question is, how do you add placeholder images without affecting any kind of licensing requirements? Do you manually go through your XML file and remove all these references to use a service such as placehold.it, other?
Curious to know how you work with this scenario.
Thanks to the both of you, really appreciate it.
I received some feedback from the Quality Team indicating the below:
“The calls to get_theme_mod() need to be escaped before output”
What would be the correct/right way of doing this?
Here is one example of what I currently have:
<h2><?php echo get_theme_mod( 'theme_text_one' ); ?></h2> <h3><?php echo get_theme_mod( 'theme_text_one' ); ?></h3>
I’d appreciate your help, thanks.
Awesome achievement, well done!
Thanks for the update, appreciate it (I’m on day 5…)
So I ended up going with a hybrid approach really, I specified the conditions within the functions.php file only and referenced the widget ID which seemed to do the trick.
Hello ThemeChills, What you can do is, firstly register js on functions.php file ( or where your actions hook is located ),wp_register_script( script-js', get_template_directory_uri() . '/js/lib/script.min.js', array(), '', true );then after this you can enqueue the script wherever you want, for your case it’s on page template, so on page template you can do sowp_enqueue_script( 'script-js' );Thanks
Thanks @CodeScribe, will try your suggestion out. I actually use the scripts within a widget, so I gather the concept would be the same. I’ll report back once I implement, appreciate your help.