Check out a great book by Jono Bacon, a Community Manager at Ubuntu, called The Art Of Community. Jono is regular co-host on FLOSS Weekly and is also well known from LugRadio.
Hi Guys I recently purchased the Cell C HSDPA USB dongle with 24Gb of data for R1499. Here is how you get it to work on Ubuntu 10.04 LTS Plug in your USB dongle. Install "usb_modeswitch" (sudo apt-get install usb_modeswitch). Run "sudo updatedb" Locate "usb_modeswitch.conf" the file should be in /etc/usb_modeswitch.conf and add code below to the end of the file ######################################################## # Huawei E1752 # # Contributor: DefaultVendor= 0x12d1 DefaultProduct= 0x1446 TargetVendor= 0x12d1 TargetProduct= 0x1001 MessageEndpoint= 0x01 MessageContent= "55534243000000000000000000000011060000000000000000000000000000" ######################################################## Run "sudo usb_modeswitch" This should say found one(1) device in the terminal Then go System->Preferences->Network Connections and click on the "Mobile Broadband" tab. Click "Add". Check under "Create a connection fo...
To enqueue a css stylesheet or external javascript file on just one page use the following function with a conditional if statement in your child theme functions.php script. function register_online_form_style() { if ( is_page( '104' ) ) { wp_enqueue_style( 'contactForm', get_stylesheet_directory_uri() . '/site/css/form.min.css' ); } } add_action( 'wp_enqueue_scripts', 'register_online_form_style' ); 104 is the page or post's ID contactForm is the name of the script Pretty starightforward
This post assumes you know how to create custom page templates in Wordpress using child themes. Locate this line of code in your page template (page.php) get_header(); Download the header.php file from the parent theme folder into your child theme folder Rename the header.php file you downloaded to header-with-analytics.php Change the get_header function in your page template to include the custom header file. In the brackets add the custom header filename like this get_header("with-analytics"); Everything after the header- in the filename is what you place between the brackets. Save and upload the custom header PHP file. Upload your modified page template file (page.php) Now the page template will load your custom header file called header-with-analytics.php Place your Google Analytics Site Tag or Google Adwords Conversion Tracking code in this header-with-analytics.php file as per Googles instructions.
Comments
Post a Comment