ZenphotoCMS Forum
zpBootstrap - adding fonts - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: zpBootstrap - adding fonts (/thread-13580.html)



zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

Hi guys

I wish to add some fonts which file do I need to add them to?

Also which .css file do I need to change? There are 2 not sure which one :)

Thanks in advance

Kriss :)




zpBootstrap - adding fonts - acrylian - 18-05-2021

Actually there are 10 css files. The theme relevant iwould be zpBoosttrap.css, the other are from the framework and some extras.




zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

Sorry, there are 2 which has bootstrap written as it is title is what I meant... :) thanks

What about the file for putting the font links on? which one has the header details so I can put them on there.

Kriss :)




zpBootstrap - adding fonts - acrylian - 18-05-2021

How about the one with header in the name? ;)




zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

Just found it! LOL... I know HTML and CSS but me and script just went out the window!

Thanks :)




zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

Ok having a slight problem here... how can you stop the theme from loading the min.css... or do I have to alter them as well?

Kriss :)




zpBootstrap - adding fonts - acrylian - 18-05-2021

Actually you should alter the normal css file and then minify it. It's smaller and loads faster.

But I think you altered the wrong file anyway. The actual theme Css file zpBoosttrap.css (like the theme name) is not minified at all. The plain boostrap.css/min.css files should not be altered as they belong to the boostrap framework @vincent3569 based his theme on.




zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

oh right... will look into that... thanks... sorry for sounding stupid but not used the .min.css before and I also suffer from ME/CFS and my brain is really not awake at the moment... :)




zpBootstrap - adding fonts - Krissnikkers - 18-05-2021

Ok, I have tried to change the size and font for the h5 and it is being overridden by bootstrap.min.css...

This is what I am putting into the zpbootstrap.css...

h5 {
font-family: 'Ubuntu', sans-serif !important;
font-size: 15px !important;
}

I have put the fonts into the correct PHP...




zpBootstrap - adding fonts - acrylian - 19-05-2021

Sorry, I am in that detail familar with this theme so I cannot help with such details.




zpBootstrap - adding fonts - Krissnikkers - 19-05-2021

Just found something that the author suggests so having a go although so far managed to totally ruin it... LOL... good job it is not live at the moment... :)

hi
to change the main bootstrap css rules, you can create your own css compiled files.

to do that, load the file config.json provided in directory /_bootstrap_3.4.0\bootstrap-compiledof the theme in
https://getbootstrap.com/docs/3.4/customize/.
then, edit the rules as you need.
then, you have to replace bootstrap. in directory /css with the new compiled files.

you can also change specific css values (not bootstrap ones) in /css/zpBootstrap.css.