Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Nov 2013, 13:43
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
Default font for CMS Article and Article Preview pages

Is it possible to override CMS' article and article preview pages' fonts? I'm using "!imporant" tag in CSS templates but nothing changes.

I think I'm missing correct variables even if I'm using FireBug. Can you help me please? Thank you very much.
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #2  
Old 18 Nov 2013, 18:10
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
We would need a link to your CMS to see what is going on. And what font are you trying to change it to? And only in the article/preview area?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 18 Nov 2013, 22:48
tbworld tbworld is offline
 
Join Date: Oct 2008
Seems like your modified CSS is working. Your new properties are applied to the browser when I analyze your page. Seems obvious, but shut off your browser cache for testing -- just in case.
Reply With Quote
  #4  
Old 20 Nov 2013, 08:57
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
I've created a default theme (named VB.ORG) for you to see.

Following CSS codes are the changes that I've made (vbcms.css):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've added these two lines in each classes. It works if you use default font but it doesn't work on user customised fonts. For example, if a user decides to use 4px impact font, these codes doesn't override it.

I'm trying to use a single theme on my site but I couldn't solve this problem.

Thank you.
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #5  
Old 20 Nov 2013, 19:48
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Try adding it for <span> also:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #6  
Old 21 Nov 2013, 13:09
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
Actually, it didn't work. If you look at last two posts in my CMS page, they aren't affected.
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #7  
Old 22 Nov 2013, 00:24
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I'm not seeing it in your additional.css template at all. Did you remove the CSS from there?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #8  
Old 22 Nov 2013, 07:25
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
No, it's stored in filesystem. But I didn't make these changes in additional.css, I've added your lines to vbcms.css. These classes were in this file.

Did I do it wrong?
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #9  
Old 22 Nov 2013, 07:43
tbworld tbworld is offline
 
Join Date: Oct 2008
I was going to post the same changes @Lynne suggested, then I forgot to create the post the other day, so her suggestion does work as it has been tested.

In general when you are testing out new CSS you want to post at the end of the CSS chain. In this case that is 'additional.css' template (a @lynne invention). Revert the vbcms.css template and re-add the code to the 'additional.css' templage, the way @Lynne suggested. The advantage being that you can always see your latest changes altogether.

Caution - Make a backup of your vbcms.css template or save a download copy of it. Then do the 'revert' -- just in case you made other changes.

There are many reasons for not doing it this way, but for now lets not confuse you.
Reply With Quote
  #10  
Old 27 Nov 2013, 12:15
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
Sorry for being late, I had a flu and had to rest a while.

I've added these things as you said, but nothing's changed. Customised fonts are still not affected.
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #11  
Old 27 Nov 2013, 13:21
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by ged View Post
Sorry for being late, I had a flu and had to rest a while.

I've added these things as you said, but nothing's changed. Customised fonts are still not affected.
It is working when I visit your page. I can see the font-type applied from additional.css
Clear your browser and CMS cache.
Reply With Quote
  #12  
Old 27 Nov 2013, 20:07
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You are going to have to go through and add in every type of option they can add. If they can do bold, then add a b and set the font-weight to normal. If italics, then add an i and set font-decoration to normal. example adding in b below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #13  
Old 28 Nov 2013, 08:40
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
Thank you very much Lynne. It's now working!

I've got another question about CMS. I've got some widgets on my front page, and as you see, they are on content pages too. How can I disable some of them when a user views full article?
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #14  
Old 28 Nov 2013, 18:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
The article will have the same layout as the section it is in. If you want the articles to have a different layout, then you need to put them in a different section.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #15  
Old 02 Dec 2013, 08:41
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
But then wouldn't it affect the view of the front page?

I want an article show on front page (which has layout A) and when viewing it on full mode, I want to show a layout B to user.

I don't want user to see every front page module when reading / commenting an article.

NOTE: I've solved the problem.
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.

Last edited by ged; 02 Dec 2013 at 10:06.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:07.

Layout Options | Width: Wide Color: