vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Default font for CMS Article and Article Preview pages (https://vborg.vbsupport.ru/showthread.php?t=304702)

ged 11-18-2013 11:43 AM

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. :)

Lynne 11-18-2013 04:10 PM

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?

tbworld 11-18-2013 08:48 PM

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.

ged 11-20-2013 06:57 AM

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):

HTML Code:

.cms_article_txt_content {
font-family: verdana !important;
font-size: 12px !important;
}

.article {
font-family: verdana !important;
font-size: 12px !important;
}

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.

Lynne 11-20-2013 05:48 PM

Try adding it for <span> also:

HTML Code:

.cms_article_txt_content, .cms_article_txt_content span {
font-family: verdana !important;
font-size: 12px !important;
}

.article, .article span {
font-family: verdana !important;
font-size: 12px !important;
}


ged 11-21-2013 11:09 AM

Actually, it didn't work. If you look at last two posts in my CMS page, they aren't affected. :(

Lynne 11-21-2013 10:24 PM

I'm not seeing it in your additional.css template at all. Did you remove the CSS from there?

ged 11-22-2013 05:25 AM

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?

tbworld 11-22-2013 05:43 AM

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.

ged 11-27-2013 10:15 AM

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. :(


All times are GMT. The time now is 07:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02766 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete