pcgameslab Posted June 23, 2014 Share Posted June 23, 2014 With the previous template of my blog,I created various pages with the font Sniglet.And now after changing the template,main font of my blog is Oswald.So is there anyway in javascript,css,html5 or in xml through which I can add a piece of code in the homepage of my blog and all the Sniglet fonts would get replaced with oswald Link to comment Share on other sites More sharing options...
dsonesuk Posted June 23, 2014 Share Posted June 23, 2014 and you can't add font-family: oswald !important; to external stylesheet why? Link to comment Share on other sites More sharing options...
pcgameslab Posted June 23, 2014 Author Share Posted June 23, 2014 I added this already,but I added the sniglet font in a lot of pages,and changing it in all pages is really hard,so is there any javascript adding which to the homepage,all the fonts in pages would change. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 23, 2014 Share Posted June 23, 2014 but all you do is add a link to this stylesheet at top between <head></head> or add it to existing stylesheet ,and it would override the old font. simplesssss Link to comment Share on other sites More sharing options...
pcgameslab Posted June 23, 2014 Author Share Posted June 23, 2014 You misunderstood mate,I don't want to change or override all,I only want to change sniglet to oswals Link to comment Share on other sites More sharing options...
dsonesuk Posted June 23, 2014 Share Posted June 23, 2014 And you don't have any specific id, class that you could use to target just these area? Link to comment Share on other sites More sharing options...
pcgameslab Posted June 24, 2014 Author Share Posted June 24, 2014 No, that's what is the problem. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 24, 2014 Share Posted June 24, 2014 Well if we are talking about http://technopcarea.blogspot.com/ (which does have specific class selectors to apply this font), this is what happens when you add inline styling (and js/jquey) to <head></head> of each page, instead of adding to external css document and linking to it, you repeat duplication of same code within each page, increase size of page for download, make it difficult to control changes efficiently, sorry, but i guess 'you made your bed, now lay in it'. in one page its only till you get to line 2739 that the body and actual child html coding begins, there again MORE css (which should not be in body AT ALL), js/jquery is included still, this is really really bad. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now