I've downloaded Font Awesome v 4.7.0:
https://fontawesome.com/v4.7.0/asset...some-4.7.0.zip
and unpacked it and placed a folder called font-awesome into the main directory of the child theme - there it does not work, in the main directory of atahualpa itself it works.
I have in my child theme -
style.css:
Code:
/*
Theme Name: atahualpa Child
Theme URI: https://www.velomap.org/atahualpa2-child/
Description: Child Theme für atahualpa
Version: 1.0
Author: Felix
Author URI: https://example.com
Template: atahualpa
License: GNU General Public License v2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atahualpa-child
*/
/* You can start adding your own styles here. Use !important to overwrite styles if needed. */
and functions.php I'm a bit lost - because I can not fully do it according to wordpress codex - right now I have only:
Code:
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
/* You can add your own php functions and code snippets below */
// Fix Shortcodes Ultimate from Loading Font Awesome Remotely
wp_register_style( 'font-awesome', get_template_directory_uri() . '/font-awesome/css/font-awesome.min.css', false, '4.7.0', 'all' );
?>
because for the full solution I would need to know what to enter for parent_style - and I cannot find out what value is needed for Atahualpa
Code:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Quote:
where parent-style is the same $handle used in the parent theme when it registers its stylesheet. For example, if the parent theme is twentyfifteen, by looking in its functions.php for its wp_enqueue_style() call, you can see the tag it uses there is 'twentyfifteen-style'. In your child code, replace the instance of 'parent-style' with 'twentyfifteen-style'
|
Without this value it will not load the css of the child theme folder except style.css file.