Hi Rick - apologies if this isn't the correct thread for this question:
I’ve been following the ‘Create a Responsive Skin’ course enthusiastically for several weeks and have nearly completed my website. However, I cannot access any of the videos relating to the final lesson – lesson 10. Is it just me or are they not available generally?
Thank you
Carol

November 8, 2009

Carol - Lesson 10 had some huge errors in it so I removed the videos.
Are you building your skin in Thesis 2.1?
Rick Anderson – WordPress Instructor

Community Member
June 22, 2013

Carol
First I would read the codex:
In particular the parameters and whether the script is already included in WP. The examples I do not think are going to help you.
To add to your skin you add code to skin.php, now hoping that Rick has a simple way to explain it for you.
Keith
Make sure you backup before upgrading and making changes.
Best results when one question per thread, link to site, version of WP, Thesis and skin.
http://www.kwjassociates.co.uk - Wordpress 5.4.2 – Thesis 2.9.14 - Focus 0.9.8
*** Do not edit Skin and Editor CSS - make changes using Custom CSS. ***
*** Do not edit core files - make changes using custom.php or master.php. ***

November 8, 2009

Also - if you watch the Advanced Box Development seminar you will see how to enqueue javascript from within a box. This is roughly the same as doing it from within a skin except that the skin doesn't have a preload() function.
So, you set up a function for loading the script and then you call that function from within the construct() method
Something like:
// File constant for URL of the skin folder
if (!defined('BYOBPTSD1_URL')) {
define('BYOBPTSD1_URL', THESIS_USER_SKINS_URL . '/ptsd_lesson_1');
}
if(!is_admin()){
add_action('wp_enqueue_scripts', array($this, 'add_scripts_and_styles'));
}
}
public function add_scripts_and_styles() {
wp_enqueue_script('imagesloaded', BYOBPTSD1_URL . '/js/imagesloaded.pkgd.min.js', array('jquery'), '', true);
}
Rick Anderson – WordPress Instructor

Community Member
June 22, 2013

Carol
Whilst I am sure that Rick's code is good, watch out for the curly " and curly '. From past experience they will not work.
Often happens when cutting and pasting.
Keith
Make sure you backup before upgrading and making changes.
Best results when one question per thread, link to site, version of WP, Thesis and skin.
http://www.kwjassociates.co.uk - Wordpress 5.4.2 – Thesis 2.9.14 - Focus 0.9.8
*** Do not edit Skin and Editor CSS - make changes using Custom CSS. ***
*** Do not edit core files - make changes using custom.php or master.php. ***

November 8, 2009

Yes - please make sure you don't get "smart" quotes when you copy - this is an irritating byproduct of my continuing conflict with syntax highlighting in the recent version of the forum.
Rick Anderson – WordPress Instructor
Most Users Ever Online: 228
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Keith W Jones: 1444
Brian Tozer: 1004
Carolin: 984
Heidi Hafner: 509
John Cunningham: 423
Reece Morrel: 353
Newest Members:
volminFL
soundpilot
digitalaerolus
emma62755
sharonmarks
emma80233
Forum Stats:
Groups: 8
Forums: 46
Topics: 7004
Posts: 34849
Member Stats:
Guest Posters: 6
Members: 6764
Moderators: 2
Admins: 2
Administrators: Rick Anderson, Rick Anderson
Moderators: Pierre Cote, Laura Nugent