This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_style(){ | |
$css = dirname(get_bloginfo('stylesheet_url'))."/your_style.css"; | |
wp_register_style('name_ur_choice', $css); | |
wp_enqueue_style('name_ur_choice'); | |
} | |
add_action('wp_enqueue_scripts', 'custom_style', $priority); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'WPINC' )) { | |
die; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//http://www.paulund.co.uk/remove-the-wordpress-admin-bar | |
if (!current_user_can( 'manage_options' )){ | |
add_filter( 'show_admin_bar', '__return_false' ); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 14.0, | |
"word_wrap": true, | |
"save_on_focus_out": true, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": false, | |
"enable_tab_scrolling": false, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( is_home('page_name_defined_in_settings_reading_wp_admin_menu') ) | |
{ | |
// code | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.et_lb_module img, | |
.tiled-gallery img{ | |
max-width: 1000px !important; | |
} | |
.tiled-gallery img { | |
max-width: 1000px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*remove comments*/ | |
//http://themeshaper.com/forums/topic/removing-comments-section-from-thematic | |
function remove_comments(){ | |
if (is_page()){ | |
remove_action('thematic_comments_template','thematic_include_comments',5); | |
} | |
} | |
add_action('template_redirect','remove_comments'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'my_custom_init'); | |
function my_custom_init() { | |
add_post_type_support( 'page', 'excerpt' ); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#limit chars | |
function excerpt($limit) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit); | |
if (count($excerpt)>=$limit) { | |
array_pop($excerpt); | |
$excerpt = implode(" ",$excerpt).'...'; | |
} else { | |
$excerpt = implode(" ",$excerpt); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*paste this in functions.php*/ | |
function the_slug() { | |
global $post; | |
$slug = $post->post_name; | |
return $slug; | |
} | |
/* --- */ | |
/*call your slug in your page*/ |
OlderNewer