Resolvedlafka-child Theme

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #23175
    zeina.jfr
    Participant

    Dear 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 Jaafar

    #23191
    Althemist
    Keymaster

    Hello 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:

    Everything You Need To Know About WordPress Child Themes

    Regards,
    Dimitar

    #23343
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23344
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23345
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23368
    Althemist
    Keymaster

    Yes, 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/

    #23409
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23419
    Althemist
    Keymaster

    You 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).

    #23454
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23469
    Althemist
    Keymaster

    Most 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.

    #23544
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23556
    Althemist
    Keymaster

    content: “\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?

    #23570
    zeina.jfr
    Participant
    This reply has been marked as private.
    #23604
    zeina.jfr
    Participant
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register