clearGoogleFonts() ->addGoogleFont( 'Open Sans', [ 400, 600 ] ) ->addGoogleFont( 'Raleway', [ 400, 500 ] ) ->addGoogleFont( 'Montserrat', [ 300, 400, 500, 600 ] ); } function calliope_override_translations( $texts ) { $name = colibriwp_theme()->getThemeHeaderData( 'Name' ); $texts = array_merge( $texts, array( 'theme_page_name' => sprintf( __( '%s Settings', 'calliope' ), $name ), "page_builder_plugin_description" => sprintf( __( '%1$s plugin adds drag and drop functionality and many other features to the %2$s theme.', 'calliope' ), 'Colibri Page Builder', $name ), "admin_sidebar_documentation_description" => sprintf( __( '%s is easy to learn and master, but you can always check out our documentation to check out features you might have missed.', 'calliope' ), $name ), ) ); return $texts; } function calliope_theme_loaded() { calliope_set_google_fonts(); Hooks::colibri_add_filter( 'info_page_support_link', Hooks::identity( 'https://colibriwp.com/child/#support' ) ); Hooks::colibri_add_filter( 'info_page_review_link', Hooks::identity( 'https://wordpress.org/support/theme/' . get_stylesheet() . '/reviews/' ) ); Hooks::colibri_add_filter( 'info_page_docs_link', Hooks::identity( 'https://docs.colibriwp.com/child' ) ); } function calliope_override_main_row_class( $classes ) { return Defaults::get( 'templates.blog.row.layout-classes', $classes ); } function calliope_theme_boot() { Hooks::colibri_add_filter( 'use_child_theme_header_data', '__return_true' ); Hooks::colibri_add_filter( 'defaults', 'calliope_override_defaults', 10, 2 ); Hooks::colibri_add_filter( 'translations', 'calliope_override_translations', 10, 2 ); Hooks::colibri_add_filter( 'main_row_class', 'calliope_override_main_row_class', 10, 1 ); } add_action( 'colibriwp_theme_boot', 'calliope_theme_boot' ); add_action( 'after_setup_theme', 'calliope_theme_loaded', 40 );