New Landing How can we help? Cardinal Massive CSS Code inside HTML

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Cardinal
  • #111775
    alhakim
    Member
    Post count: 69

    Hello Swift Team,

    I was wondering about the massive CSS Code our theme is generating inside the HTML Source-Code.
    On one hand this massive CSS Code makes the whole theme slow, on the other hand it doesnt look like a technical clean solution.

    Can you please explain why our theme is producing this enormes amount of code?
    And is there a way to get rid of it?

    For a better understanding see the attached file.

    Thanks in advance!

    Attachments:
    You must be logged in to view attached files.
    #111795
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    hi,

    Can you provide us your website url?

    Our css is not in the source code. It’s included in css files. You can see them in the inspector in the Resources-> stylesheets.

    To view the source of a page click with the right mouse button and hit the “View Source” link

    The slowdown of the site can be caused by several things. Usually it’s something relate to the hosting.

    -Rui

    #111798
    QuenchStudio
    Member
    Post count: 73

    I have the same issue – but it seems like what the html shows is the Custom CSS code we have added. Is there a way to hide it?

    #111802
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You would have to use a child theme and paste the css in the child theme style.css file

    – Kyle

    #111806
    alhakim
    Member
    Post count: 69

    this is the url: http://beta.yool.de/

    the custom css is beyond that code. Its on the botton. That s another issue. This is something else. it seems to be an issue in all ur themes. Dante and ur current theme generate the same css block. This really looks strange.

    cheers
    alhakim

    #111810
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    The CSS in the head of the source code is all of the dynamic CSS, which is anything that is set in the theme options. For e.g. colors, fonts, font sizes etc

    – Kyle

    #111813
    alhakim
    Member
    Post count: 69

    yes. that s what i guessed. I don t want that un the head. How can i get rid of that?

    alhakim

    #111816
    alhakim
    Member
    Post count: 69

    Kyle, i really love u themes. cardinal is my second one. I already bought dante. but I canot offer any client any webdesign/developer services when my own site has such an unclean head. Please offer me a solution. Thx

    #111829
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You would have to comment out all of the code in cardinal/includes/sf-custom-styles.php

    However then any styles you set in theme options will not work, you will have add them all yourself to your style.css file

    – Kyle

    #111839
    alhakim
    Member
    Post count: 69

    can’t this dynamic code be generated into a seperate file? Why in the header? alhakim

    #111971
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Because it is dynamic, therefore it has to be generated via php.

    – Kyle

Viewing 11 posts - 1 through 11 (of 11 total)

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

License required for one of the following items
Login and Registration Log in · Register