View functions.php
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 | |
/** | |
* Register and load font awesome | |
* | |
* @author Themebuilder.nl | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); |
View functions.php
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
/** Customize search form input box text */ | |
add_filter( 'genesis_search_text', 'custom_search_text' ); | |
function custom_search_text($text) { | |
return esc_attr( 'Doorzoek Themebuilder' ); | |
} |
View functions.php
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
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) { |
View logo-login.php
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
// 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; |
View logo-login.php
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
// 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; |
View url-logo.php
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
// 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'); |
View add_dasboard_widget
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
/ 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() { |
View admin_css
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
// 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' ); |
View custom_genesis_credits
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
// 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