Too many inline CSS in the source code

Posted in: Newsmag
Post count: 30

Hi,

To start with, thanks for your tremendous job. Your theme is fantastic. 🙂

However, when I have a look at the source code of single posts on http://www.teknoblog.com, I see many inline CSS code. I know, it is due to customization, but when I have a look at some web sites from the showcase area of your homepage, and check their source codes, I don’t see too much inline CSS code like mine. Even though, it seems that there are customizations on that web sites.

How can I fix this issue, and slim down the source code? Code-to-text-ratio is too high in this situation.

Regards,

Sabri Küstür

Post count: 23312

Hello teknolojisk,

Unfortunately, I do not exactly understand what you mean, sorry! Provide more details about what kind of inline CSS is talking about here. Provide some useful screenshots with it.

Thanks for your understanding!

Post count: 30

No problem! I share a bit of code below. I think that this code is added because of using custom fonts, but isn’t it possible to connect it to an external file. When I look at some example web sites from the showcase area, and check their source code of single posts, although they have customizations, I don’t see extra inline CSS codes like this below.

–>> https://pastebin.com/6wqffx6j

Post count: 23312

Hello teknolojisk,

I have checked your list of code provided above and I saw that you are using a lot of Custom CSS, right? Sorry for this but please notice the adding of this code was your choice and that’s why it will appear in your source page. Please check all of this code and try to replace some code with an option from Theme panel (for example, in the theme panel you will see a turn-off/on post views/date/author) and the other code, you can insert it directly in style.css.

Thanks for your understanding!

Post count: 30

Hi Catalin,

Understood, and that’s why I have made some changes in font styles, especially. I wish you develop an alternative and effective solution for CSS customizations.

Regards,

Sabri

Post count: 9544

Simply add your custom CSS to bottom of the style.css ….

note custom styles must be loaded ‘after’ the main CSS, so that’s why they are added to the head after main CSS loads. That is “best” way to do it.

Post count: 30

That’s what I did. 😉

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.