WP File Manager
Current Path:
/
www
/
htdocs
/
w0103d72
/
Kronauer-20191025
/
extranet
/
wp-content
/
themes
/
woffice-child-theme
/
Name
Action
..
functions.php
Edit
rtl.css
Edit
screenshot.png
Edit
style.css
Edit
Editing: functions.php
<?php function woffice_child_scripts() { if ( ! is_admin() && ! in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) { $theme_info = wp_get_theme(); wp_enqueue_style( 'woffice-child-stylesheet', get_stylesheet_uri(), array(), WOFFICE_THEME_VERSION ); } if ( is_rtl() ) { wp_enqueue_style( 'woffice-child-rtl', get_template_directory_uri() . '/rtl.css', array(),WOFFICE_THEME_VERSION ); } } add_action('wp_enqueue_scripts', 'woffice_child_scripts', 30); add_action('after_setup_theme', function () { // Load custom translation file for the parent theme load_theme_textdomain( 'woffice', get_stylesheet_directory() . '/languages/' ); // Load translation file for the child theme load_child_theme_textdomain( 'woffice', get_stylesheet_directory() . '/languages' ); });