Home / Forums / WoodMart support forum / How to add inc folder in child theme
Home › Forums › WoodMart support forum › How to add inc folder in child theme
How to add inc folder in child theme
- This topic has 6 replies, 2 voices, and was last updated 2 years, 10 months ago by
Artem Temos.
-
AuthorPosts
-
September 14, 2023 at 4:20 pm #495996
mostafa20946Participanthello
how to load inc folder in child theme?September 14, 2023 at 5:25 pm #496023Hello,
This folder can’t be overridden in the child theme. If you want to customize a particular PHP function, you can copy it to the
functions.phpfile in the child theme and apply your changes there.Kind Regards
September 14, 2023 at 5:28 pm #496028
mostafa20946Participantthank you for answer,
how to add item array in standard-fonts.php with function.php child theme?September 14, 2023 at 5:41 pm #496040Currently, there are no filters there. But we will add it in our next update. As for now, you can replace that file code with the following one and use a hook called
woodmart_get_standard_fontsin your child theme to override that array<?php if ( ! defined( 'WOODMART_THEME_DIR' ) ) { exit( 'No direct script access allowed' ); } return apply_filters( 'woodmart_get_standard_fonts', array( '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif' => 'System font stack', 'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif', '\'Arial Black\', Gadget, sans-serif' => '\'Arial Black\', Gadget, sans-serif', '\'Bookman Old Style\', serif' => '\'Bookman Old Style\', serif', '\'Comic Sans MS\', cursive' => '\'Comic Sans MS\', cursive', 'Courier, monospace' => 'Courier, monospace', 'Garamond, serif' => 'Garamond, serif', 'Georgia, serif' => 'Georgia, serif', 'Impact, Charcoal, sans-serif' => 'Impact, Charcoal, sans-serif', '\'Lucida Console\', Monaco, monospace' => '\'Lucida Console\', Monaco, monospace', '\'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif' => '\'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif', '\'MS Sans Serif\', Geneva, sans-serif' => '\'MS Sans Serif\', Geneva, sans-serif', '\'MS Serif\', \'New York\', sans-serif' => '\'MS Serif\', \'New York\', sans-serif', '\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif' => '\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif', 'Tahoma,Geneva, sans-serif' => 'Tahoma, Geneva, sans-serif', '\'Times New Roman\', Times,serif' => '\'Times New Roman\', Times, serif', '\'Trebuchet MS\', Helvetica, sans-serif' => '\'Trebuchet MS\', Helvetica, sans-serif', 'Verdana, Geneva, sans-serif' => 'Verdana, Geneva, sans-serif', ) );September 14, 2023 at 7:12 pm #496083
mostafa20946Participantadd code in child theme and not load my custom font in theme option, loaded default font.
September 14, 2023 at 8:22 pm #496099
mostafa20946ParticipantI understand, add code in standard-fonts.php and add_action in child theme for load my fonts.
thank you.September 15, 2023 at 9:15 am #496192Hello,
Yes, we are glad that you sorted it out! Feel free to contact us if you have any further questions.
Kind Regards
-
AuthorPosts
The topic ‘How to add inc folder in child theme’ is closed to new replies.
- You must be logged in to create new topics. Login / Register