Resolvedlafka-child Theme
- This topic has 13 replies, 2 voices, and was last updated 2 years, 9 months ago by
zeina.jfr.
- AuthorPosts
- May 27, 2020 at 11:17 am #23175
zeina.jfr
ParticipantDear Sir,
I download the lafka theme it’s done but when i download the lafka child it give me this error.
Unpacking the package…Installing the theme…
The package could not be installed. The theme is missing the style.css stylesheet.
Theme installation failed.
Best Regards
Zeina JaafarMay 27, 2020 at 6:37 pm #23191Althemist
KeymasterHello Zeina Jaafar,
It looks like you’re trying to install the wrong ZIP file. The child-theme can’t be downloaded directly. You’d need to unzip the main package and the child theme will be INSIDE.
Alternatively, you may download the child theme from here:
Regards,
DimitarJune 3, 2020 at 4:54 pm #23343zeina.jfr
ParticipantThis reply has been marked as private.June 3, 2020 at 5:00 pm #23344zeina.jfr
ParticipantThis reply has been marked as private.June 3, 2020 at 5:25 pm #23345zeina.jfr
ParticipantThis reply has been marked as private.June 4, 2020 at 3:43 pm #23368Althemist
KeymasterYes, you’d need to call the font in style.css of the child theme. Don’t forget you’d also need to upload your font files to the appropriate folder – e.g. lafka-child/fonts/
June 4, 2020 at 10:26 pm #23409zeina.jfr
ParticipantThis reply has been marked as private.June 5, 2020 at 11:16 am #23419Althemist
KeymasterYou can’t use
font-family: “Flaticon”;
, because it’s already in use by the theme. You’d need to use another name for your generated font. Also, as I already explained, you can’t jsut ADD your icons. It is not possible. You can only replace the existing icons with your own, so you should rewrite their CSS.e.g.:
/* REPLACE THE PIZZA ICON WITH YOU OWN ICON */ .flaticon-023-pizza-slice::before { font-family: your-new-icon-font-here; font-size: 20px; font-style: normal; content: "\the-utf-code-for-the-new-icon-here"; }
Just to make sure one more time it is clear – you can not add your icons and use them directly. The only way would be to replace the existing icons with something else (e.g. – rewrite their output).
June 5, 2020 at 1:36 pm #23454zeina.jfr
ParticipantThis reply has been marked as private.June 8, 2020 at 10:05 am #23469Althemist
KeymasterMost probably you don’t load or call the new font correctly. You set:
.flaticon-001-popcorn:before { font-family: untitled-font-1 !important; }
while it must be
.flaticon-001-popcorn:before { font-family: "untitled-font-1" !important; }
Also, you should not touch the original flaticon.css file. All your changes must be in the style.css of the child theme
Also, this doesn’t look like a valid UTF code:
content: “\61” !important;
Last, but not least – I would recommend you to only load the WOFF file. You don’t need all formats and it’s too have to load all files.
June 11, 2020 at 2:51 pm #23544zeina.jfr
ParticipantThis reply has been marked as private.June 11, 2020 at 5:26 pm #23556Althemist
Keymastercontent: “\61”; would not work as it’s not a valid UTF code. content: “\e9da” !important; looks fine, but it loads a different font. Could you, please give us a link to your site where we can see the popcorn icon?
June 11, 2020 at 6:16 pm #23570zeina.jfr
ParticipantThis reply has been marked as private.June 15, 2020 at 4:25 pm #23604zeina.jfr
ParticipantThis reply has been marked as private. - AuthorPosts
You must be logged in and have valid license to reply to this topic.