Code-Schnippel für WordPress, 1

3 Apr

register_sidebar(array(
'name' => 'WarenkorbSideBar',
'id' => 'warenkorb-sidebar',
'description' => 'Nur fuer den ausklappenden kleinen Warenkorb'
));

register_sidebar(array(
'name' => 'FussSideBar',
'id' => 'fuss-sidebar',
'description' => 'Schlanker Sockel unten fuer Impressum etc.'
));

register_sidebar(array(
'name' => 'KopfSideBar',
'id' => 'kopf-sidebar',
'description' => 'Schlanker Streifen über Navigation fuer Impressum etc.'
));

add_theme_support('post-thumbnails');

add_image_size('produkt-klein', 100, 100, true);
add_image_size('produkt-vorschau', 300, 300);
add_image_size('produkt-opener', 800, 500);
add_image_size('praesentation-halb', 450, 9999);

function my_scripts_method() {
// register your script location, dependencies and version
wp_register_script('custom_script_1', get_template_directory_uri() . '/js/jquery-ui-1.8.18.custom.min.js', array('jquery'), '1.0');
// enqueue the script
wp_enqueue_script('custom_script_1');
}

function add_my_stylesheet() {

wp_register_style('myStyleSheets', get_template_directory_uri() . '/css/mytheme/jquery-ui-1.8.18.custom.css');
wp_enqueue_style('myStyleSheets');
}

add_action('wp_enqueue_scripts', 'my_scripts_method');
add_action('wp_enqueue_scripts', 'add_my_stylesheet');

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.

zwanzig − sieben =