Pull & display new comments without refreshing the page
Pull & display new comments without refreshing the page
Pull & display new comments without refreshing the page
It’s pretty hard for PHP to know your screen width. It’s more of a job for jQuery. But your approach seems kind of backward. If the site is supposed to be responsive — why are you trying to deliver different pages to your visitors based on screen width? It would seem you should handle varying … Read more
Highlight posts currently being edited on multiple editor site?
jQuery autcomplete not working
wp_signon not working fine and 302 moved temporarily?
How to load jquery tag-it plugin into admin?
you should put that in the functions.js file (create it if it does not exist), and make sure it is embedded in your wordpress site with wp_enqueue_script in your functions.php file in your theme.
add_action( ‘wp_enqueue_scripts’, ‘ron_scripts’ ); function ron_scripts(){ if(is_home()){ wp_register_script( ‘homescript’, ‘/wp-content/themes/template/js/menu-home-open.js’ ); wp_enqueue_script( ‘homescript’ ); } else { wp_register_script( ‘nothomescript’, ‘/wp-content/themes/template/js/FILENAMEHERE.js’ ); wp_enqueue_script( ‘nothomescript’ ); } } alternatively replace is_home(); with any other method or code that determines what page you are on. ex: might work if(site_url() == get_permalink()){ //do home stuff } else { //do … Read more
I am trying to call external database recieving error
It looks like you are creating an HTML form that allows you to interact with the user. This form would collect an email address and upon successul retrieval it would allow a file downlowd. For forms, your best bet is to install a forms plugin. A very good form plugin that is easy to use … Read more