add custom HTML css with js doesn’t work

You cannot use the $ selector freely like this, because WordPress loads jquery in noconflict mode. The most common workaround is to wrap all functions in your script file: jQuery(document).ready(function($) { … scripts … } If you want to put the script directly in the head of the file (not recommended) it would go like … Read more

Close Fancybox, sumbit form data and redirect

So this is what I did to make it work: <form id=”formid” name=”form” action=”https://wordpress.stackexchange.com/checkout” method=”get”> Text: <input type=”text” name=”text”><br> <a href=”https://wordpress.stackexchange.com/checkout” target=”_parent” onclick=”document.getElementById(‘formid’).submit();”>Finish</a> <input type=”hidden” name=”mess” value=Finish /> </form>

Plugin Scripts no loading on options page

Hey use admin_enqueue_scripts. if you want to load a set of CSS and/or Javascript documents to all admin pages. You can do this from within your plugin or from your themes function file using admin_enqueue_scripts: function class_table_scripts() { wp_register_script( ‘JavaScript1’, plugins_url(‘js/wcs.css’), array() ); wp_enqueue_script(‘JavaScript1’); wp_register_script( ‘JavaScript1’, plugins_url(‘js/jquery.qtip-1.0.0-rc3.min.js’), array(‘jquery’) ); wp_enqueue_script(‘JavaScript1’); } add_action( ‘admin_enqueue_scripts’, ‘class_table_scripts’ );

change order of add_action hooks for jquery to be loaded first

I think the real answer here, is to have the plugin author load scripts properly using wp_enqueue_script(). Or, you could change the theme enqueue code to output jquery to the header by changing to this (not great for performance reasons, but relatively simple): wp_enqueue_script( ‘jquery’, get_template_directory_uri() . ‘/js/jquery/jquery.min.js’, array(), ‘1.0.0’, false ); Or, you could … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)