Plugin and javascript placement

You can take advantage of html5 data-* attributes. In your shortcode function, output a class name and the data attributes you’ll need: function my_plugin_shortcode( $shortcode_settings ) { $elem_id = ‘elem-id’; $settings_id = ‘my-plugin-settings-id’; $output=”<div class=”my-plugin-class” id=”#”.$elem_id.'” data-settings-id=”‘.$settings_id.'”></div>’; return $output; } Then create a script named init.js and use wp_enqueue_script. Inside it put: jQuery(document).ready(function($){ $(‘.my-plugin-class’).each(function(){ // … Read more

Moving sidebar links to below the header menu

I assume that this plugin adds a widget that you put in sidebar so edit your page.php and add a sidebar on the top where you can add this widget with those links. register_sidebar(array( ‘name’ => __( ‘Phone Extra Info’ ), ‘id’ => ‘phone-info-sidebar’, ‘description’ => __( ‘Widgets in this area will be shown on … Read more

Remove action plugin

Thank you kaiser, your comment is helpful but insufficient, so the solution is : to remove function in other class in wordpress : remove_action(‘register_form’, array(Theme_My_Login_Custom_Passwords::get_object(),’password_fields’ ) ); Thank you