Month: May 2016

  • How to Add JavaScript to your theme

    From the last WordPress meetup, we discussed How to add javascript to your theme Inside functions.php, hook into the wp-enqueue_scripts hook add_action( ‘wp_enqueue_scripts’, ‘wpmia_load-javascript_files’); function wpmia_load_javascript_files() { wp_register_script( ‘info-caroufredsel’, get_template_directory_uri() . ‘ jquery.carouFredSel-5.5.0-packed.js’, array (‘jquery’, ‘5.5.0’, true); … … wp_enqueue_script( ‘info-carousel-instance’ );   if ( is_front_page() ) { wp_enqueue_script(‘home-page-main-flex-silder’); }  }

  • AdWords Location Options Target and Exclude

    You may have setup several Ad campaigns in Adwords. One of the setup options is related to Location. I did not give this one setting much importance. Instead, I would just enter the Country to target and forget about the rest. My assumption was that since I was “Targeting” visitors from just the one country,…