Thanks for responding, sorry this is 3+weeks later.
I have looked at the link you gave me, did some research.
I am a newbie with WordPress and this is what I came up with, but it does not work.
My site is local, so I cannot give you a link.
Here is what I have in my fonts.css file, located in a fonts directory of my child theme:
@font-face {
font-family: "optimusprincepssemiboldRg";
src: url('/optimusprincepssemibold/optimusprincepssemibold-webfont.eot');
src: url('/optimusprincepssemibold/optimusprincepssemibold-webfont.eot?#iefix') format('embedded-opentype'),
url('/optimusprincepssemibold/optimusprincepssemibold-webfont.woff2') format('woff2'),
url('/optimusprincepssemibold/optimusprincepssemibold-webfont.woff') format('woff'),
url('/optimusprincepssemibold/optimusprincepssemibold-webfont.ttf') format('truetype'),
url('/optimusprincepssemibold/optimusprincepssemibold-webfont.svg#optimusprincepssemiboldRg') format('svg');
font-weight: normal;
font-style: normal;
}
Then in my functions.php file in my child theme I have the following:
<?php
/** Child Theme additional functions
* Custom Fonts are enqueued here
*
*/
function my_theme_styles() {
wp_register_style( 'fonts', get_stylesheet_directory_uri(). '/fonts.css' );
wp_enqueue_style( 'fonts', get_stylesheet_directory_uri(). '/fonts.css' );
}
add_action( 'wp_enqueue_scripts', 'my_theme_styles' );
?>
In the Crelly Slider Plugin, on a text layer of a slide, I added a custom CSS as follows:
font-family: optimusprincepssemiboldRg;
color: #ffffff;
font-size: 40px;
The color and font size are correct, but the custom font was not used.
Can you see what I did wrong?
I appreciate your help.