Posts by ThemeChills

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Hi! You can use my tool to generate images automatically. I posted in other thread. Check it here
Regards,
Haintheme

Thanks mate, appreciate the tip.

Leo

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

I guess it’s done manually? Anyone else have any insights on this?

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Hi guys,

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,

Leo

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Thanks to the both of you, really appreciate it.

Leo

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Hi everyone,

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.

Leo

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Awesome achievement, well done!

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

Thanks for the update, appreciate it (I’m on day 5…)

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

get_option(‘sidebars_widgets’) will give you associative array of sidebars and their widgets so you can check if widget is active or not.

For the template you can either use is_page_template() or get_page_template_slug()

Cheers o7

Thanks bud, appreciate your help.

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

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.

Thanks,

Leo

213 posts
  • Trendsetter
  • Author Level 6
  • 6 Years of Membership
  • Affiliate Level 2
+4 more
ThemeChills
says

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 so
wp_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.

Leo

by
by
by
by
by
by