This file contains hidden or 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 | |
/** | |
* Register and load font awesome | |
* | |
* @author Themebuilder.nl | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); |
This file contains hidden or 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
/** Customize search form input box text */ | |
add_filter( 'genesis_search_text', 'custom_search_text' ); | |
function custom_search_text($text) { | |
return esc_attr( 'Doorzoek Themebuilder' ); | |
} |
This file contains hidden or 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
genesis_register_sidebar( array( | |
'id' => 'nav-social-menu', | |
'name' => __( 'Social Menu', 'themebuilder' ), | |
'description' => __( 'The place for Simple Social Icons widget.', 'themebuilder' ), | |
) ); | |
add_filter( 'genesis_nav_items', 'sws_social_icons', 10, 2 ); | |
add_filter( 'wp_nav_menu_items', 'sws_social_icons', 10, 2 ); | |
function sws_social_icons($menu, $args) { |
This file contains hidden or 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
// Replace WP login logo with your own | |
add_action('login_head', 'wpstudio_custom_login_logo'); | |
function wpstudio_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login.png) !important; | |
background-size: 220px 50px !important; | |
height: 50px !important; | |
width: 220px !important; | |
margin-bottom: 0 !important; |
This file contains hidden or 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
// Replace WP login logo with your own | |
add_action('login_head', 'themebuilder_custom_login_logo'); | |
function themebuilder_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login.png) !important; | |
background-size: 220px 50px !important; | |
height: 50px !important; | |
width: 220px !important; | |
margin-bottom: 0 !important; |
This file contains hidden or 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
// Change the URL of the WP login logo | |
function themebuilder_url_login_logo(){ | |
return get_bloginfo( 'wpurl' ); | |
} | |
add_filter('login_headerurl', 'themebuilder_url_login_logo'); |
This file contains hidden or 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
/ Add theme info box into WP Dashboard | |
function themebuilder_add_dashboard_widgets() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'themebuilder_theme_info'); | |
} | |
add_action('wp_dashboard_setup', 'themebuilder_add_dashboard_widgets' ); | |
function themebuilder_theme_info() { |
This file contains hidden or 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
// Custom WP Admin Color Scheme | |
function admin_css() { | |
wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/admin.css' ); | |
} | |
add_action('admin_print_styles', 'admin_css' ); |
This file contains hidden or 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
// Customize the credits | |
add_filter( 'genesis_footer_creds_text', 'themebuilder_footer_creds_text' ); | |
function themebuilder_footer_creds_text() { | |
$creds = '[footer_copyright] [footer_childtheme_link before ="·"] · by <a href="http://www.themebuilder.nl" title="ThemeBuilder">ThemeBuilder</a>'; | |
return $creds; | |
} |
OlderNewer