Tag Info

New answers tagged

0

The problem is not version_compare, the problem is that register_activation_hook is just a shortcut for add_action( 'activate_' . $file, $function ); where $file is plugin_basename( __FILE__ ); and __FILE__ is your main plugin file absolute path. So, what your code does is to call dw_deactivate_theme_options() when the action 'activate_' . $plugin is ...


0

We just pushed code to the repo that does this for you provided the attachment ID is the same. ;) Redux 3.2 will resolve this.


1

I could take advantage of get_template_part( $slug, $name ) and use it like: get_template_part( 'theme-options', get_current_blog_id() ); Say we are on blog_id 5, if theme-options-5.php exists it will be loaded. If not theme-options.php will be loaded as a fallback. Please note that get_template_part is using require.


2

That's a Shortcode. It may be possible to find the function that renders that shortcode and copy/paste it into your own plugin, making it theme-independent, however, how easy that will be to do depends on how the shortcode works- if it depends on additional php functions, JavaScript, and CSS embedded within the theme.


1

Try removing (function($){ from the beginning and })(jQuery); from the end. And change jQuery(document).ready(function() to jQuery(document).ready(function($)


0

I contacted GoDaddy support and they advised me to login to the hosting manager and make the edits to the functions.php file from there. That way it worked ! Though i still couldn't figure out why i was getting that problem when i tried to edit it from within my WordPress dashboard, but anyways the problem is solved now. Thank you @ialocin and @s_ha_dum ...



Top 50 recent answers are included